Countries API

Countries represent a list of all available countries used for shipping and billing addresses.

Country object

Attribute Type Description
id string The unique 2-letter code for the country.
name string The full name of the country.

Get all countries

Get a list of all countries sorted alphabetically by name.

GET /v1/countries
{
  "data":[
    {
      "id":"AF",
      "type":"countries",
      "attributes": {
        "name":"Afghanistan"
      }
    },
    {
      "id":"AL",
      "type":"countries",
      "attributes": {
        "name":"Albania"
    },
    {
      "id":"DZ",
      "type":"countries",
      "attributes": {
        "name":"Algeria"
      }
    },
    ...
    {  
      "id":"ZW",
      "type":"countries",
      "attributes": {
        "name":"Zimbabwe"
      }
    }
  ],
  "meta":{
    "count":"247"
  }
}

Parameters

None.