IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number).
The IČ DPH (Identifikačné číslo pre daň z pridanej hodnoty) is a 10-digit number used for VAT purposes. It has a straightforward checksum.
>>> validate('SK 202 274 96 19')
'2022749619'
>>> validate('SK 202 274 96 18') # invalid check digits
Traceback (most recent call last):
...
InvalidChecksum: ...
Calculate the checksum.
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Checks to see if the number provided is a valid VAT number. This checks the length, formatting and check digit.
Checks to see if the number provided is a valid VAT number. This checks the length, formatting and check digit.