update_billing_code
To set an active code for a unit, use the unit/update_billing_code command.
svc=unit/update_billing_code¶ms={
"itemId": <long>,
"code": <text>
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Unit ID. |
code | Billing code. |
Example
Below is an example of the unit/update_billing_code request.
svc=unit/update_billing_code¶ms={
"itemId": 1133,
"code": "bf6364e80170cbd4a42bfa8eb446deff"
}
Response
If the request is completed successfully, the response contains an active unit code.
{"code": "bf6364e80170cbd4a42bfa8eb446deff"}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
6 | Error updating the code. |
7 | The user doesn’t have the required access rights to the unit (ADF_ACL_AVL_UNIT_VIEW_HW). |