Get Annual Disaggregation

get

/apis/disaggregation-v1/utilities/{utilityCode}/customers/{customerId}/consumption/categories

Returns the annual usage disaggregation combined across all utility accounts associated with the customer. If utilityAccountId or fuelType is specified then returns disaggregation only for the appropriate account.

The endDate parameter is optional and defaults to the current date. Results only include the ratio field, which is a decimal in the range [0, 1].

The following disaggregation categories are available APPLIANCES, CLOTHES_WASHER, COOLING, DISHWASHER, DRYER, ELECTRIC_VEHICLE, ELECTRONICS, HEATING, LIGHTING, OTHER, OVEN, POOL, REFRIGERATOR, GAS_APPLIANCES_OTHER, TOTAL, WATER_HEATING.

The list of categories can be extended, but existing categories will not be removed. APPLIANCES is an aggregate category for CLOTHES_WASHER, DISHWASHER, DRYER, OVEN, REFRIGERATOR, GAS_APPLIANCES_OTHER (for GAS or COMBINED customer). If heating or cooling model insights are not available, the disaggregation insights are not calculated, and a response status code 404 is returned.

Request

Path Parameters
Query Parameters
Back to Top

Response

200 Response

Returns annual disaggregation.
Body ()
Root Schema : ExternalResponseWrapperDisaggregationResultV2External
Type: object
Show Source
Nested Schema : DisaggregationResultV2External
Type: object
Show Source
Nested Schema : categories
Type: array
Show Source
Nested Schema : DisaggregationValueV2
Type: object
Show Source
  • Allowed Values: [ "APPLIANCES", "CLOTHES_WASHER", "COOLING", "DISHWASHER", "DRYER", "ELECTRIC_VEHICLE", "ELECTRONICS", "HEATING", "LIGHTING", "OTHER", "OVEN", "POOL", "REFRIGERATOR", "GAS_APPLIANCES_OTHER", "TOTAL", "WATER_HEATING" ]
Example Response (application/json)
{
    "response":{
        "categories":[
            {
                "name":"APPLIANCES",
                "ratio":0.09
            },
            {
                "name":"COOLING",
                "ratio":0.02
            },
            {
                "name":"ELECTRIC_VEHICLE",
                "ratio":0.2
            },
            {
                "name":"ELECTRONICS",
                "ratio":0.13
            },
            {
                "name":"HEATING",
                "ratio":0.22
            },
            {
                "name":"LIGHTING",
                "ratio":0.04
            },
            {
                "name":"OTHER",
                "ratio":0.06
            },
            {
                "name":"POOL",
                "ratio":0.13
            },
            {
                "name":"GAS_APPLIANCES_OTHER",
                "ratio":0.02
            },
            {
                "name":"AIR_CONDITION",
                "ratio":0.07
            },
            {
                "name":"TOTAL",
                "ratio":1
            },
            {
                "name":"WATER_HEATING",
                "ratio":0.11
            }
        ]
    }
}

400 Response

Bad request.
Body ()
Root Schema : ExternalErrorResponse
Type: object
Show Source
Nested Schema : ExternalError
Type: object
Show Source
Example Response (application/json)
{
    "error":{
        "httpStatus":400,
        "errorMessage":"Bad request"
    }
}

401 Response

Authorization failure.
Body ()
Root Schema : ExternalErrorResponse
Type: object
Show Source
Nested Schema : ExternalError
Type: object
Show Source
Example Response (application/json)
{
    "error":{
        "httpStatus":401,
        "errorMessage":"Credentials are required to access this resource"
    }
}

404 Response

Customer account not found.
Body ()
Root Schema : ExternalErrorResponse
Type: object
Show Source
Nested Schema : ExternalError
Type: object
Show Source
Example Response (application/json)
{
    "error":{
        "httpStatus":404,
        "errorMessage":"Account 00000000 not found. (917aab1d-b12a-4df9-b85d-968cc017a96e) "
    }
}

500 Response

Something unexpected happened while processing your request or an upstream request failed.
Body ()
Root Schema : ExternalErrorResponse
Type: object
Show Source
Nested Schema : ExternalError
Type: object
Show Source
Example Response (application/json)
{
    "error":{
        "httpStatus":500,
        "errorMessage":"Unexpected error"
    }
}
Back to Top