{
  "id": "pt_nif",
  "kind": "datatype",
  "status": "draft",
  "name": "Portuguese tax identification number (NIF)",
  "doc": "Número de identificação fiscal, the 9-digit tax number of individuals and legal persons in Portugal (for legal persons also called NIPC). The first digit is not 0 and the last is a check digit. With the PT prefix it is the VAT number.",
  "parent": "vatin",
  "is_pii": true,
  "categories": [
    "finances",
    "pii"
  ],
  "country": [
    "PT"
  ],
  "langs": [
    "pt"
  ],
  "classification": "identifier",
  "regexp": "^(?:PT[ -]?)?[1-9]\\d{2} ?\\d{3} ?\\d{3}$",
  "examples": [
    {
      "value": "301211760",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "290048842",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "3012117607",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "orgid": "PT-NIPPC",
    "purview": [
      "Portugal tax identification number",
      "EU Tax Identification Number (TIN)",
      "EU Tax identification number"
    ],
    "schema_org": [
      "taxID",
      "vatID"
    ],
    "stdnum": "pt.nif"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://pt.wikipedia.org/wiki/N%C3%BAmero_de_identifica%C3%A7%C3%A3o_fiscal"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.pt.nif.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_pt_nif.html"
    }
  ],
  "translations": {
    "pt": {
      "name": "Número de identificação fiscal (NIF)"
    }
  },
  "detected_by": {
    "tools": [
      "awsglue",
      "azureailanguage",
      "dataprep",
      "microsoftpurview",
      "pythonstdnum",
      "snowflake"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/PT/finances/pt_nif.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/PT/finances/pt_nif.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/PT/finances/pt_nif.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/pt_nif",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/pt_nif.json"
  }
}