validate_vat
Call before issuing an invoice, processing a cross-border payment, or storing a counterparty's VAT number. Validate a VAT registration number against the official EU VIES service (or HMRC for GB). Returns validity status, registered name, and registered address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | ISO 3166-1 alpha-2 country code, UPPERCASE. Use GB for the United Kingdom (HMRC), not UK. Supports all EU member states plus GB and NO. | |
| 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, if disclosed by the source. | |
| valid | No | True if VIES / HMRC confirms the number is registered and active. | |
| source | No | Either 'VIES' or 'HMRC'. | |
| address | No | Registered address, if disclosed. | |
| country | No | Country code echoed back (uppercase). | |
| checked_at | No | ISO-8601 timestamp of the validation. | |
| vat_number | No | Submitted VAT number (without country prefix). |