Skip to main content

invalid_eori_format

HTTP Status: 422 Unprocessable Entity

Example response

The error echoes the normalized form of the eori_number you submitted, so you can see what was checked after uppercasing and stripping spaces, dots and dashes.

What happened?

The number sent to GET /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

  1. Include the country prefix: GB123456789000, NL123456789, XI123456789000
  2. Send the EORI number, not the VAT number: a GB VAT number has 9 digits, a GB EORI number has 12 to 15. GB123456789 fails here; the EORI number for that trader is usually GB123456789000
  3. Let the API normalize: send gb 123.456.789 000 as typed. Spaces, dots, dashes and casing are handled for you

Common mistakes

  • Sending a VAT number: use GET /v1/validate for VAT numbers. The two registers are separate
  • Dropping a leading zero: many Belgian numbers start with one (BE0123456789). Keep the number as issued
  • Using EL for Greece: this works. Greek EORI numbers are issued with GR, and a number sent with the VAT prefix EL is rewritten to GR for you
  • Sending a Swiss, Norwegian or other non-EU number: only numbers issued by an EU member state or the UK can be checked