{
  "id": "tn_mf",
  "kind": "datatype",
  "status": "draft",
  "name": "Tunisian tax identification number (Matricule Fiscal)",
  "doc": "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.",
  "is_pii": true,
  "categories": [
    "finances",
    "companies"
  ],
  "country": [
    "TN"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^\\d{7}[ /]?[A-HJ-NP-TV-Z](?:[ /]?[APBDN][ /]?[MPCNE][ /]?\\d{3})?$",
  "examples": [
    {
      "value": "1234567/M/A/E/001",
      "description": "Example from the python-stdnum documentation",
      "valid": true
    },
    {
      "value": "1496298/T/P/N/000",
      "description": "Example from the python-stdnum documentation",
      "valid": true
    },
    {
      "value": "1282182 W",
      "description": "Short form, example from the python-stdnum documentation",
      "valid": true
    },
    {
      "value": "1234567/M/A/X/000",
      "description": "X is not a category code",
      "valid": false
    }
  ],
  "mappings": {
    "stdnum": "tn.mf"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.registre-entreprises.tn/"
    },
    {
      "type": "doc",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.tn.mf.html"
    }
  ],
  "translations": {
    "fr": {
      "name": "Matricule Fiscal"
    }
  },
  "quality": {
    "score": 90,
    "missing": [
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/TN/finances/tn_mf.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/TN/finances/tn_mf.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/TN/finances/tn_mf.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/tn_mf",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/tn_mf.json"
  }
}