curl --request GET \
--url https://api.factiliza.com/v1/dni/info/{dni} \
--header 'Authorization: Bearer <token>'
{
"status": 200,
"success": true,
"message": "Exito",
"data": {
"numero": "27427864",
"nombres": "JOSE PEDRO",
"apellido_paterno": "CASTILLO",
"apellido_materno": "TERRONES",
"nombre_completo": "CASTILLO TERRONES, JOSE PEDRO",
"departamento": "CAJAMARCA",
"provincia": "CHOTA",
"distrito": "TACABAMBA",
"direccion": "CASERIO PUÑA",
"direccion_completa": "CASERIO PUÑA, CAJAMARCA - CHOTA - TACABAMBA",
"ubigeo_reniec": "060615",
"ubigeo_sunat": "060417",
"ubigeo": [
"06",
"0604",
"060417"
],
"fecha_nacimiento": "",
"sexo": ""
}
}
Retorna datos segun el DNI
curl --request GET \
--url https://api.factiliza.com/v1/dni/info/{dni} \
--header 'Authorization: Bearer <token>'
{
"status": 200,
"success": true,
"message": "Exito",
"data": {
"numero": "27427864",
"nombres": "JOSE PEDRO",
"apellido_paterno": "CASTILLO",
"apellido_materno": "TERRONES",
"nombre_completo": "CASTILLO TERRONES, JOSE PEDRO",
"departamento": "CAJAMARCA",
"provincia": "CHOTA",
"distrito": "TACABAMBA",
"direccion": "CASERIO PUÑA",
"direccion_completa": "CASERIO PUÑA, CAJAMARCA - CHOTA - TACABAMBA",
"ubigeo_reniec": "060615",
"ubigeo_sunat": "060417",
"ubigeo": [
"06",
"0604",
"060417"
],
"fecha_nacimiento": "",
"sexo": ""
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
El dni a consultar
dni response
The response is of type object
.