Validate a VAT number against VIES (EU) or HMRC (UK) and return the validity status, company details, and an optional consultation number.
Input is normalized automatically - spaces, dots, and casing are handled for you ("nl 123.456.789 b01" -> "NL123456789B01").
Results are cached for 24 hours. Cached responses include meta.cached: true and meta.cached_at. Pass cache=false to bypass the cache and force a fresh lookup from the upstream service.
The VAT number to validate (e.g. NL123456789B01, GB123456789). Will be normalized to uppercase with spaces and dots removed.
1"NL123456789B01"
Your own VAT number, to receive a VIES consultation number. Only applicable for EU VAT numbers (not UK/HMRC).
"DE987654321"
Set to false to bypass the 24-hour cache and force a fresh lookup from the upstream service. The fresh result is still cached for subsequent requests. Defaults to true.
true, false "true"