GET
/
core
/
countries
/
GetAll
Get Countries
curl --request GET \
  --url https://api.onekhusa.com/sandbox/v1/core/countries/GetAll \
  --header 'Authorization: Bearer <token>'
[
  {
    "countryCode": "MWI",
    "countryName": "Malawi"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer Token, Where accessToken is the access token used to authenticate the request.

Headers

Accept-Language
string
default:en

Preferred language for the response

Response

200 - application/json

Success Response

countryCode
string
required

A two-letter ISO 3166-1 code that identifies the country

Example:

"MW"

countryName
string
required

The full name of the country

Example:

"Malawi"