Appearance
Validate a VAT number (ΑΦΜ) for an invoice
POST
/rest/v1/checkout/vat-number
Answers whether a VAT number exists, with THREE outcomes — never fail-open.
status is valid, invalid or unverified. unverified means we could not ask (registry timeout, error, outage, or a country no registry covers) and is NOT valid. A client should let the customer continue on unverified, and say the number could not be checked.
source is the stage that answered: checksum (the number failed the offline format or, for Greece, the ΑΦΜ check-digit test — no network call was made), vies (the European Commission), or gsis (AADE, Greece, only when the merchant configured the AADE credentials). For unverified it is the registry that could not answer, and null when none was consulted (a country outside the EU: never valid, and no call is made).
name, address, doy and profession are always present and are null unless status is valid and the registry discloses them (VIES's --- placeholder is returned as null); doy and profession come from AADE only. country and vatNumber echo what was checked after normalisation (EL accepted for Greece; spaces, dots, dashes and a leading country prefix removed) — store vatNumber, not the raw input.
Answers are cached for a few minutes per (country, number). Registry lookups are throttled per IP and per number: a 429 carries Retry-After, and a client should treat it like unverified.
Request Body
application/json
JSON "country": "GR", "vatNumber": "094014201"
{
}
Responses
The verdict
application/json
JSON "status": "string", "source": "string", "country": "GR", "vatNumber": "094014201", "name": "string", "address": "string", "doy": "string", "profession": "string"
{
}