Skip to content

Create shipping rate

POST/admin/v1/stores/{store_id}/shipping/zones/{zone_id}/rates
  • settings:write
  • Idempotency-Key supported

Add a rate to a shipping zone.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • zone_idstringrequired

    The shipping zone's ID, like shz_01k8qs5s….

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • namestringrequired
  • kindenumrequired

    How a rate's charge is determined.

    • flat
    • weight
    • price
    • carrier
  • amountobject · or null

    Required for flat rates; not allowed for tiered ones.

  • tiersarray of objects

    Required for weight and price rates.

  • carrierobject · or null

    Required for carrier rates.

  • free_overobject · or null

    An exact amount of money in the currency's minor unit (halalas, cents, fils…).

  • min_delivery_daysinteger · or null
  • max_delivery_daysinteger · or null

Returns

201 Rate created.

Errors

  • 404not_foundNo such zone.
  • 409Rate limit of the zone reached.
  • 422validation_failedValidation failed.