Skip to main content

Certificates

Certificates [GET]

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

This request will generate all your certificates.

Example request

var axios = require('axios');

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

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

Example response

{
"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

This request will generate a certificate by external ID (ID example above).

Example request

var axios = require('axios');

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

};

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

Example response

{
"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"
}