stdnum.pl.nip

NIP (Numer Identyfikacji Podatkowej, Polish VAT number).

The NIP (Numer Identyfikacji Podatkowej) number consists of 10 digit with a straightforward weighted checksum.

>>> compact('PL 8567346215')
'8567346215'
>>> is_valid('PL 8567346215')
True
>>> is_valid('PL 8567346216')  # invalid check digits
False
>>> format('PL 8567346215')
'856-734-62-15'
stdnum.pl.nip.checksum(number)

Calculate the checksum.

stdnum.pl.nip.compact(number)

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

stdnum.pl.nip.format(number)

Reformat the passed number to the standard format.

stdnum.pl.nip.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.nl.onderwijsnummer

Next topic

stdnum.pt.nif