Get Customer List
get
/apis/customer-data-v2/{utilityCode}/customers
Returns the list of customers satisfying the query parameters.
Request
Path Parameters
-
utilityCode(required): string
A 3- or 4-character representation of the client code. Valid examples - "UTIL" and "util"
Query Parameters
-
accountNumber(required): string
Customer account number
-
name: string
The customer's name. Valid example - "Bobby%20Fischer"
Response
Supported Media Types
- application/json
200 Response
Successful operation. Customers matching this query returned.
Root Schema : CustomersResponse
Type:
Show Source
object
Example:
{
"response":{
"id":1071,
"name":"David Bowie",
"recipient":"RECIPIENT",
"utilityCustomerId":"1872099045-387109999",
"utilityInternalId":"1872099045",
"utilityInternalId2":"18720-99045"
}
}
Nested Schema : Customer
Type:
Show Source
object
-
id:
integer
The internal customer idExample:
31
-
name:
string
The customer's nameExample:
David Bowie
-
recipient:
string
Allowed Values:
[ "RECIPIENT", "CONTROL" ]
Whether this customer is a recipient, or in the control group. This field is optionalExample:RECIPIENT
-
utilityCustomerId:
string
The utility-company-provided customer idExample:
1872099045-387109999
-
utilityInternalId:
string
The internal utility id for this customer. This field is optionalExample:
1872099045
-
utilityInternalId2:
string
A second internal utility id for this customer. This field is optionalExample:
18720-99045
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
Customer 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.