Peru
Below you will see the fields designated for the country Perú.
Document Type | Description | Length | Data Type | Mandatory for methods | 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 |
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 1mo ago