Skip to main content
Version: 202607

Save general shopping schema

POST 

/openapi/2026-07/shipping-schemas/general

Create or Modify a general shipping schema.

Request

Bodyrequired

    shipping_schemas object

    Shipping schemas

    idstring

    Shipping schema ID; updates the record if it exists, creates a new one otherwise

    namestringrequired

    Name of the shipping schema

    shippings object[]

    List of shipping zone configurations

  • Array [
  • idstring

    Shipping zone ID; updates the record if it exists, creates a new one otherwise

    namestringrequired

    Name of the shipping zone

    support_codint32

    Whether cash on delivery is supported:

    • 1: supported
    • 0: not supported
    plans object[]

    List of shipping rate plans for this zone

  • Array [
  • idstring

    Shipping plan ID; updates the record if it exists, creates a new one otherwise

    namestringrequired

    Name of the shipping rate plan

    descstring

    Description of the shipping rate plan

    rule_typestring

    Condition type for range rules:

    • price: order total
    • quantity: grouped quantity
    • weight: grouped weight
    • pass: no condition
    rule_range_minstring

    Minimum value of the condition range

    rule_range_maxstring

    Maximum value of the condition range

    rule_range_infiniteint32

    Flag indicating the maximum value is unbounded (infinity)

    rule_range_unitstring

    Unit of the range value, e.g. weight unit "kg", quantity unit "piece", price unit as currency code

    rate_typestring

    Rate calculation method:

    • normal: flat fee
    • weight: first-weight + additional-weight
    • percent: percentage-based
    • third: third-party carrier
    rate_amountstring

    Rate value corresponding to the rate type:

    • flat fee amount
    • first-weight fee
    • percentage value
    • empty for third-party.
    rate_first_rangestring

    Weight threshold for the first-weight tier

    rate_first_unitstring

    Unit for the first-weight tier (e.g. "kg")

    rate_additional_amountstring

    Additional fee charged per additional weight unit beyond the first-weight tier

    rate_additional_unitstring

    Unit for the additional-weight tier (e.g. "kg")

    rate_additional_rangestring

    Weight increment per additional-weight unit

    plan_typeint32

    Plan type:

    • 1: custom
    • 2: third-party carrier
    plan_type_valuestring

    Configuration value associated with the plan type (e.g. third-party carrier identifier)

    rule_type_scopeint32

    Scope of the range rule:

    • 1: order level
    • 2: group level
    • 3: other
  • ]
  • areas object[]

    List of geographic areas covered by this zone

  • Array [
  • country_namestringrequired

    Display name of the country

    country_codestringrequired

    ISO country code

    province_codesstring[]

    List of province/state codes covered by this area

  • ]
  • ]

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    shipping_schemas object

    The saved general shipping schema

    idstring

    Shipping schema ID

    namestring

    Name of the shipping schema

    schema_typeint32

    Schema type:

    • 0: general
    • 1: custom
    variant_numint32

    Number of product variants associated with this schema

    shippings object[]

    List of shipping zones under this schema

  • Array [
  • idstring

    Shipping ID

    namestring

    Name of the shipping zone

    schema_idstring

    ID of the shipping schema this zone belongs to

    support_codint32

    Whether cash on delivery is supported; 1 = supported, 0 = not supported

    plans object[]

    List of shipping rate plans for this zone

  • Array [
  • idstring

    Shipping rate plan ID

    shipping_idstring

    ID of the shipping zone this plan belongs to

    namestring

    Name of the shipping rate plan

    descstring

    Description of the shipping rate plan

    support_codint32

    Whether cash on delivery is supported:

    • 1: supported
    • 0: not supported
    rule_typestring

    Condition type for range rules:

    • price: order total
    • quantity: grouped quantity
    • weight: grouped weight
    • pass: no condition
    rule_range_minstring

    Minimum value of the condition range

    rule_range_maxstring

    Maximum value of the condition range

    rule_range_infiniteint32

    Flag indicating the maximum value is unbounded (infinity)

    rule_range_unitstring

    Unit of the range value, e.g. weight unit "kg", quantity unit "piece", price unit as currency code

    rate_typestring

    Rate calculation method:

    • normal: flat fee
    • weight: first-weight + additional-weight
    • percent: percentage-based
    • third: third-party carrier
    rate_amountstring

    Rate value corresponding to the rate type:

    • flat fee amount
    • first-weight fee
    • percentage value
    • empty for third-party.
    rate_first_rangestring

    Weight threshold for the first-weight tier

    rate_first_unitstring

    Unit for the first-weight tier (e.g. "kg")

    rate_additional_amountstring

    Additional fee charged per additional weight unit beyond the first-weight tier

    rate_additional_unitstring

    Unit for the additional-weight tier (e.g. "kg")

    rate_additional_rangestring

    Weight increment per additional-weight unit

    store_idstring

    ID of the store this plan belongs to

    created_timestring

    Timestamp when the plan was created

    updated_timestring

    Timestamp when the plan was last updated

    plan_typeint32

    Plan type:

    • 1: custom
    • 2: third-party carrier
    plan_type_valuestring

    Configuration value associated with the plan type (e.g. third-party carrier identifier)

    rule_type_scopeint32

    Scope of the range rule:

    • 1: order level
    • 2: group level
    • 3: other
  • ]
  • areas object[]

    List of geographic areas covered by this zone

  • Array [
  • shipping_idstring

    ID of the shipping zone this area belongs to

    country_namestring

    Display name of the country

    country_codestring

    ISO country code

    province_codesstring[]

    List of province/state codes covered by this area

  • ]
  • ]