Returns a commodity with its common units and if it is currently in use
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| commodityId | The specific commodity ID | integer (int32) | Required |
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
Commodity
| Property | Description | Type | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| commodityCode | The Commodity Code | string | ||||||||||||
| commodityId | The Commodity ID | integer (int32) | ||||||||||||
| commodityInfo | The Commodity Info | string | ||||||||||||
| commonDemandUnit | UnitChild | |||||||||||||
|
UnitChild properties
|
||||||||||||||
| commonUseUnit | UnitChild | |||||||||||||
|
UnitChild properties
|
||||||||||||||
| inUseByVendor | Flag to indicate if the commodity is assigned to any meters | boolean | ||||||||||||
Example Response
{ "commodityCode": "string", "commodityId": 1, "commodityInfo": "string", "commonDemandUnit": { "unitCode": "string", "unitId": 1, "unitInfo": "string"
}, "commonUseUnit": { "unitCode": "string", "unitId": 1, "unitInfo": "string"
}, "inUseByVendor": false
}