Home / Guides / How to Validate an EU VAT Number

Updated

How to Validate an EU VAT Number (VIES API, with Error Codes)

To validate an EU VAT number, POST the country code and number to the free VIES REST API at ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number. It returns valid true or false and usually the registered name: FI01120389 is valid for Nokia Oyj. MS_MAX_CONCURRENT_REQ or MS_UNAVAILABLE mean the national database did not answer, not that the number is invalid.

1. One number with curl

curl -s -X POST https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number \
  -H 'Content-Type: application/json' \
  -d '{"countryCode":"FI","vatNumber":"01120389"}'
# {"valid": true, "name": "Nokia Oyj", "requestDate": "2026-12-02T10:44:30.036Z", ...}

Send the number without the country prefix and without spaces or dots. A wrong check digit (FI01120388) returns "valid": false.

2. Read the error codes

Treat all of these as unknown, never as invalid. The endpoint /rest-api/check-status lists which national databases are available right now.

3. VAT groups and names

Some numbers belong to a VAT group: EE102090374 returns Bolt Operations OÜ (Representative of VAT Group), not the company you looked up. Germany and a few other countries return no name at all. Match on the registry number, not on the name returned by VIES.

4. Many numbers

Check the format and check digit locally first, then query VIES with a few requests in parallel at most and retries with a growing delay. Plainprobe French Company Data computes the French VAT number from the SIREN and can confirm it live in VIES; Company Registry Lookup returns the VAT number from the official registers of France, Norway, Finland and Estonia. When VIES does not answer, the result says so and that check is not charged. See also How to verify a European company.

Limits to keep in mind

FAQ

How do I check if an EU VAT number is valid?

Send the country code and the number to the European Commission's free VIES REST API (POST https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number). It answers valid true or false and, for most countries, the registered name and address.

Why does VIES return MS_MAX_CONCURRENT_REQ or MS_UNAVAILABLE?

VIES only relays your query to the national tax database of that country. When that database is busy or down, you get MS_MAX_CONCURRENT_REQ or MS_UNAVAILABLE instead of an answer: that means unknown, not invalid. Retry later with a growing delay.

Can I check a Norwegian, Swiss or UK VAT number in VIES?

No. VIES covers the EU member states and Northern Ireland (XI) only; a Norwegian number returns INVALID_INPUT. Check those companies in their national registers instead.

How is a French VAT number built from a SIREN?

FR + a 2-digit key + the 9-digit SIREN, where the key is (12 + 3 × (SIREN mod 97)) mod 97. SIREN 552032534 gives FR27552032534. A correct key only proves the format; VIES says whether the number is active.

Related tool