stdnum.at.tin¶
Abgabenkontonummer (Austrian tax identification number).
The Austrian tax identification number (Abgabenkontonummer) consists of 2 digits for the issuing tax office (Finanzamtsnummer) and 7 digits for the subject and a check digit (Steuernummer).
More information:
- https://de.wikipedia.org/wiki/Abgabenkontonummer
- https://service.bmf.gv.at/Service/Anwend/Behoerden/show_mast.asp
>>> validate('59-119/9013')
'591199013'
>>> validate('59-119/9013', office='St. Veit Wolfsberg')
'591199013'
>>> import json
>>> print(json.dumps(info('59-119/9013'), indent=2, sort_keys=True))
{
"office": "St. Veit Wolfsberg",
"region": "K\u00e4rnten"
}
>>> format('591199013')
'59-119/9013'
-
stdnum.at.tin.
calc_check_digit
(number)¶ Calculate the check digit.
-
stdnum.at.tin.
compact
(number)¶ Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
-
stdnum.at.tin.
format
(number)¶ Reformat the number to the standard presentation format.
-
stdnum.at.tin.
info
(number)¶ Return a dictionary of data about the supplied number. This typically returns the the tax office and region.
-
stdnum.at.tin.
is_valid
(number, office=None)¶ Check if the number is a valid tax identification number. This checks the length, formatting and check digit.
-
stdnum.at.tin.
validate
(number, office=None)¶ Check if the number is a valid tax identification number. This checks the length and formatting. The tax office can be supplied to check that the number was issued in the specified tax office.