Projects

List the consumption cost datums for a project

get

List the consumption cost datums for a specified date range and aggregate for a project

Authorizations
Path parameters
projectIdstringRequired

The ID of the project

Query parameters
startstring · date-timeRequired

The inclusive start date

endstring · date-timeRequired

The exclusive end date

aggregationstring · enumOptional

The aggregation to group the datums by

Possible values:
Responses
200

successful operation

application/json
get
GET //energy/datums/consumption/cost/projects/{projectId} HTTP/1.1
Host: api.ecosuite.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "projectDatums": {
    "consumptionCost": {
      "totalCost": 1,
      "totalMeteredCost": 1,
      "totalDemandCharge": 1,
      "totalFixedCost": 1,
      "aggregatedTotals": [
        {
          "meteredCost": 1,
          "demandCharge": 1,
          "fixedCost": 1
        }
      ],
      "sites": {
        "ANY_ADDITIONAL_PROPERTY": {
          "totalCost": 1,
          "totalMeteredCost": 1,
          "totalDemandCharge": 1,
          "totalFixedCost": 1,
          "aggregatedTotals": [
            {
              "meteredCost": 1,
              "demandCharge": 1,
              "fixedCost": 1
            }
          ],
          "systems": {
            "ANY_ADDITIONAL_PROPERTY": {
              "totalCost": 1,
              "totalMeteredCost": 1,
              "totalDemandCharge": 1,
              "totalFixedCost": 1,
              "aggregatedTotals": [
                {
                  "meteredCost": 1,
                  "demandCharge": 1,
                  "fixedCost": 1
                }
              ]
            }
          }
        }
      }
    }
  },
  "range": {
    "localStartDate": "2025-09-16T12:52:32.420Z",
    "localEndDate": "2025-09-16T12:52:32.420Z"
  },
  "aggregation": "year"
}