Get Raw Interval Usage

get

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

Returns the raw AMI usage data for the given time period. Raw data can be returned for up to 100 intervals in a single request. Data is available for last two years (730 days) preceding the time of the API request. 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 : UsageResponse
Type: object
Show Source
Example:
{
    "response":{
        "utilityCode":"util",
        "utilityCustomerId":"9999990000-9999990000",
        "fuelType":"ELECTRICITY",
        "start":"2017-09-01T00:00:00-06:00",
        "end":"2017-09-01T00:30:00-06:00",
        "unit":"KWH",
        "streams":[
            {
                "utilityServicePointId":"12345001",
                "intervals":[
                    {
                        "start":"2017-09-01T00:00:00-06:00",
                        "end":"2017-09-01T00:15:00-06:00",
                        "usage":0.14,
                        "readType":"ACTUAL"
                    },
                    {
                        "start":"2017-09-01T00:15:00-06:00",
                        "end":"2017-09-01T00:30:00-06:00",
                        "usage":0.19,
                        "readType":"ACTUAL"
                    }
                ]
            }
        ]
    }
}
Nested Schema : streams
Type: array
Show Source
Nested Schema : UsageStream
Type: object
Show Source
Nested Schema : intervals
Type: array
Show Source
Nested Schema : UsageInterval
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