Get Daily Interval Usage

get

/apis/usage-v1/usage/day/{utilityCode}/{utilityCustomerId}/{fuelType}

Returns the AMI usage data for the given time period, aggregated by day. Daily data can be returned for up to 45 days in a single request. Days run from midnight to midnight in the local timezone of the site or service point. If the active utility account is associated with multiple service points of the same fuel type usage data per service point is returned.

Request

Path Parameters
Query Parameters
  • End date in ISO-8601 format YYYY-MM-DD (example 2001-12-31) or YYYY-MM-DDThh:mm:ssTZD (example 2001-12-31T23:59:59-05:00) or YYYY-MM-DDThh:mm:ss.sTZD. Use -00:00 for UTC as Z is not currently supported. The + character is a reserved character in URIs, use its encoding %2B.
  • Start date in ISO-8601 format YYYY-MM-DD (example 2001-12-31) or YYYY-MM-DDThh:mm:ssTZD (example 2001-12-31T23:59:59-05:00) or YYYY-MM-DDThh:mm:ss.sTZD. Use -00:00 for UTC as Z is not currently supported. The + character is a reserved character in URIs, use its encoding %2B.
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Successful response
Body ()
Root Schema : DayUsageResponse
Type: object
Show Source
Example:
{
    "response":{
        "utilityCode":"util",
        "utilityCustomerId":"9999990000-9999990000",
        "fuelType":"ELECTRICITY",
        "start":"2017-08-01T00:00:00-06:00",
        "end":"2017-08-03T00:00:00-06:00",
        "timezone":"America/New_York",
        "unit":"KWH",
        "streams":[
            {
                "utilityServicePointId":"12345001",
                "intervals":[
                    {
                        "start":"2017-08-01T00:00:00-06:00",
                        "end":"2017-08-02T00:00:00-06:00",
                        "usage":24.1,
                        "actualReadsCount":91,
                        "estimatedReadsCount":3
                    },
                    {
                        "start":"2017-08-02T00:00:00-06:00",
                        "end":"2017-08-03T00:00:00-06:00",
                        "usage":23.8,
                        "actualReadsCount":94,
                        "estimatedReadsCount":0,
                        "selfReportedReadsCount":0,
                        "forecastReadsCount":0
                    }
                ]
            }
        ]
    }
}
Nested Schema : streams
Type: array
Show Source
Nested Schema : AggregatedUsageStream
Type: object
Show Source
Nested Schema : intervals
Type: array
Show Source
Nested Schema : AggregateUsageInterval
Type: object
Show Source

400 Response

Invalid request
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

403 Response

Forbidden
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

404 Response

Customer not found
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

500 Response

Internal error
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Show Source
Back to Top