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
-
id(required): integer
Customer id to list utility accounts for.
-
utilityCode(required): string
A 3- or 4-character representation of the client code. Valid examples - "UTIL" and "util"
Response
Supported Media Types
- application/json
200 Response
Successful operation. Utility accounts for this customer returned.
Root Schema : UtilityAccountsResponse
Type:
Show Source
object
Example:
{
"response":{
"id":1071,
"utilityAccountId":"1872099045",
"moveInDate":"2011-10-15",
"meterType":"ELEC",
"resolution":"HALF_HOUR"
}
}
Nested Schema : UtilityAccount
Type:
Show Source
object
-
id:
integer
Unique identifier within OPOWER of this utility account; this is how you identify utility accounts in further URIsExample:
1071
-
meterType:
string
Allowed Values:
[ "ELEC", "GAS" ]
The fuel type of the meter. -
moveInDate:
string
The move in date for this accountExample:
1999-01-01
-
moveOutDate:
string
The optional move out date for this accountExample:
2010-01-01
-
resolution:
string
Allowed Values:
[ "MINUTE", "QUARTER_HOUR", "HALF_HOUR", "HOUR", "DAY", "MONTH", "BILLING" ]
The read resolution of the meterExample:HOUR
-
utilityAccountId:
integer
A utility-company-provided account id for this accountExample:
ua_1-9999
-
utilityAccountId2:
integer
An optional utility-company-provided account id for this accountExample:
ua_2-1212
400 Response
Invalid request
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
401 Response
Authorization failure
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
404 Response
Utility Account not found
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.
500 Response
Internal error
Root Schema : ErrorResponse
Type:
Show Source
object
-
details:
string
Details about the error.
-
errorMessage:
string
Short failure explanation.
-
httpStatus:
integer
Minimum Value:
100
Maximum Value:600
The HTTP status code for the error. -
serviceErrorCode:
string
An error code for the error.