Skip to main content
POST
/
licencia
cURL
curl --request POST \
  --url https://api.json.pe/api/licencia \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dni": "27427864"
}
'
{
  "message": "exito!",
  "data": {
    "numero_documento": "10400310",
    "nombre_completo": "CARLOS EDGARDO DELGADO RIVERA",
    "licencia": {
      "numero": "Q10400310",
      "categoria": "A I",
      "fecha_expedicion": "",
      "fecha_vencimiento": "06/03/2027",
      "estado": "VIGENTE",
      "restricciones": "SIN RESTRICCIONES"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
dni
string
required

El DNI a consultar

Example:

"27427864"

Response

licencia response

success
boolean

El estado de la respuesta true o false

message
string

Mensaje de la respuesta

data
object

Datos detallados de la respuesta