stdnum.at.vnr

VNR, SVNR, VSNR (Versicherungsnummer, Austrian social security number).

The Austian Versicherungsnummer is a personal identification number used for social security. The number is 10 digits long and consists of a 3 digit serial, a check digit and 6 digits that usually specify the person’s birth date.

More information:

>>> validate('1237 010180')
'1237010180'
>>> validate('2237 010180')
Traceback (most recent call last):
    ...
InvalidChecksum: ...
stdnum.at.vnr.calc_check_digit(number: str) str

Calculate the check digit. The fourth digit in the number is ignored.

stdnum.at.vnr.compact(number: str) str

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

stdnum.at.vnr.is_valid(number: str) bool

Check if the number is a valid VAT number.

stdnum.at.vnr.validate(number: str) str

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