Search Audit by audit_id
Endpoint que busca una auditoría de aplicación. Se necesita el valor de auditid
. En caso de encontrarlo, devuelve la auditoría encontrada, en caso contrario, entrega un mensaje indicando que no se encontró.
Endpoint
Headers
Key | Value | Description |
---|---|---|
Content-Type | application/json | |
Authorization | Bearer {{access_token}} | access_token obtained in Atenea |
Method: GET
URL: https://api.trust.lat/audit/api/v1/audit/:audit_id
URL Variables
Key | Value | Description |
---|---|---|
audit_id | valid audit_id | Identificador de la auditoría a buscar |
caution
Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea
Code Examples
- Curl
- JavaScript
- Python
curl --location --request GET 'https://api.trust.lat/audit/api/v1/audit/999-999-99-9999-999-99' \
--header 'Authorization: Bearer i5Re59lV...'
import requests
url = "https://api.trust.lat/audit/api/v1/audit/999-999-99-9999-999-99"
payload={}
headers = {
'Authorization': 'Bearer i5Re59lV...'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.trust.lat/audit/api/v1/audit/999-999-99-9999-999-99',
headers: {
'Authorization': 'Bearer i5Re59lV...'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Responses
HTTP CODE: 200 FOUND
{
"status": true,
"message": "Found",
"audit": {
"application": "App Digital",
"audit_slug": null,
"auditid": "999-999-99-9999-999-99",
"created_at": "2020-07-26T00:44:15.132Z",
"extra_data": {
"identity": {}
},
"location": [
-70.57454152380072,
-33.37146417141432
],
"platform": "Android",
"source": {
"app_name": "App Digital",
"bundle_id": "com.app_digital",
"carrier": "ENTEL PCS",
"connection_name": "VTR-1167422",
"connection_type": "WIFI",
"device_name": "H3123",
"emulator": false,
"flavor_id": "com.app_digital",
"imsi": "730014065201240",
"latGeo": "-33.37146417141432",
"lonGeo": "-70.57454152380072",
"os": "Android",
"os_version": "28",
"sdk_version": {
"sdk_audit": "1.0.23",
"sdk_diagnostic": "",
"sdk_identify": "2.0.11",
"sdk_lock": "1.0.4",
"sdk_signal": ""
},
"trust_id": "999-9999-9999-999-9999-999-9",
"version_app": "1.0.62",
"version_code": "62",
"app_id": "2"
},
"transaction": {
"method": "onDetailSuccess",
"operation": "ID_SEARCH_DOCUMENT_RESULT",
"result": "About to sign",
"timestamp": 1595723848,
"type": "audit_custom"
},
"type_audit": "trust identify",
"updated_at": "2020-09-16T05:38:40.665Z"
}
}
HTTP CODE: 404 Not found
{
"status": false,
"message": "Not found"
}