Skip to main content

Get a single country

This endpoint returns a specific country available in the TEOS platform. No OData query options are supported for this endpoint.

Request Endpoint:​

GET /odata/v1.0/Countries(code={code},languageCode={languageCode})

Usage:​

GET /Countries(code='CH',languageCode='en')

Parameters:​

  • code (string, path) — Country code.
  • languageCode (string, path) — Code of the language of the country name (ISO 2).

Request Body:​

None

Response Body:​

application/json — Returns a single country object.

Example Response Body:​

{
"LanguageCode": "en",
"Code": "CH",
"Name": "Switzerland"
}

Response Codes:​

CodeDescription
200The record was successfully retrieved.
400Bad Request
401Unauthorized.
404The record does not exist.