{
  "id": "pe_cui",
  "kind": "datatype",
  "status": "draft",
  "name": "Peruvian identity number (CUI)",
  "doc": "Cédula Única de Identidad, the 8-digit personal number on the Peruvian national identity document (DNI). It can be followed by a check character, a digit or a letter.",
  "is_pii": true,
  "categories": [
    "pii",
    "persons"
  ],
  "country": [
    "PE"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^\\d{8}-?[0-9A-K]?$",
  "examples": [
    {
      "value": "962709112",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "153959922",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "9627091127",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "dpv": "pd:OfficialID",
    "stdnum": "pe.cui"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.gob.pe/235-documento-nacional-de-identidad-dni"
    },
    {
      "type": "wikipedia",
      "url": "https://es.wikipedia.org/wiki/Documento_Nacional_de_Identidad_(Per%C3%BA)"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.pe.cui.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_pe_cui.html"
    }
  ],
  "translations": {
    "es": {
      "name": "Cédula Única de Identidad (CUI)"
    }
  },
  "detected_by": {
    "tools": [
      "dataprep",
      "nightfall",
      "pythonstdnum"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/PE/persons/pe_cui.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/PE/persons/pe_cui.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/PE/persons/pe_cui.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/pe_cui",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/pe_cui.json"
  }
}