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_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.zone_idstringrequiredThe shipping zone's ID, like
shz_01k8qs5s….
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestringrequiredkindenumrequiredHow a rate's charge is determined.
- flat
- weight
- price
- carrier
amountobject · or nullRequired for flat rates; not allowed for tiered ones.
tiersarray of objectsRequired for weight and price rates.
carrierobject · or nullRequired for carrier rates.
free_overobject · or nullAn exact amount of money in the currency's minor unit (halalas, cents, fils…).
min_delivery_daysinteger · or nullmax_delivery_daysinteger · or null
Returns
201 Rate created.
Errors
- 404
not_foundNo such zone. - 409Rate limit of the zone reached.
- 422
validation_failedValidation failed.