Get Threshold Value for a Customer
get
/apis/threshold-v1/external/{utilityCode}/customers/{utilityCustomerId}/threshold
Returns a customer's threshold value using the utility customer identifier registered in the system.
Request
Path Parameters
-
utilityCode(required): string
Maximum Length:
4
3-4 character utility representation, all caps. E.g. "UTIL", "ZOK1", "BGE". -
utilityCustomerId(required): string
Utility internal customer ID
Response
200 Response
Returns the customer's threshold value.
Nested Schema : response
Type:
Show Source
object
-
percentage:
number(float)
The threshold value for the customer, represented as a percentage value. The value can range from 0 to 1000.
-
threshold:
number(float)
The threshold value for the customer
-
utilityCode(required):
string
The utility code requested
-
utilityCustomerId(required):
string
The customer ID the utility uses to identify the customer
400 Response
Utility does not support setting thresholds.
Nested Schema : error
Type:
Show Source
object
-
details(required):
string
Additional details about the error
-
httpStatus(required):
integer(int32)
The HTTP status code for the error
-
serviceErrorCode(required):
string
The identifying error code
404 Response
No customer with the given utilityCustomerId. No threshold set for the requested customer.
Nested Schema : error
Type:
Show Source
object
-
details(required):
string
Additional details about the error
-
httpStatus(required):
integer(int32)
The HTTP status code for the error
-
serviceErrorCode(required):
string
The identifying error code