Reference

List available countries

Lists the valid country values for bundle creation. Most are ISO-3166-1 alpha-2 (FR, DE, BR), but TokPortal's own codes are the authority and two of them are not alpha-2: the United States is USA and the United Kingdom is UK. Their ISO aliases US and GB are accepted and resolved to those two, so send a code from this list verbatim and never assume alpha-2. Call before createBundle or createBundlesBulk: country is validated against this list, and a full country name such as "United States" is rejected. videos_only_countries applies only to video orders on an existing account and is never valid for /bundles/bulk.

get/countries

Request

  • Base URL: https://app.tokportal.com/api/ext
  • URL: https://app.tokportal.com/api/ext/countries
  • Auth: none required

Response

Country availability by order type. data contains countries available for new account creation; videos_only_countries contains countries available for video orders on an existing account. Fully disabled countries are excluded from both lists.

Example response

{
  "data": [
    {
      "code": "DE",
      "name": "Germany"
    }
  ],
  "videos_only_countries": [
    {
      "code": "DE",
      "name": "Germany"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.