NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

VAT Number Validator API

GET

Catch a mistyped VAT number before it reaches an invoice.

VAT Number Validator checks the format and check digits of a VAT number from any EU member state, the UK, Northern Ireland (XI), Switzerland or Norway, using each tax authority's published algorithm. It returns whether the number is well formed, the country and a pass or fail for each check. It does not check registration: a number can pass and still not be registered. Paid plans add the number type, the correct check digits and EU and VIES flags.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/vatnumbervalidator?vat=IE6388047V
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "vatNumber": "IE6388047V",
    "isValid": true,
    "countryCode": "IE",
    "isoCountryCode": "IE",
    "countryName": "Ireland",
    "localNumber": "6388047V",
    "checks": {
      "country": true,
      "format": true,
      "checksum": true
    },
    "errors": [],
    "numberType": null,
    "expectedCheckDigits": null,
    "algorithm": "weighted MOD 23 letter",
    "isEU": true,
    "inVies": true
  }
}

About the VAT Number Validator API

A VAT number format and checksum API for checkout, supplier onboarding and invoice checks. Send a number with its country prefix, such as DE136695976, CHE-116.281.710 MWST or NO 923 609 016 MVA, and get back whether it matches that country's format and check-digit algorithm. Spaces, dots, dashes and lower case are accepted, Greece can be written EL or GR, and a number without a prefix works when you send the country.

This is an offline check of the number itself. It does not ask VIES, HMRC or any registry whether the number is registered or active, so it answers instantly and never fails because a national VAT system is down. Use it to reject typos as they are typed, then confirm registration with VIES or HMRC for the numbers that pass.

The Free plan returns the verdict, the normalised number, the country and the result of each check. Paid plans add the number type where the format reveals it (legal entity, individual, UK branch, government department), the check digits a mistyped number should have had, the algorithm used, and whether the country is in the EU and in VIES.

What people use it for

Checkout and Billing
Reject a mistyped VAT number as a business customer types it, before you issue a reverse-charge invoice.
Supplier Onboarding
Check the VAT numbers suppliers submit and flag the ones that cannot be right before they reach accounts payable.
Pre-check Before VIES
Filter out malformed numbers before calling VIES or HMRC, so the slow registry lookup only runs on numbers that can pass.
Data Cleaning
Normalise the VAT numbers in a CRM or ERP to one format and find the ones with bad check digits.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use VAT Number Validator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the VAT Number Validator API.

Read the docs →
Does it check that the VAT number is registered?
No. It checks the format and check digits only, using each country's published algorithm, and never contacts VIES, HMRC or any registry. A number that passes is well formed, but it may not be issued, registered or active. Confirm registration with VIES (EU and XI), HMRC (GB) or the Swiss UID register.
How many VAT number checks does the Starter plan cover?
Starter covers 40,000 checks each month. At 5 credits per request, that works out to $0.75 per 1,000 checks, or about $0.00075 per check. The Free plan includes 40 checks per month for testing.
What does the Free plan return?
The Free plan returns isValid, the normalised VAT number, the country prefix, ISO code and name, the local number, the errors and a pass or fail for the country, format and checksum checks. Paid plans add numberType, expectedCheckDigits, the algorithm used and the isEU and inVies flags.
Which countries are covered?
All 27 EU member states, the UK (GB) and Northern Ireland (XI), Switzerland (CHE numbers with or without the MWST, TVA, IVA or TPV suffix), Norway (with or without MVA) and EU numbers issued under the non-Union OSS scheme, which have no published check digit and are checked for format only.
What happens with an invalid number?
It returns a normal response with isValid false and the reasons, such as a wrong format for the country or wrong check digits. On paid plans, expectedCheckDigits gives the check digits the number would need, which catches a single mistyped digit, for countries where only one value can fit.
How were the algorithms checked?
Each country's rules follow the check-digit algorithm published by its tax authority. They were cross-checked against python-stdnum on over 120,000 generated numbers and against more than 600 real VAT numbers published by companies, with no disagreement apart from separators: commas inside a number are accepted here.

Ready to build with VAT Number Validator? Start with 200 free credits — one key unlocks all 417+ APIs.

Explore the catalog

417+ APIs on the same key and the same response shape.

Browse all APIs