Update shipping zone
PATCH
/ admin/ v1/ stores/ {store_id}/ shipping/ zones/ {zone_id}- settings:write
Rename a shipping zone or change where it ships. Send If-Match: "v{version}" to avoid overwriting someone else's changes.
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
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestring · or nullcountriesarray of strings · or nullregionsarray of strings · or nullcitiesarray of strings · or null
Returns
200 Updated zone.
Errors
- 404
not_foundNo such zone. - 409Name taken or destination already covered.
- 412
precondition_failedThe zone changed since it was read. - 422
validation_failedValidation failed.