Pular para o conteúdo principal

Certificados

Certificados [GET]

BASE URL
https://api-certificates-hml.carbonext.com.br

Essa requisição irá gerar todos os seus certificados.

Exemplo de requisição

var axios = require('axios');
var data = JSON.stringify({
});

var config = {
method: 'post',
url: 'https://api-certificates-hml.carbonext.com.br',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Exemplo de resposta


{
"items":
[
{
"id": "76d6c51c-594f-4e4a-b0e0-04cf740d6efd",
"email": "emp1@email.com",
"customerName": "Danilo ",
"type": 0,
"reference": "2021-08-31T00:00:00",
"footprint": 3.2576876850833334,
"serialNumber": "TEST_CBX6271F05DD4A59F2E/B4E3DE",
"fileUploadKey": "certificates/cbx/DEV-CBX20220930_212.pdf",
"status": 1,
"created": "2022-01-07T23:28:57.644955",
"origin": 999,
"notifyCustomer": false,
"originSystemId": "212_sub_K8pA8d1vc5qpic_2021_08"
}
]
}

Certificates [GET]

BASE URL
 https://api-certificates-hml.carbonext.com.br/v1/certificates/:origin-system-id

Essa requisição irá gerar um certificado pelo ID externo (Exemplo de ID acima).

Exemplo de requisição

var axios = require('axios');
var data = JSON.stringify({
});

var config = {
method: 'post',
url: 'https://api-certificates-hml.carbonext.com.br/v1/certificates/:origin-system-id',
headers: {
'Content-Type': 'application/json'
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});

Exemplo de resposta

{
"id": "e78f1adb-df5a-4d8a-90ca-45aab6512c6d",
"email": "example@email.com",
"customerName": "Example ",
"type": 0,
"reference": "2021-12-14T03:00:00",
"footprint": 0.0317843103073364,
"serialNumber": "TEST_CBX5F42E2759FA5BD36/B4E3DE",
"fileUploadKey": "b5725f9266c3439dafaa696d2a035bba86250a0980edc",
"status": 2,
"created": "2022-01-07T23:29:08.495836",
"origin": 1,
"notifyCustomer": true,
"originSystemId": "b6fc68b0-a2d1-4330-ba97-9a30237aadc3"
}