Consultar las licencias de una persona en el RUNT
POST
/api/v1/consults/license
const url = 'https://notiauto.co/api/v1/consults/license';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"type_document":"C","document":"12345678","first_surname":"GOMEZ","refresh":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://notiauto.co/api/v1/consults/license \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "type_document": "C", "document": "12345678", "first_surname": "GOMEZ", "refresh": false }'Requiere el scope consults.license. El resultado se cachea 24 horas por (tipo de documento, documento, primer apellido); cached indica si se sirvió del caché.
Authorizations
Sección titulada «Authorizations»Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
type_document
required
string
Example
Cdocument
required
string
Example
12345678first_surname
required
string
Example
GOMEZrefresh
boolean
Responses
Sección titulada «Responses»Licencias de la persona. status se calcula contra la fecha de hoy.
Media typeapplication/json
object
success
boolean
cached
boolean
data
object
nombres
string
apellidos
string
documento
string
estado_conductor
string
licenses
Array<object>
object
numero
string
category
string
expedition_date
string format: date
expiration_date
string format: date
status
string
sustrato
string
total_licenses
integer
Example
{ "success": true, "cached": false, "data": { "nombres": "ANA", "apellidos": "GOMEZ", "documento": "12345678", "estado_conductor": "ACTIVO" }, "licenses": [ { "numero": "123456789", "category": "B1", "status": "VIGENTE", "sustrato": "ACTIVA" } ], "total_licenses": 2}Documento con formato inválido
El RUNT no respondió
Media typeapplication/json
Error
object
success
boolean
message
string
Example
{ "success": false, "message": "API key inválida o expirada."}