Fulfillment
Fulfillment is handled under four items. These are shipping options, shipping company, tracking number and invoice number.
Shipping Options
Methods: GET
, POST
, PATCH
, PUT
, DELETE
Shipping options are stored in the shop database. A request is sent to the shop by proxy via Omnitron. In line with this request, the response from the shop is shown on the frontend via Omnitron.
GET
Shipping Options
GET
Shipping OptionsPath: api/v1/remote/1/shipping_options/
When a GET request is thrown directly via shipping_options/, you can get all the shipping options. If you throw a GET request such as shipping_options/1/, you can get the shipping option with an ID value of 1. (Send a different ID value instead of 1).
POST
Create Shipping Option
POST
Create Shipping OptionPath: api/v1/remote/1/shipping_options/
When a post request is sent to the shipping_options/ endpoint, like the sample data below, the creation will be completed.
Above, there are two different values besides text and number. One is Calculator, and the other is Rule. These values are explained below.
PATCH
Update Shipping Option
PATCH
Update Shipping OptionPath: api/v1/remote/1/shipping_options/{id}/
When a patch request is sent to the shipping_options/{id} endpoint, like the sample data below, the update will be completed. You can update the shipping option with an ID value of 1. (Send a different ID value instead of 1).
PUT
Update Shipping Option
PUT
Update Shipping OptionPath: api/v1/remote/1/shipping_options/{id}/
When a put request is sent to the shipping_options/{id} endpoint, like the sample data below, the update of the entire field will be completed. You can update the shipping option with an ID value of 1. (Send a different ID value instead of 1).
Above, there are two different values besides text and number. One is Calculator, and the other is Rule. These values are explained below.
DELETE
Shipping Option
DELETE
Shipping OptionPath: api/v1/remote/1/shipping_options/{id}/
shipping_options/{id}/
When a delete request is sent to the shipping_options/{id} endpoint, like the sample data below, the deletion will be completed. You can delete the shipping option with an ID value of 1. (Send a different ID value instead of 1).
Calculator and Rule
Calculator
It is used to calculate the price according to the total of the products added to the basket or according to different conditions.
FreeCalculator: The calculator used to process the shipping fee as free of charge. Use;
FixedPriceCalculator: Used to process the shipping fee as a fixed price. Fixed_price refers to the fixed shipping fee. Use;
AmountBasedCalculator: Used to calculate the shipping fee according to the prices of the products in the basket. Fixed_price refers to the fixed shipping fee. Upper_limit refers to the upper limit of the products in the basket. Discount_price refers to the discounted price. If upper_limit is exceeded, discount_price is activated. Use;
WeightBasedCalculator: Used to calculate the shipping fee according to the weight of the products in the basket. List-type weight_ranges state lower_limit, upper_limit and the cargo price within these limits as the price. Use;
ShippingCostCalculator: The calculator that provides cost calculation according to the shipping address. It presents the customer with the shipping cost obtained upon filtering according to the slug definition in the ShippingCost model and the address match in the ShippingCost model. Use;
DiscountBasedCalculator: The calculator that works according to the determined base calculator and the availability of the products in the basket. Base_shipping contains the slug value of the base calculator. The relevant parameters are dynamically stored. Use;
B2CDirectCalculator: Shipping calculator for B2C Direct. B2C Direct shipping company is inactive. Use;
Rule
The section containing the rules that the relevant shipping option should cover. Can be used in association with each other.
AnyRule: Progress independent of any rule. Use;
WeightRule: Establishes weight rule. max_weight covers the maximum weight. Weight_field specifies the attribute name that defines the weight of the products in the basket. If there is none, the default is entered as 0. Use;
TotalVolumetricWeightRule: Establishes total volumetric weight rule for the products in the basket. total_max_volumetric_weight covers the maximum volume. volumetric_weight_field specifies the attribute name that defines the volume of the products in the basket. If there is none, the default is entered as 0. Use;
HeightRule: Establishes rule based on height. max_height covers maximum height. Height_field specifies the attribute name that defines the height of the products in the basket. If there is none, the default is entered as 0. Use;
CityRule: Establishes city rule according to the entered address. Use; if the Exclude field is true, it includes excluding the entered cities, if false, it only includes the entered cities. Cities is where the city IDs must go Use;
CountryRule: Establishes country rule according to the entered address. Use; if the Exclude field is true, it includes excluding the entered countries, if false, it only includes the entered countries. Countries is where the country IDs must go Use;
TownshipRule: Establishes township rule according to the entered address. Use; if the Exclude field is true, it includes excluding the entered townships, if false, it only includes the entered townships. Townships is where the township IDs must go Use;
DistrictRule: Establishes district rule according to the entered address. Use; if the Exclude field is true, it includes excluding the entered districts, if false, it only includes the entered districts. Districts is where the district IDs should go Use;
TimeRule: The rule that covers the order interval determined with start_time and end_time. Use;
DayOfWeekRule: Establishes day of week rule. Use;
BasketAmountRule: Establishes the basket amount rule. Use;
TotalProductAmountRule: Establishes the total product amount rule. Use;
ProductAttributeRule: Establishes the product attribute rule. Use;
RetailStoreRule: Establishes the retail store rule. Use;
NotRule, AndRule and OrRule: Rule configuration is a flexible structure in which an unlimited number of nested sub-rules can be written, producing results by applying "and", "or" and "not" logic operations on custom rule sets. The "or" and "and" rules must have a "children" field, while the "not" rule must have a "child" field. Each of the custom rules has different fields. Use;
RetailStoreStockRule: Establishes the retail store stock rule. Use;
RegisteredUserRule: Establishes the registered user rule. Use;
Shipping Company
Path: api/v1/cargos/
Methods: GET
, POST
, PATCH
, PUT
, DELETE
Shipping companies are stored on Omnitron. This is the structure that enables the integrated shipping companies to be selected by means of enums and used in relevant places.
GET
Shipping Company
GET
Shipping CompanyPath: api/v1/cargos/
When a GET request is thrown directly via cargos/, you can get all the shipping companies. If you throw a GET request such as cargos/1/, you can get the shipping company with an ID value of 1. (Send a different ID value instead of 1).
POST
Create Shipping Company
POST
Create Shipping CompanyPath: api/v1/cargos/
When a post request is sent to the cargos/ endpoint, like the sample data below, the creation will be completed.
Shipping company enum values are stated below.
PATCH
Update Shipping Company
PATCH
Update Shipping CompanyPath: api/v1/cargos/{id}/
When a patch request is sent to the cargos/{id} endpoint, like the sample data below, the update will be completed. You can update the shipping company with an ID value of 1. (Send a different ID value instead of 1).
PUT
Update Shipping Company
PUT
Update Shipping CompanyPath: api/v1/cargos/{id}/
When a put request is sent to the cargos/{id} endpoint, like the sample data below, the update of the entire field will be completed. You can update the shipping company with an ID value of 1. (Send a different ID value instead of 1).
Shipping company enum values are stated below.
DELETE
Shipping Company
DELETE
Shipping CompanyPath: api/v1/cargos/{id}/
When a delete request is sent to the cargos/{id} endpoint, like the sample data below, the deletion will be completed. You can delete the shipping company with an ID value of 1. (Send a different ID value instead of 1).
Example path, cargos/2/
GET
Shipping Company Enum Values
GET
Shipping Company Enum ValuesPath: api/v1/cargos/shipping_companies/
You can get the defined shipping company enum values.
Response
Tracking Number
After the successful payment of the products in the customer basket, the numbers of the orders and tracking numbers are collected specifically (cancellation_waiting, confirmation_waiting, approved, preparing, shipped, shipped_and_informed, ready_for_pickup, attempted_delivery and delivered), and sent to the integrated and adjusted companies in the enums above. After this shipment, the cargo tracking numbers are added by updating the tracking_number fields of the orders. Customers using the online store are directed to the cargo tracking site of the companies listed in the above enums with the relevant cargo tracking number. With tasks running periodically in the background, this process is automated from end to end.
Invoice Number
Thanks to our layer inter-integrated to the ERP systems used for issuing invoices, the numbers of the invoice issued upon order are sent to the Omnitron API with an update request. This allows for the invoice number to be processed on the order.
Last updated
Was this helpful?