Skip to main content

Obtener credencial digital

Este servicio es para obtener la credencial digital.


Request

Consume the GET endpoint

{{baseUrl}}people/digital-credential

Authorization token

Bearer Token : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZGVudGlmaWVyIjoiMTM3NjMwNTk4OSIsInVpZCI6IjY5NDA5ZDJjLWI1OGMtNGQ1MC1iOTE0LTk1ZDAyNDU0NjkyNCIsImlhdCI6MTY4MjU0NzIzNiwiZXhwIjoxNjgyNTUwODM2fQ.UxYsMNvhRnzWTGprhS01aAAWuVSnk60B9WPHIb3Dp40

Responses

Si todo es correcto, recibirá una respuesta exitosa como esta:

Success

{
"data": {
"digital": {
"urlQR": "https://credencial-digital-dev-files.s3.amazonaws.com/qrs/131016032281",
"urlSignature": "https://credencial-digital-dev-files.s3.amazonaws.com/images/Firma_claudia.png",
"urlPhotography": "https://credencial-digital-dev-files.s3.amazonaws.com/images/imagen_claudia.png"
},
"personal": {
"birthday": "15/02/1968",
"firstLastname": "Coime",
"gender": "F",
"documentNumberExpeditionDate": "20/02/1980",
"documentType": "13",
"niup": "1045365248",
"documentNumber": "1016032281",
"bloodType": "B+",
"birthPlace": "Bogotá",
"firstName": "Keila",
"nationality": "COL",
"QRCredential": "https://credencial-digital-dev-files.s3.amazonaws.com/qrs/137630598",
"secondLastname": "Balarezo",
"category": "Sales manager",
"secondName": ""
},
"security": {
"credentialDateExpiration": "30/05/2024",
"credentialLastUpdated": "02/05/2023 09:35:47",
"credentialState": "ACTIVE"
}
},
"status": 200
}

Errors

Si el usuario no es encontrado, recibirá una respuesta fallida como esta:

{
"error": {
"message": "Usuario no encontrado."
},
"status": 400
}

Si el token no es válido, recibirá una respuesta fallida como esta:

{
"error": {
"message": "Unexpected end of JSON input"
},
"status": 500
}
{
"status": 500,
"data": "message"
}

Http Codes

StatusDescription
200OK
400Bad Request
401Unauthorized
500Internal Server Error