Docs
Management API
Countries

Countries

Get All Countries

GET /countries

Request

Get a list of all countries available. A country or territory, identifiable by an ISO 3166 country code.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string
  • Accept in header with default of application/json - string
    required
  • Content-Type in header with default of application/json - string
    required
  • page in query - number

    Number of pages.

  • limit in query - number

    Count per page.

  • country in query - string
  • country_iso2 in query - string
  • country_iso3 in query - string

example

Response

Body

array | application/json

    example

    Get a Country

    GET /countries/{id}

    Request

    Returns a single Country. Gets a country. A country or territory, identifiable by an ISO 3166 country code.

    Authentication

    • X-Auth-Token in header
      required

    Parameters

    • store_hash in path - string
    • id in path - integer
      required

      The ID of the country.

    • Accept in header with default of application/json - string
      required
    • Content-Type in header with default of application/json - string
      required

    example

    Response

    Body

    application/json

    response

    Get a Count of All Countries

    GET /countries/count

    Request

    Returns a count of all countries.

    Authentication

    • X-Auth-Token in header
      required

    Parameters

    • store_hash in path - string

    example

    Response

    Body

    object | application/json
    • count
      integer

      Min: 1

    response

    Did you find what you were looking for?