Validate Vat
validate_vatValidate the FORMAT of a VAT registration number for the EU (+ UK/CH/NO), keyless & offline. Accepts the number with its country prefix ("DE123456789") or a national number plus country. Returns whether it matches the official country pattern. NOTE: format only — it does NOT confirm the VAT number is registered/active (use the EU VIES service for that).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | Yes | A VAT number, e.g. "DE123456789" or "GB123456789". | |
| country | No | Optional 2-letter country code (EL for Greece, GB for UK) if `vat` has no prefix. |