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.