Get Countries
The endpoint retrieves a list of countries. The user must have the appropriate authorization to access this endpoint.
Endpoint Information
URL:
https://account.testinium.com/account/api/v1/enums/countries
Method:
GET
Authentication: Required (
Bearer Token
)Header: Required (
current-company-id: <your_company_id>
)
Response
The response contains a list of countries, each with the following fields:
Response Fields
entityId
Integer
The unique ID of the country.
provinces
Object
A list of provinces in the country (if available).
name
String
The name of the country.
code
String
The ISO country code (e.g., "AF" for Afghanistan).
links
Array
A list of associated links (if any).
Error Codes
401
UNAUTHORIZED
Missing or invalid authentication token.
500
INTERNAL_SERVER_ERROR
An unexpected error occurred on the server side.
Example Request
Last updated