Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Validate European Union VAT numbers against the official VIES (VAT Information Exchange System) database and retrieve the registered business name and address. Use this API to automate B2B tax compliance checks and keep your invoicing data accurate.Use cases
- Verify customer VAT numbers during B2B checkout
- Auto-fill company name and address from a VAT number
- Gate zero-rate tax treatment on confirmed valid VAT IDs
- Detect fraudulent or expired VAT numbers
Details
Covers all EU member states. Thevat field should include the two-letter country prefix (e.g. DE123456789, FR12345678901). Validation queries the live VIES service; occasional timeouts from the VIES system are propagated as errors.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
vat | string | Yes | VAT number, with or without the two-letter country prefix (e.g. DE123456789) |
country | string | No | Two-letter EU country code (e.g. DE). Required only when vat does not include the prefix |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
country_code | string | Two-letter EU country code |
vat_number | string | VAT number with the country prefix stripped |
valid | boolean | Whether the VAT number is registered and active |
name | string|null | Registered business name (null if not disclosed by VIES) |
address | string|null | Registered business address (null if not disclosed by VIES) |
request_date | string|null | Date the VIES lookup was performed |

