stdnum.be.vat

BTW, TVA, NWSt (Belgian VAT number).

>>> compact('BE403019261')
'0403019261'
>>> compact('(0)403019261')
'0403019261'
>>> is_valid('BE 428759497')
True
>>> is_valid('BE431150351')
False
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)

Checks to see if the number provided is a valid VAT number. This checks the length, formatting and check digit.

Previous topic

stdnum.at.uid

Next topic

stdnum.bg.egn