---
id: "pe_cui"
kind: "datatype"
status: "draft"
is_pii: true
categories: ["pii", "persons"]
country: ["PE"]
langs: ["es"]
quality: 100
url: "http://registry.apicrafter.io/datatype/pe_cui"
---

# Peruvian identity number (CUI) (`pe_cui`)

> **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.

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.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: Peru (PE)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{8}-?[0-9A-K]?$
```

## Examples

- `962709112` — Synthetic number with a valid check digit
- `153959922` — Synthetic number with a valid check digit
- `9627091127` (invalid example) — One character too many

## Mappings

- dpv: `pd:OfficialID`
- stdnum: `pe.cui`

## Supported by tools

- `dataprep`
- `nightfall`
- `pythonstdnum`

## Translations

- es: Cédula Única de Identidad (CUI)

## Sources

- doc: <https://www.gob.pe/235-documento-nacional-de-identidad-dni>
- wikipedia: <https://es.wikipedia.org/wiki/Documento_Nacional_de_Identidad_(Per%C3%BA)>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.pe.cui.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_pe_cui.html>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/pe_cui.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/PE/persons/pe_cui.yaml>
