Skip to content

Reference data

Countries

ISO 3166-1 alpha-2 country codes.

GET{baseUrl}/{stage}/external/{businessId}/resources/countries

Retrieve available countries for a specific business.

Quick Reference

MethodEndpointAuthentication Required
GET{baseUrl}/{stage}/external/{businessId}/resources/countriesYes

Request Structure

Path Parameters

businessIdstringrequired
Unique identifier of the businessExample: 26ede24b-ac50-475f-aacc-5ea6339f0863

Headers

Content-Typerequired
application/json or */*
Acceptrequired
application/json or */*
X-Business-Keyrequired

Response Format

Success Response (200)

JSON
{
  "responseCode": "00",
  "responseMessage": "Country resources retrieved successfully",
  "data": [
    {
      "alpha_2": "NG",
      "alpha_3": "NGA",
      "country_code": "566",
      "intermediate_region": "",
      "intermediate_region_code": "",
      "iso_3166_2": "ISO 3166-2:NG",
      "name": "Nigeria",
      "region": "Africa",
      "region_code": "002",
      "sub_region": "Western Africa",
      "sub_region_code": "011"
    },
    {
      "alpha_2": "US",
      "alpha_3": "USA",
      "country_code": "840",
      "intermediate_region": "",
      "intermediate_region_code": "",
      "iso_3166_2": "ISO 3166-2:US",
      "name": "United States of America",
      "region": "Americas",
      "region_code": "019",
      "sub_region": "Northern America",
      "sub_region_code": "021"
    }
  ]
}

Response Data Structure

Country Object

alpha_2string
ISO 3166-1 alpha-2 country code
alpha_3number
ISO 3166-1 alpha-3 country code
country_codestring
ISO 3166-1 numeric country code
intermediate_regionstring
Intermediate region label; empty if not applicable
intermediate_region_codenumber
Intermediate region numeric code; empty if not applicable
iso_3166_2string
ISO 3166-2 subdivision code prefix
namestring
Official country name
regionstring
Continent or major world region
region_codestring
Numeric code for the region
sub_regionstring
Sub-region classification
sub_region_codestring
Numeric sub-region code

Error Responses

Error CodeMessageDescription
404Business not foundBusiness ID doesn't exist
403Access deniedUser doesn't have permission
400Invalid business IDBusiness ID format is invalid

Example Error Response

JSON
{
  "responseCode": "404",
  "responseMessage": "Business not found with ID: invalid-business-id",
  "data": null
}

Related Endpoints

  • POST /invoices - Create invoice (uses currency data)
  • GET /businesses/{businessId}/settings - Get business configuration

This endpoint provides currency information for businesses to use in invoices and financial documents.