Consumption

The general format for any consumption response in Etainabl

Example

{
    "accountId": "6554f5a9bd29ef0014b6bf08",
    "consumption": 1030877.6136629602,
    "data": [
        {
            "date": "2023-01",
            "startDate": "2023-01-01T00:00:00.000Z",
            "endDate": "2023-02-01T00:00:00.000Z",
            "isMissing": false,
            "consumption": 77678.075,
            "estimatedConsumption": 0,
            "combinedBreakdown": {
                "hh": 77678.075,
                "invoice": 0,
                "reading": 0,
                "custom": 0
            },
            "sources": [
                "hh"
            ]
        },
        {
            "date": "2023-02",
            "startDate": "2023-02-01T00:00:00.000Z",
            "endDate": "2023-03-01T00:00:00.000Z",
            "consumption": 107241.75000000003,
            "isMissing": false,
            "estimatedConsumption": 0,
            "combinedBreakdown": {
                "hh": 77678.075,
                "invoice": 0,
                "reading": 0,
                "custom": 0
            },
            "sources": [
                "hh"
            ]
        }
    ]
}
PropertyTypeDescriptionExample
accountIdobjectidThe account/meter ID this consumption data corresponds to5584fdd7c9ec4255620300ab
totalConsumptionnumberThe total consumption for the period413213.32
dataarrayThe consumption for each time interval (based on the given granularity)
isMissingbooleanWhether or not this period has data. This is to help know if data is missing, or is actually zero for a period.false