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 anAuthorization header: Authorization: Bearer $ACCESS_TOKEN.
Things to know
- A zone needs at least one country.
country_listtakes countryidvalues, thecountry_ids thatGET /settings/countriesreturns. - Writes are wrapped in
zone, and one zone comes back underzone. A new zone’sdisplay_nameis set from itsname. - 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 afterzn_; see Set a shipping rule’s configuration. - The listing pages by cursor. Pass
limit, then send thenext_cursorfrompaginationascursoruntilhas_moreisfalse.