invalid_eori_format
HTTP Status: 422 Unprocessable Entity
Example response
eori_number you submitted, so you can see what was checked after uppercasing and stripping spaces, dots and dashes.
What happened?
The number sent toGET /v1/eori/validate cannot be an EORI number that either register would accept. No register was called and the request did not count against your quota.
The message names the rule that failed:
How to fix
- Include the country prefix:
GB123456789000,NL123456789,XI123456789000 - Send the EORI number, not the VAT number: a GB VAT number has 9 digits, a GB EORI number has 12 to 15.
GB123456789fails here; the EORI number for that trader is usuallyGB123456789000 - Let the API normalize: send
gb 123.456.789 000as typed. Spaces, dots, dashes and casing are handled for you
Common mistakes
- Sending a VAT number: use
GET /v1/validatefor VAT numbers. The two registers are separate - Dropping a leading zero: many Belgian numbers start with one (
BE0123456789). Keep the number as issued - Using
ELfor Greece: this works. Greek EORI numbers are issued withGR, and a number sent with the VAT prefixELis rewritten toGRfor you - Sending a Swiss, Norwegian or other non-EU number: only numbers issued by an EU member state or the UK can be checked
Related errors
missing_parameter: theeori_numberparameter was not provided at allupstream_unavailable: the number is well-formed and the register is down