Update shipping rate
PATCH
/ admin/ v1/ stores/ {store_id}/ shipping/ zones/ {zone_id}/ rates/ {rate_id}- settings:write
Change a shipping rate.
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….rate_idstringrequiredThe shipping rate's ID, like
shr_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestring · or nullkindenum · or nullHow a rate's charge is determined.
- flat
- weight
- price
- carrier
amountobject · or nullAn exact amount of money in the currency's minor unit (halalas, cents, fils…).
tiersarray of objects · or nullcarrierobject · or nullHow a carrier rate is priced: the carrier account's live price for the parcel, with a markup (negative: a discount).
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
200 Updated rate.
Errors
- 404
not_foundNo such rate in this zone. - 422
validation_failedValidation failed.