Request
PATCH https://backend.net0.com/v1/travels/{travelId}
This endpoint allows for the retrieval of a trip available on your Net0 account.
curl --location --request GET 'https://backend.net0.com/v1/travels/639bde0e-f45e-4e9e-af74-d605b48d1g98' \
--header 'x-api-key: <API_KEY>'
Parameters
Attribute | Type | Description | In |
---|---|---|---|
travelId | String | The id of the site to retrieve. | path |
Response
The response returns the given trip if it exists.
{
"id": "string",
"emissionKind": {
"id": "string",
"scope": "SCOPE_1",
"underScope": "Sites",
"activityTypeUnderScope": "COMPANY_VEHICLE",
"name": "string",
"companyId": 0,
"siteElectricitys": [
{
"id": "string",
"totalEmission": 0,
"value": 0,
"percentageOfCleanEnergy": 0,
"comment": "string",
"startDate": "2021-11-28T22:19:02.639Z",
"endDate": "2021-11-28T22:19:02.639Z",
"createdAt": "2021-11-28T22:19:02.639Z",
"updatedAt": "2021-11-28T22:19:02.639Z",
"emission": {
"id": "string",
"co2": 0,
"ch4": 0,
"n2o": 0,
"co2e": 0,
"createdAt": "2021-11-28T22:19:02.639Z",
"updatedAt": "2021-11-28T22:19:02.639Z",
"unit": {
"id": 0,
"name": "string",
"short_name": "string",
"multiplier": 0,
"parent_id": 0,
"typeUnit": "WEIGHT",
"emissionFactorsDenominators": [
null
]
}
}