Validate an EU or UK VAT number and retrieve company details
GET /v1/validate
Validate a VAT number against VIES (EU) or HMRC (UK) and return the validity status, company details, and an optional consultation number.
| Parameter | Type | Required | Description |
|---|---|---|---|
vat_number | string | Yes | The VAT number to validate (e.g., NL123456789B01, GB123456789) |
requester_vat_number | string | No | Your own VAT number, to receive a consultation number from VIES |
vtly_test_ key, responses include meta.mode: "test" and use magic VAT numbers for predictable results:
| Header | Description |
|---|---|
X-Request-Id | Unique request identifier (echoes client-provided value if sent) |
X-RateLimit-Limit | Total requests allowed this period |
X-RateLimit-Remaining | Requests remaining this period |
X-RateLimit-Reset | When the quota resets (ISO 8601) |
| Error Code | Status | When |
|---|---|---|
missing_parameter | 400 | vat_number query parameter is missing |
invalid_vat_format | 422 | VAT number format unrecognized or unsupported country |
unauthorized | 401 | Invalid or missing API key |
rate_limit_exceeded | 429 | Monthly quota exhausted |
upstream_error | 503 | HMRC returned an error |
upstream_unavailable | 503 | VIES or HMRC unreachable |