invalid_vat_format
HTTP Status: 422 Unprocessable Entity
Example response
What happened?
The VAT number doesn’t match the expected formatCC123456789 (two-letter country code followed by alphanumeric characters), or the country code is not supported. This happens when:
- The VAT number is missing a two-letter country prefix
- The country code is not in the supported countries list
- The number contains only the country code with no digits
- The number contains invalid characters after normalization
How to fix
- Include the country code — Always prefix with a two-letter code:
NL123456789B01,GB123456789,DE123456789 - Check supported countries — See the full list at Supported Countries
- Let the API normalize — Don’t strip spaces or dots manually. Send
"NL 123.456.789 B01"and the API handles it
Common mistakes
- Forgetting the country code —
123456789instead ofNL123456789B01 - Using lowercase — This actually works fine (the API normalizes to uppercase), but check there’s a country prefix
- Including “VAT” prefix —
VAT123456789is not valid; use the country code instead - Using
GRfor Greece — Greece usesELin the VIES system, notGR - Using an unsupported country — Only EU member states, GB, and XI are supported
Related errors
missing_parameter— VAT number parameter not provided at all