This is a mock API built to measure demand for a VAT validation service. It checks only (1) whether a VAT number matches the official national format and (2) where a public check-digit algorithm exists, whether the check digit or letter is arithmetically consistent with the rest of the number.
It does not check VAT registration. A number that passes
here may or may not be registered to any business; a number's
registration can only be confirmed through the EU VIES system or a
national register, which this mock does not query. Accordingly, every
response reports "registration_status": "not_checked" and
"check_scope": "format_and_checksum_only", and no response
contains a standalone field claiming that a registration is in force.
POST /validate with a JSON body:
{ "country": "DE", "vat": "123456789" }
Supported countries: DE, FR, IT, ES, NL, BE, AT, PL, IE, SE, DK.
Example response:
{
"country": "DE",
"normalized": "123456788",
"format_valid": true,
"checksum_valid": true,
"registration_status": "not_checked",
"check_scope": "format_and_checksum_only"
}
checksum_valid is null when no public check-digit
rule applies to the number (for example DK, where only the format is
checked). normalized is the number without the country
prefix, with spaces, dots and hyphens removed (AT keeps its leading "U").