stdnum.dk.cvr

CVR (Momsregistreringsnummer, Danish VAT number).

The CVR (Momsregistreringsnummer, VAT) is an 8 digit number with a straightforward check mechanism.

>>> compact('DK 13585628')
'13585628'
>>> is_valid('DK 13585628')
True
>>> is_valid('DK 13585627')
False
stdnum.dk.cvr.checksum(number)

Calculate the checksum.

stdnum.dk.cvr.compact(number)

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

stdnum.dk.cvr.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.dk.cpr

Next topic

stdnum.ean