# analyzeNTN

Source: https://pakdatakit.dev/api/typescript/tax/functions/analyzentn/

```ts
function analyzeNTN(ntn): NTNInfo | null;
```

Defined in: [tax.ts:30](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/tax.ts#L30)

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

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `ntn` | `string` | NTN in any common format |

## Returns

[`NTNInfo`](https://pakdatakit.dev/api/typescript/tax/interfaces/ntninfo/) \| `null`

NTN details, or `null` if the format is invalid
