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 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: ...
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)

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

stdnum.nl.btw.validate(number)

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

Previous topic

stdnum.nl.bsn

Next topic

stdnum.nl.onderwijsnummer