Get Country

GET/countries/{id}

Get Country.

Audit event:

  • biz.core.v2.country.get

Errors:

  • BIZ_CORE:COUNTRY_NOTFOUND - Country with given id not found.
Base URL
https://api-cpaas.sms.es/biz-core/v2
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

idintegerrequired

id.

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/biz-core/v2/countries/{id}" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Country data

application/json
cashRoundingnumber (float)
code2string
code3string
continentstring
max length: 2
currencyinteger
defLangstring
max length: 2
defTaxCategoryIdinteger
dialCodestring
max length: 10
domainstring
max length: 5
idinteger
namestring
statusstring
Possible values: A, N
statusDtstring (date-time)
typestring
Possible values: formal, undefined, virtual, informal
Example response
{
  "cashRounding": 0,
  "code2": "string",
  "code3": "string",
  "continent": "string",
  "currency": 0,
  "defLang": "string",
  "defTaxCategoryId": 0,
  "dialCode": "string",
  "domain": "string",
  "id": 0,
  "name": "string",
  "status": "A",
  "statusDt": "2026-01-01T12:00:00Z",
  "type": "formal"
}