Retrieve Multiple Travels

Request

GET https://backend.net0.com​/v1​/travels

This endpoint allows to you retrieve a list of all the travel records available on your Net0 account.

curl --location --request GET 'https://backend.net0.com/v1/travels' \
--header 'x-api-key: <API_KEY>'

Response

The response is an array containing all the travel details available.

[
     {
        "id": "string",
        "totalEmission": 0,
        "value": 0,
        "percentageOfCleanEnergy": 0,
        "comment": "string",
        "startDate": "2021-11-24T12:57:59.819Z",
        "endDate": "2021-11-24T12:57:59.819Z",
        "createdAt": "2021-11-24T12:57:59.819Z",
        "updatedAt": "2021-11-24T12:57:59.819Z",
        "emission": {
          "id": "string",
          "co2": 0,
          "ch4": 0,
          "n2o": 0,
          "co2e": 0,
          "createdAt": "2021-11-24T12:57:59.819Z",
          "updatedAt": "2021-11-24T12:57:59.819Z"
        }
     ]