Skip to main content

EU VAT Validation API

Validate any EU VAT number over one REST call: a format verdict plus, with live mode, the current registration status, company name and address from the EU's official VIES registry.

Last updated: 2026-10-28

One endpoint validates an EU VAT number: it tells you whether the number is correctly formed for its member state and — in live mode — whether it is currently registered in the EU's official VIES registry, with the registered company name and address. Everything under https://api.zztools.org needs a Bearer key.

/v1/vat — GET

curl -s "https://api.zztools.org/v1/vat?vat=FR40303265045&live=1" \
  -H "Authorization: Bearer $ZZTOOLS_API_KEY"

Parameters

Name In Type Required Description
vat query string required VAT number with its country prefix, e.g. DE136695976. Spaces, dots and dashes are stripped automatically; input is upper-cased, so de 136-695.976 works as-is.
live query 0 / 1 optional 1 also queries the EU VIES registry for current registration status, name and address. Omitted or 0 = format check only.

Response — a registered number (live=1)

{
  "ok": true, "code": 0, "message": "ok",
  "data": {
    "vat_number": "FR40303265045",
    "country_code": "FR",
    "country_name": "France",
    "format_valid": true,
    "vies": {
      "valid": true,
      "name": "SA SODIMAS",
      "address": "11 RUE AMPERE, 26600 PONT DE L ISERE",
      "request_date": "2026-10-28T06:40:19.294Z",
      "request_identifier": "2229707-99e8050-0a097f0fcf"
    }
  },
  "meta": { "api_version": "1.0", "ts": 1769587200 }
}

request_identifier is the consultation number issued by the EU registry — keep it together with request_date as evidence for intra-EU zero-rated supplies.

Response — a malformed number

A wrong format is still a normal 200 answer — you get the verdict, not an error:

{
  "ok": true, "code": 0, "message": "ok",
  "data": {
    "vat_number": "DE12345678",
    "country_code": "DE",
    "country_name": "Germany",
    "format_valid": false,
    "reason_code": "format_mismatch"
  }
}

reason_code is one of format_mismatch (does not match the member state's published layout) or non_eu (the prefix is not one of the 27 EU member states, nor EL/Greece or XI/Northern Ireland). A number outside VIES coverage always answers non_eu.

Errors

HTTP Code Meaning What to do
400 2005 missing_vat No vat parameter Add vat=<number>
401 3002 / 3003 Key missing / invalid Send Authorization: Bearer zzk_... or X-API-Key: zzk_...
429 3005 / 3006 Rate limited / monthly free quota used up Slow down; upgrade or wait for the next month
503 2007 vies_unavailable The EU registry is momentarily unreachable (it applies global concurrency limits) Retry shortly — this is never a verdict about the number

Any response at or above HTTP 400 is refunded in full: a 503 from the registry costs you nothing.

Billing

The offline format check costs 1 credit; adding live=1 costs 2 credits. A batch of numbers can simply be called in a loop — each call is individually metered and refunded when it fails.