BTW-nummer (Omzetbelastingnummer, the Dutch VAT number).
The BTW-nummer is the Dutch number for VAT. It consists of a RSIN or BSN followed by a B and two digits that identify the unit within the organisation (usually 01).
>>> validate('004495445B01')
'004495445B01'
>>> validate('NL4495445B01')
'004495445B01'
>>> validate('123456789B90')
Traceback (most recent call last):
...
InvalidChecksum: ...
Traceback (most recent call last):
...
InvalidChecksum: ...
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Checks to see if the number provided is a valid BTW number. This checks the length, formatting and check digit.
Checks to see if the number provided is a valid BTW number. This checks the length, formatting and check digit.