check_vat
Validates EU VAT numbers against VIES, returning validity and registered details. Optionally obtain a consultation number for legal proof when supplying your own VAT.
Instructions
Check an EU VAT number against the VIES database (the EU-wide cross-border VAT validator). Returns valid/invalid + registered name and address if the national database returns them. Accepts either (country_code, vat_number) separately or a combined vat like 'PL5252344078'. For Polish JDG issuing 0% VAT invoices to EU B2B customers: ALSO pass requester_country + requester_vat with your own PL VAT — VIES will return a consultation_number that serves as legal proof of the check. Keep this number for your records. VIES will not issue a consultation number if EITHER VAT is invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | No | Alternative: combined form like 'PL5252344078'. If provided, country_code and vat_number are ignored. | |
| vat_number | No | VAT number without country prefix. Dashes/spaces will be stripped. | |
| country_code | No | 2-letter EU country code (e.g., PL, DE, FR). Greece uses EL, not GR. XI is Northern Ireland. | |
| requester_vat | No | Optional: your own VAT number without country prefix. Combined with requester_country to obtain a consultation number as legal proof of the check. | |
| requester_country | No | Optional: your own 2-letter country code (e.g., PL). Required together with requester_vat to obtain a consultation number. |