analyzeNTN
function analyzeNTN(ntn): NTNInfo | null;Defined in: tax.ts:30
Analyzes a Pakistani National Tax Number (NTN).
- Individuals use their 13-digit CNIC as their NTN (since the Finance Act 2015).
- Companies and associations of persons have a 7-digit NTN, often written
with an 8th check digit as
1234567-8.
FBR does not publish the check-digit algorithm, so the check digit is not verified; this validates the format only.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
ntn |
string |
NTN in any common format |
Returns
Section titled “Returns”NTNInfo | null
NTN details, or null if the format is invalid