stdnum.gh.tin

TIN (Taxpayer Identification Number, Ghana tax number).

This number is issued by the Ghana Revenue Authority (GRA) to individuals who are not eligible for the Ghanacard PIN and other entities.

This number consists of 11 alphanumeric characters. It begins with one of the following prefixes:

P00 For Individuals. C00 For Companies limited by guarantee, shares, Unlimited (i.e organisation required to register with the RGD). G00 Government Agencies, MDAs. Q00 Foreign Missions, Employees of foreign missions. V00 Public Institutions, Trusts, Co-operatives, Foreign Shareholder (Offshore), (Entities not registered by RGD).

More information:

>>> validate('C0000803561')
'C0000803561'
>>> validate('C0000803562')
Traceback (most recent call last):
    ...
InvalidChecksum: ...
stdnum.gh.tin.calc_check_digit(number)

Calculate the check digit for the TIN.

stdnum.gh.tin.compact(number)

Convert the number to the minimal representation.

This strips the number of any valid separators and removes surrounding whitespace.

stdnum.gh.tin.is_valid(number)

Check if the number is a valid Ghana TIN.

stdnum.gh.tin.validate(number)

Check if the number is a valid Ghana TIN.