About this endpoint
What it does
Validates an EU VAT number by checking its member-state-specific format and, unless disabled, performing a live VIES lookup. The request body must include vatNumber; you can optionally provide country when the number has no prefix and offlineOnly to skip the live lookup.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| country | String | No | Two-letter country code to use when vatNumber has no prefix. Greece uses EL. |
| vatNumber | String | Yes | The EU VAT number, with or without the two-letter prefix, and with spaces or dots allowed. Minimum length 2, maximum length 40. |
| offlineOnly | Boolean | No | When true, checks only the VAT number layout and skips the live VIES lookup. |
Response
Returns a JSON object with a required result object field. The result object contains vatNumber, country, formatValid, valid, and checked as required fields, plus optional name, note, reason, address, countryName, and requestDate.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| result | Object | Yes | Container for the VAT validation result. |
| result.name | String | No | Name returned by the lookup, if available. |
| result.note | String | No | Additional note returned by the lookup, if available. |
| result.valid | Boolean | No | The validation result, or null when not available. |
| result.reason | String | No | Reason returned when the VAT number is not valid or could not be checked. |
| result.address | String | No | Address returned by the lookup, if available. |
| result.checked | String | Yes | Indicates what was checked. |
| result.country | String | Yes | Country code associated with the VAT number. |
| result.vatNumber | String | Yes | VAT number returned by the validation. |
| result.countryName | String | No | Country name associated with the VAT number, if available. |
| result.formatValid | Boolean | Yes | true when the VAT number layout is valid, false otherwise. |
| result.requestDate | String | No | Date of the lookup request, if returned. |



