Skip to content

invalid_country_code

Validation failed. HTTP status 400.

The country in the path of `GET /api/v2/tax-details/{country}` is not a two-letter country code.

What to do

Use a two-letter ISO 3166-1 code in the path, for example GET /api/v2/tax-details/SE.

What the message says

  • Country code must be a 2-letter ISO country code.

Example

Response 400
{
"type": "https://developer.hostup.se/errors/invalid_country_code",
"title": "Validation failed",
"status": 400,
"detail": "Country code must be a 2-letter ISO country code.",
"code": "invalid_country_code",
"requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"
}

Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.