Skip to main content
Countries are the settings records an address or a warehouse refers to. You can list them, read one, and update a country’s status, description or default address fields. This area has 3 endpoints, and all seven SDKs call every one.

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 country id starts with country_. Other records, such as a warehouse, refer to a country by this id.
  • A country’s name holds its two letter code. For example AU for Australia.
  • The listing pages by cursor with the cursor parameter. starting_after is ignored and returns the first page again.
  • An update accepts status, description and the default_* fields. Send them under country.