stdnum.ee.kmkr

KMKR (Käibemaksukohuslase, Estonian VAT number).

>>> compact('EE 100 931 558')
'100931558'
>>> is_valid('100594102')
True
>>> is_valid('100594103')  # incorrect check digit
False
stdnum.ee.kmkr.checksum(number)

Calculate the checksum.

stdnum.ee.kmkr.compact(number)

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

stdnum.ee.kmkr.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.ean

Next topic

stdnum.es.cif