Get Billing Usage

get

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

Returns the billing usage data for the given time period. Billing data can be returned for up to 25 bills in a single request. Data is available for the last two years preceding the time of the API request. If the active utility account is associated with multiple service points of the same fuel type billed usage 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 : BillingUsageResponse
Type: object
Show Source
Example:
{
    "response":{
        "utilityCode":"util",
        "utilityCustomerId":"9999990000-9999990000",
        "fuelType":"ELECTRICITY",
        "start":"2016-09-01T00:00:00.000-06:00",
        "end":"2016-11-01T00:00:00.000-06:00",
        "timezone":"America/New_York",
        "unit":"KWH",
        "streams":[
            {
                "utilityServicePointId":"12345001",
                "intervals":[
                    {
                        "start":"2016-09-29T00:00:00.000-04:00",
                        "end":"2016-10-28T00:00:00.000-04:00",
                        "billDate":"2016-10-27",
                        "usage":402,
                        "providedCost":65.98,
                        "readType":"ACTUAL"
                    }
                ]
            }
        ]
    }
}
Nested Schema : streams
Type: array
Show Source
Nested Schema : BillingUsageStream
Type: object
Show Source
Nested Schema : intervals
Type: array
Show Source
Nested Schema : BillingUsageInterval
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