Skip to content

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_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

  • If-Matchstring · or null

    ETag from the last read, e.g. "v3"

  • shop-api-versionYYYY-MM

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

Body

  • namestring · or null
  • countriesarray of strings · or null
  • regionsarray of strings · or null
  • citiesarray of strings · or null

Returns

200 Updated zone.

Errors

  • 404not_foundNo such zone.
  • 409Name taken or destination already covered.
  • 412precondition_failedThe zone changed since it was read.
  • 422validation_failedValidation failed.