Documentation V3
Search…
⌃K

Peru

Document Type
Description
Length
Data Type
Examples
DNI
DNI = National Identity Card
8
Numeric
12487201 35.201.784
CE
CE: Foreign Resident Card
up to 12
Alphanumeric
001766062 001077238
RUC
Registro Único de Contribuyentes: Tax ID
11
Numeric
20494099153
PASS
Pasaporte = Passport
up to 12
Alphanumeric
PER116880041

Example: How to validate IDs through the api?

Remember that you can validate documents through the LP api. See Document Validation service.
Below you can find some examples to validate through our api. You can also test with the examples above. Please, note the structure of each ID type (lenght, dots, hyphen, lowercase/uppercase).
Example: DNI
Example: CE
Example: RUC
Exampe: PASS
Valid ID Response
{
"document": {
"id" :"30.784.589",
"type" :"DNI"
},
"country" : "PER"
}
To validate DNI type you can add or omit the dots.
{
"document": {
"id" :"001043328",
"type" :"CE"
},
"country" : "PER"
}
The CE validation does not admit dots.
{
"document": {
"id" :"20538995364",
"type" :"RUC"
},
"country" : "PER"
}
The ID type RUC does not admit dots or hypens.
{
"document": {
"id" :"PeR116880057",
"type" :"PASS"
},
"country" : "PER"
}
{
"code": "200",
"description": "Valid id and type document"
}
Validate IDs through the LP api:

Check the Country ISOCode 3:

Last modified 9mo ago