Get Utility Account List

get

/apis/customer-data-v2/{utilityCode}/customers/{id}/utility_accounts

Returns the list of utility accounts associated to a given customer satisfying the query parameters.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Successful operation. Utility accounts for this customer returned.
Body ()
Root Schema : UtilityAccountsResponse
Type: object
Show Source
Example:
{
    "response":{
        "id":1071,
        "utilityAccountId":"1872099045",
        "moveInDate":"2011-10-15",
        "meterType":"ELEC",
        "resolution":"HALF_HOUR"
    }
}
Nested Schema : response
Type: array
Show Source
Nested Schema : UtilityAccount
Type: object
Show Source
  • Unique identifier within OPOWER of this utility account; this is how you identify utility accounts in further URIs
    Example: 1071
  • Allowed Values: [ "ELEC", "GAS" ]
    The fuel type of the meter.
  • The move in date for this account
    Example: 1999-01-01
  • The optional move out date for this account
    Example: 2010-01-01
  • Allowed Values: [ "MINUTE", "QUARTER_HOUR", "HALF_HOUR", "HOUR", "DAY", "MONTH", "BILLING" ]
    The read resolution of the meter
    Example: HOUR
  • A utility-company-provided account id for this account
    Example: ua_1-9999
  • An optional utility-company-provided account id for this account
    Example: ua_2-1212

400 Response

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

401 Response

Authorization failure
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

404 Response

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

500 Response

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