Skip to main content
A zone is a named group of countries. Shipping rules name zones in their configuration. These endpoints list, read, create, update and delete zones. This area has 5 endpoints, each available in all seven SDKs.

At a glance

Before you call

Register your API credentials once when your app starts, as shown in Authentication. Every SDK sample on these pages then gets its client in one line. With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.

Things to know

  • A zone needs at least one country. country_list takes country id values, the country_ ids that GET /settings/countries returns.
  • Writes are wrapped in zone, and one zone comes back under zone. A new zone’s display_name is set from its name.
  • Zone ids are prefixed with zn_. A shipping rule configuration names a zone by its UUID with dashes instead, built from the 32 hex digits after zn_; see Set a shipping rule’s configuration.
  • The listing pages by cursor. Pass limit, then send the next_cursor from pagination as cursor until has_more is false.