Fetch All Site Fuel Consumptions

Request

GET https://backend.net0.com/v1/sites/{siteId}/fuel

This endpoint allows for the retrieval of all the fuel consumptions associated with a site.

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

Response

The response is an array containing all the fuel consumptions associated with a site.

[
    {
        "id": "8efe2975-df97-4356-a042-5f60657f4f96",
        "value": 78,
        "totalEmission": 8006.93,
        "startDate": "2021-01-01T06:00:00.000Z",
        "endDate": "2021-02-02T06:00:00.000Z",
        "comment": null,
        "unitId": 13,
        "vendorId": "8df19e8c-5acf-4d3c-92af-6b1870a8a7ed",
        "siteId": "8fd23068-139b-44db-be74-1f8513715e9e",
        "companyId": 2,
        "emissionId": "0166b835-555c-420a-9148-e82101d4e748",
        "emissionKindId": "8cfa32be-a87e-4ec4-80bf-6f0382537df7",
        "emissionFactorId": "57b73dc9-4d37-496d-ab36-e803adfa97a6",
        "createdAt": "2021-11-22T15:57:30.555Z",
        "updatedAt": "2021-11-22T15:57:30.555Z",
        "files": [],
        "offsets": [],
        "emissionKind": {
            "id": "8cfa32be-a87e-4ec4-80bf-6f0382537df7",
            "scope": "SCOPE_1",
            "underScope": "Sites",
            "activityTypeUnderScope": "FUEL",
            "name": "Stationary Combustion",
            "companyId": null,
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z"
        },
        "unit": {
            "id": 13,
            "name": "Liter",
            "short_name": "l",
            "multiplier": 1,
            "parent_id": null,
            "typeUnit": "VOLUME",
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z"
        },
        "emissionFactor": {
            "id": "57b73dc9-4d37-496d-ab36-e803adfa97a6",
            "name": "Petroleum Coke",
            "source": "https://www.epa.gov/climateleadership/center-corporate-climate-leadership-ghg-emission-factors-hub",
            "co2": 102.41,
            "ch4": 0.003,
            "n2o": 0.0006,
            "co2e": 102.653,
            "denominatorUnitId": 7,
            "numeratorUnitId": 2,
            "isCustom": false,
            "companyId": null,
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z",
            "deletedAt": null
        }
    },
    {
        "id": "a61214a1-48ce-4711-ba4b-20feb532e25a",
        "value": 100,
        "totalEmission": 7390,
        "startDate": "2021-11-01T00:00:00.000Z",
        "endDate": "2021-11-10T00:00:00.000Z",
        "comment": "",
        "unitId": 13,
        "vendorId": "8df19e8c-5acf-4d3c-92af-6b1870a8a7ed",
        "siteId": "8fd23068-139b-44db-be74-1f8513715e9e",
        "companyId": 2,
        "emissionId": "f87f1eab-cd67-4aba-9948-39b050fd6614",
        "emissionKindId": "8cfa32be-a87e-4ec4-80bf-6f0382537df7",
        "emissionFactorId": "2c910161-4cf6-4160-9513-b09bbca0e19e",
        "createdAt": "2021-11-22T16:07:41.516Z",
        "updatedAt": "2021-11-22T16:07:41.516Z",
        "files": [],
        "offsets": [],
        "emissionKind": {
            "id": "8cfa32be-a87e-4ec4-80bf-6f0382537df7",
            "scope": "SCOPE_1",
            "underScope": "Sites",
            "activityTypeUnderScope": "FUEL",
            "name": "Stationary Combustion",
            "companyId": null,
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z"
        },
        "unit": {
            "id": 13,
            "name": "Liter",
            "short_name": "l",
            "multiplier": 1,
            "parent_id": null,
            "typeUnit": "VOLUME",
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z"
        },
        "emissionFactor": {
            "id": "2c910161-4cf6-4160-9513-b09bbca0e19e",
            "name": "Biodiesel (100%)",
            "source": "https://www.epa.gov/climateleadership/center-corporate-climate-leadership-ghg-emission-factors-hub",
            "co2": 0,
            "ch4": 0.0011,
            "n2o": 0.00011,
            "co2e": 73.89995,
            "denominatorUnitId": 7,
            "numeratorUnitId": 2,
            "isCustom": false,
            "companyId": null,
            "createdAt": "2021-11-19T13:19:25.410Z",
            "updatedAt": "2021-11-19T13:19:25.410Z",
            "deletedAt": null
        }
    }
]