invalid_format
The request body is malformed, a required field is missing, or a field has the wrong type.
HTTP 400 · Bad Request
Example response
{
"error": {
"code": "invalid_format",
"message": "vat_numbers must be a non-empty array."
},
"meta": {
"request_id": "a1b2c3d4-...",
"latency_ms": 0
}
}What happened
The request failed schema validation before reaching any registry. Common causes: a required field is absent, a field has the wrong type (e.g. a string where an array is expected), or the JSON body is syntactically invalid.
How to fix
- Check the API reference for required fields on the endpoint you're calling.
- For
GET /v1/validate,vat_numberis required as a query parameter. - For
POST /v1/validate/batch,vat_numbersmust be a non-empty array of strings. - For
POST /v1/decide, bothseller_vatandbuyer_vatare required. - Verify your request includes
Content-Type: application/jsonon POST requests.
Common mistakes
- Sending
vat_numberas an array: the single-validate endpoint takes a string, not an array. - Omitting
Content-Type: application/jsonon POST requests: the body is read as empty without it. - Sending an empty
vat_numbers: []array to the batch endpoint: minimum 1 item required. - Invalid JSON syntax: trailing commas, unquoted keys. Use a JSON validator before debugging the API.
Related errors
country_unsupported: format is valid but country isn't supportedbatch_too_large: array is valid but exceeds 50 items