stdnum.nl.btw

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 the letter B and two digits that identify the unit within the organisation (usually 01).

More information:

>>> validate('004495445B01')
'004495445B01'
>>> validate('NL4495445B01')
'004495445B01'
>>> validate('123456789B90')
Traceback (most recent call last):
    ...
InvalidChecksum: ...
stdnum.nl.btw.compact(number)

Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

stdnum.nl.btw.is_valid(number)

Check if the number is a valid BTW number.

stdnum.nl.btw.validate(number)

Check if the number is a valid BTW number. This checks the length, formatting and check digit.