https://api.consultasperu.com/api/v1/query
{
"token": "tu_token_aqui",
"type_document":"dni",
"document_number": "00000000"
}
{
"success": true,
"message": "Successful response",
"data": {
"number": "00000000",
"full_name": "Nombre completo",
"name": "Solo el nombre",
"surname": "Solo apellidos",
"verification_code": 1,
"date_of_birth": "2005-03-31",
"department": "Departamento",
"province": "Provincia",
"district": "Distrito",
"address": "Dirección",
"ubigeo": "000000"
}
}
{
"success": false,
"message": "No data found",
"data": null
}
{
"success": false,
"message": "Invalid Token",
"data": null
}