arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
489 stars 204 forks source link

Add TIN number for Tunisia #309

Closed unho closed 1 year ago

unho commented 1 year ago

Seems to be called numéro d’identification fiscale. I couldn't find any details on the structure, length nor validation. But https://juridoc.tn/register seems to suggest it has a structure like 1234567/Y/Z/T/000 where the first part could be padded with zeroes if there are less than 7 digits. http://www.finances.gov.tn/sites/default/files/2022-08/Guide%20d%27utilisateur%20d%C3%A9p%C3%B4t%20d%C3%A9claration%20CBC.pdf suggests that is called Matricule Fiscale. Maybe also called numéro d’immatriculation fiscale ? Or maybe carte d’identification fiscale ? Sometimes N° d’identité fiscal. Maybe also Immatricule fiscal n°? Maybe also Identifiant ? Maybe Code TVA ?

Guessing about format:

All of the above guessing regarding the format is kinda confirmed by these results from:

Online search:

Examples: