issues
search
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
498
stars
206
forks
source link
Add support for South Africa TIN
#108
Closed
unho
closed
5 years ago
unho
commented
5 years ago
https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/South-Africa-TIN.pdf
Algorithm explained in Appendix D in
https://c.ymcdn.com/sites/sait.site-ym.com/resource/resmgr/2014_SARS/Draft_SARS_External_BRS_2014.pdf
Algorithm also explained in Appendix J in
https://old.juta.co.za/law/media/filestore/2012/11/1_Updated_BRS_on_Tax_Dividends.pdf
According to description in page 41 of
https://c.ymcdn.com/sites/sait.site-ym.com/resource/resmgr/2014_SARS/Draft_SARS_External_BRS_2014.pdf
the "Tax Reference Number" has a length of 10 and is fully composed of digits, and can can only start with 0, 1, 2, 3 or 9.