Save general shopping schema
POST/openapi/2026-07/shipping-schemas/general
Create or Modify a general shipping schema.
Request
- application/json
- Body
- Example
Bodyrequired
- Array [
1: supported0: not supported- Array [
price: order totalquantity: grouped quantityweight: grouped weightpass: no conditionnormal: flat feeweight: first-weight + additional-weightpercent: percentage-basedthird: third-party carrier- flat fee amount
- first-weight fee
- percentage value
- empty for third-party.
1: custom2: third-party carrier1: order level2: group level3: other- ]
- Array [
- ]
- ]
shipping_schemas object
Shipping schemas
Shipping schema ID; updates the record if it exists, creates a new one otherwise
Name of the shipping schema
shippings object[]
List of shipping zone configurations
Shipping zone ID; updates the record if it exists, creates a new one otherwise
Name of the shipping zone
Whether cash on delivery is supported:
plans object[]
List of shipping rate plans for this zone
Shipping plan ID; updates the record if it exists, creates a new one otherwise
Name of the shipping rate plan
Description of the shipping rate plan
Condition type for range rules:
Minimum value of the condition range
Maximum value of the condition range
Flag indicating the maximum value is unbounded (infinity)
Unit of the range value, e.g. weight unit "kg", quantity unit "piece", price unit as currency code
Rate calculation method:
Rate value corresponding to the rate type:
Weight threshold for the first-weight tier
Unit for the first-weight tier (e.g. "kg")
Additional fee charged per additional weight unit beyond the first-weight tier
Unit for the additional-weight tier (e.g. "kg")
Weight increment per additional-weight unit
Plan type:
Configuration value associated with the plan type (e.g. third-party carrier identifier)
Scope of the range rule:
areas object[]
List of geographic areas covered by this zone
Display name of the country
ISO country code
List of province/state codes covered by this area
{
"shipping_schemas": {
"id": "string",
"name": "string",
"shippings": [
{
"id": "string",
"name": "string",
"support_cod": 0,
"plans": [
{
"id": "string",
"name": "string",
"desc": "string",
"rule_type": "string",
"rule_range_min": "string",
"rule_range_max": "string",
"rule_range_infinite": 0,
"rule_range_unit": "string",
"rate_type": "string",
"rate_amount": "string",
"rate_first_range": "string",
"rate_first_unit": "string",
"rate_additional_amount": "string",
"rate_additional_unit": "string",
"rate_additional_range": "string",
"plan_type": 0,
"plan_type_value": "string",
"rule_type_scope": 0
}
],
"areas": [
{
"country_name": "string",
"country_code": "string",
"province_codes": [
"string"
]
}
]
}
]
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
0: general1: custom- Array [
- Array [
1: supported0: not supportedprice: order totalquantity: grouped quantityweight: grouped weightpass: no conditionnormal: flat feeweight: first-weight + additional-weightpercent: percentage-basedthird: third-party carrier- flat fee amount
- first-weight fee
- percentage value
- empty for third-party.
1: custom2: third-party carrier1: order level2: group level3: other- ]
- Array [
- ]
- ]
error code
error message
data object
shipping_schemas object
The saved general shipping schema
Shipping schema ID
Name of the shipping schema
Schema type:
Number of product variants associated with this schema
shippings object[]
List of shipping zones under this schema
Shipping ID
Name of the shipping zone
ID of the shipping schema this zone belongs to
Whether cash on delivery is supported; 1 = supported, 0 = not supported
plans object[]
List of shipping rate plans for this zone
Shipping rate plan ID
ID of the shipping zone this plan belongs to
Name of the shipping rate plan
Description of the shipping rate plan
Whether cash on delivery is supported:
Condition type for range rules:
Minimum value of the condition range
Maximum value of the condition range
Flag indicating the maximum value is unbounded (infinity)
Unit of the range value, e.g. weight unit "kg", quantity unit "piece", price unit as currency code
Rate calculation method:
Rate value corresponding to the rate type:
Weight threshold for the first-weight tier
Unit for the first-weight tier (e.g. "kg")
Additional fee charged per additional weight unit beyond the first-weight tier
Unit for the additional-weight tier (e.g. "kg")
Weight increment per additional-weight unit
ID of the store this plan belongs to
Timestamp when the plan was created
Timestamp when the plan was last updated
Plan type:
Configuration value associated with the plan type (e.g. third-party carrier identifier)
Scope of the range rule:
areas object[]
List of geographic areas covered by this zone
ID of the shipping zone this area belongs to
Display name of the country
ISO country code
List of province/state codes covered by this area
{
"code": "string",
"message": "string",
"data": {
"shipping_schemas": {
"id": "string",
"name": "string",
"schema_type": 0,
"variant_num": 0,
"shippings": [
{
"id": "string",
"name": "string",
"schema_id": "string",
"support_cod": 0,
"plans": [
{
"id": "string",
"shipping_id": "string",
"name": "string",
"desc": "string",
"support_cod": 0,
"rule_type": "string",
"rule_range_min": "string",
"rule_range_max": "string",
"rule_range_infinite": 0,
"rule_range_unit": "string",
"rate_type": "string",
"rate_amount": "string",
"rate_first_range": "string",
"rate_first_unit": "string",
"rate_additional_amount": "string",
"rate_additional_unit": "string",
"rate_additional_range": "string",
"store_id": "string",
"created_time": "string",
"updated_time": "string",
"plan_type": 0,
"plan_type_value": "string",
"rule_type_scope": 0
}
],
"areas": [
{
"shipping_id": "string",
"country_name": "string",
"country_code": "string",
"province_codes": [
"string"
]
}
]
}
]
}
}
}