---
id: "tn_mf"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["finances", "companies"]
country: ["TN"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/tn_mf"
---

# Tunisian tax identification number (Matricule Fiscal) (`tn_mf`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Matricule Fiscal, the tax number of taxpayers in Tunisia. The full form has four parts, often separated by slashes: the fiscal identifier (seven digits and a control letter other than I, O and U), the VAT code (A, P, B, D or N), the category code (M, P, C, N or E) and a three-digit number of the secondary establishment, 000 for the main one. The short form has only the fiscal identifier.

- Personal data (PII): yes
- Categories: Finances and banking (finances), Companies/business/organizations (companies)
- Countries: Tunisia (TN)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{7}[ /]?[A-HJ-NP-TV-Z](?:[ /]?[APBDN][ /]?[MPCNE][ /]?\d{3})?$
```

## Examples

- `1234567/M/A/E/001` — Example from the python-stdnum documentation
- `1496298/T/P/N/000` — Example from the python-stdnum documentation
- `1282182 W` — Short form, example from the python-stdnum documentation
- `1234567/M/A/X/000` (invalid example) — X is not a category code

## Mappings

- stdnum: `tn.mf`

## Translations

- fr: Matricule Fiscal

## Sources

- doc: <https://www.registre-entreprises.tn/>
- doc: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.tn.mf.html>

## Quality

Score 90/100. Missing: detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/tn_mf.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/TN/finances/tn_mf.yaml>
