VAT_VALID¶
Info
New in Atfinity 17.
Description¶
VAT_VALID checks whether a string is a valid VATIN (Value Added Tax identification number).
The number must include its country prefix (e.g.
DE, GB, CHE); the correct country-specific format and checksum are selected from that prefix and verified.
It does not verify that the VAT number is actually registered.
Switzerland is supported, but a Swiss VAT number must include its language suffix, MWST, TVA, IVA, or TPV, as
it appears on official documents.
Syntax¶
Returns: true if the VAT number is structurally valid, false if not, unknown if the argument is not a string.
Example¶
Returns true, valid German VAT number.
Returns true, valid French VAT number (spaces are tolerated).
Returns true, valid United Kingdom VAT number.
Returns true, valid Swiss VAT number (note the required MWST suffix).
Returns false, the checksum does not match.