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"
]
}
]
}| Property | Type | Description | Example |
|---|---|---|---|
accountId | objectid | The account/meter ID this consumption data corresponds to | 5584fdd7c9ec4255620300ab |
totalConsumption | number | The total consumption for the period | 413213.32 |
data | array | The consumption for each time interval (based on the given granularity) | |
isMissing | boolean | Whether or not this period has data. This is to help know if data is missing, or is actually zero for a period. | false |
