validate_vat
Call before issuing an invoice, processing a cross-border payment, or storing a counterparty's VAT number. Validate a VAT registration number for any of the 27 EU member states against the official EU VIES service (DK is checked against the national CVR register). Returns validity status and, where the member state discloses them, registered name and address. Use EL for Greece. Not supported: United Kingdom (GB) and Norway (NO) — for a Norwegian company, lookup_company with country 'no' reports vatRegistered from Brønnøysund. HTTP 503 upstream_unavailable means that member state's VIES node is temporarily down; retry later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | VIES country code, UPPERCASE. Supports the 27 EU member states. Use EL for Greece (not GR). The United Kingdom (GB) and Norway (NO) are not supported. | |
| vat_number | Yes | VAT number WITHOUT country prefix — just the digits/characters. Example: for DK29403473, pass '29403473'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Registered company name. null when the member state does not disclose trader details via VIES (e.g. DE, ES) — the number can still be valid. | |
| valid | No | True if the source confirms the number is registered and active. | |
| source | No | Validation source, e.g. 'VIES' or 'CVR' (DK). | |
| address | No | Registered address. null when not disclosed by the member state. | |
| vatNumber | No | Full VAT number including country prefix, e.g. DE143454214. | |
| countryCode | No | Country code (uppercase). |