Peru DNI
Overview
The Peru National ID is the official identification number that is mandatory for all Peruvians, whether living in Peru or abroad. Administered by RENIEC, this API returns attributes associated with that number.
- ID:
peru-dni-lookup - Type: eID (database)
- Verification Type: Enrichment
- Regions: Latin America
- Countries: PE
- Adoption: 27,300,000
- URL: https://www.gob.pe/reniec
Integration with Trinsic
Peru DNI verification is integrated into Trinsic's identity acceptance network allowing businesses to verify users against the government system of record in Peru.
- Permission required: Yes, this method requires registration before you can activate it for your users. Please contact Trinsic to begin this process.
- Cost: Contact the Trinsic team.
User Flow
The user provides their National Identity Document (DNI) number. The system retrieves and returns full identity information from the government database.
Direct API Requirements
Direct API is not a requirement.You can integrate with this provider using the Hosted UI instead, with no additional integration requirements on your end.
What your integration must support in order to use this provider with the Direct Provider Sessions API.
- Supports Direct Provider Sessions: ✅
- Launch Method:
None— No user-facing action is required to start the flow. - Collection Method:
PollResult— Results arrive asynchronously; poll with theresultsAccessKeyreturned at session creation. - Requires Input: This provider requires input before verification can proceed.
- Trinsic-Hosted UI: A Trinsic-Hosted Fallback UI exists for this provider, which may be invoked to cover gaps in your integration's capabilities.
Outputs
Normalized AttributesThese attributes form part of our normalized model, a standardized set used across providers. Trinsic normalizes this for you and lets you know when a property is available for each provider.
| Field | Availability | Notes |
|---|---|---|
person.givenName | Always | - |
person.familyName | Always | - |
person.fullName | Always | - |
person.dateOfBirth | Sometimes | When available |
person.sex | Sometimes | When available |
person.address.subdivision | Sometimes | When available |
person.address.country | Sometimes | When available |
document.type | Always | - |
document.number | Always | - |
document.issueDate | Sometimes | When available |
document.expirationDate | Sometimes | When available |
document.issuingCountry | Always | - |
document.issuingAuthority | Always | - |
attachments.documentPortrait | Sometimes | When available |
| Field | Optional | Description | Example Values |
|---|---|---|---|
address.region | Yes | Region in Peru (also known as department). This is the first level subdivision in the country. Format: - All uppercase. | CUSCO |
address.province | Yes | Province within the region. This is the second level subdivision in the country. Format: - All uppercase. | URUBAMBA |
address.district | Yes | District within the province. This is the third level subdivision in the country. Format: - All uppercase. | MACHUPICCHU |
arrayName | Yes | All names that appear on DNI, as an array of strings. Format: - All uppercase - Ordered by paternal family name, then maternal family name, then given names. | ["QUISPE", "MAMANI", "JUAN", "CARLOS"] |
civilStatus | Yes | Marital status as it appears on the DNI. This field is not always available. Valid values: - "Single" - "Married" - "Divorced" - "Widowed" | Single |
dateOfBirth | Yes | Date of birth as it appears on the DNI. This field is not always available. | 1999-01-14 |
documentNumber | Yes | The individual's National Identity Document number (Documento Nacional de Identidad or DNI). Format: - 8 digits - Does NOT include verification digit. On the DNI card, a ninth digit appears next to the first eight. It is 0-9 or A-K. This is NOT included in the DNI number when returned from Peru's database. - Does NOT include dots or hyphens | 19050215 |
documentType | Yes | Should always be "DNI". | DNI |
expeditionDate | Yes | Date that the DNI was issued. This field is not always available. Format: - yyyy-MM-dd | 2025-01-14 |
expirationDate | Yes | Date that the DNI will expire. DNI expires every 8 years, unless the citizen is >= 60 years old, in which case it never expires. This field is not always available. Format: - yyyy-MM-dd | 2033-01-14 |
firstName | Yes | Given names as they appear on DNI. Format: - All uppercase - Space-separated - Will include all given names | JUAN CARLOS |
fullName | Yes | All names as they appear on DNI. Format: - All uppercase - Space-separated - Will include all names, given and family - Ordered by given names first, then paternal family name, then maternal family name | JUAN CARLOS QUISPE MAMANI |
lastName | Yes | Family names as they appear on DNI. Format: - All uppercase - Will include all family names - Ordered by paternal family name first, then maternal family name | QUISPE MAMANI |
maternalLastName | Yes | Maternal last name as it appears on DNI. Format: - All uppercase | MAMANI |
paternalLastName | Yes | Paternal last name as it appears on DNI. Format: - All uppercase | QUISPE |
sex | Yes | Sex as it appears on DNI. This field is not always available. Values: - "Male" - "Female" | Male |
ubigeoReniec | Yes | In Peru, geographical locations have an official geographical code called UBIGEO, from the spanish "UBIcación GEOgráfica" (Geographic Location). This is an administrative geocode, is different from a postal code (which Peru also has) and is used to specifically delineate the administrative region, province and district hierarchy. There are two coding systems for UBIGEO: one from INEI (National Institute of Statistics and Informatics) and another from RENIEC (National Registry of Identification and Civil Status). The two coding systems are similar but are not 100% the same (some numbers will map to different geographic locations). This field follows the coding system from RENIEC. This field is not always available. Format: - Always 6 digits - First two digits represent region - Middle two are province - Last two are district Given the example 081304, that would correspond to: - 08 - Cusco Region - 0813 - Urubamba Province - 081304 - Machupicchu District | 081304 |
verificationDigit | Yes | The final (ninth) digit of the DNI, which serves as a checksum over the first eight digits. This field is not always available. Format: - Single character - Either 0-9 or A-K Read more here: https://elcomercio.pe/mag/respuestas/cual-es-el-digito-verificador-de-mi-dni-documento-nacional-de-identidad-reniec-peru-nnda-nnlt-noticia/ | 7 |
Updated 20 days ago
