validation_error
HTTP Status: 422 Unprocessable Entity
Example response
What happened?
The request body failed schema validation. This applies to endpoints that accept a JSON body, such as the batch validation endpoint. Common causes:vat_numbersarray is empty or contains more than 50 itemsvat_numbersis not an array of strings- Required fields are missing from the request body
- Extra fields with incorrect types were provided
How to fix
- Check the
messagefield: It describes exactly which validation rule failed - Review the request body schema: See Batch Validation for the expected shape
- Ensure correct types:
vat_numbersmust be an array of strings,cachemust be a boolean
Common mistakes
- Sending an empty array:
vat_numbersmust contain at least 1 item - Exceeding 50 items: Split large batches into multiple requests of 50 or fewer
- Wrong Content-Type: Make sure you set
Content-Type: application/json - Confusing with
invalid_vat_format:validation_erroris about the request structure;invalid_vat_formatis about individual VAT number formats
Related errors
invalid_vat_format- Individual VAT number format is wrong (not the request body)invalid_json- Request body is not valid JSON at all