stdnum.is_.vsk

VSK number (Virðisaukaskattsnúmer, Icelandic VAT number).

The Icelandic VAT number is five or six digits.

>>> validate('IS 00621')
'00621'
>>> validate('IS 0062199')
Traceback (most recent call last):
    ...
InvalidLength: ...
Traceback (most recent call last):
    ...
InvalidLength: ...
stdnum.is_.vsk.compact(number)

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

stdnum.is_.vsk.is_valid(number)

Checks to see if the number provided is a valid VAT number. This checks the length and formatting.

stdnum.is_.vsk.validate(number)

Checks to see if the number provided is a valid VAT number. This checks the length and formatting.

Previous topic

stdnum.is_.kennitala

Next topic

stdnum.isan