stdnum.be.vat¶
BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number).
The enterprise number (ondernemingsnummer) is a unique identifier of companies within the Belgian administrative services. It was previously the VAT ID number. The number consists of 10 digits.
>>> compact('BE403019261')
'0403019261'
>>> compact('(0)403019261')
'0403019261'
>>> validate('BE 428759497')
'0428759497'
>>> validate('BE431150351')
Traceback (most recent call last):
...
InvalidChecksum: ...
- stdnum.be.vat.checksum(number)¶
Calculate the checksum.
- stdnum.be.vat.compact(number)¶
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
- stdnum.be.vat.is_valid(number)¶
Check if the number is a valid VAT number.
- stdnum.be.vat.validate(number)¶
Check if the number is a valid VAT number. This checks the length, formatting and check digit.