comecerodocs

List countries

GET
/countries

Lists every country Comecero knows, sorted by name, with its currency and what an address form needs (postal code, states). Use it to build country and state pickers.

This needs no token. Every country comes in one response, so there is no paging.

Response Body

Every country.

application/json
  1. response

Every country, in one page.

object?"list"

Always list.

Value in"list"
has_more?boolean

Always false. Every country comes in one response.

total_count?integer

The number of countries.

data?array<>

The countries, sorted by name.

Example Request
curl -X GET 'https://api.comecero.com/api/v1/countries'
Example Response
{  "object": "list",  "has_more": false,  "total_count": 1,  "data": [    {      "name": "Canada",      "code": "CA",      "currency_code": "CAD",      "currency_code_alternate": null,      "default_locale": "en-CA",      "is_eu": false,      "has_postal_code": true,      "requires_state_prov": true,      "state_taxes": true,      "states": [        {          "name": "Alberta",          "code": "AB"        }      ]    }  ]}