update_billing_code

To set an active code for a unit, use the unit/update_billing_code command.

Copied!
svc=unit/update_billing_code&params={
  "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.

Copied!
svc=unit/update_billing_code&params={
  "itemId": 1133,
  "code": "bf6364e80170cbd4a42bfa8eb446deff"
}

Response

If the request is completed successfully, the response contains an active unit code.

Copied!

{"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).

If you find a mistake in the text, please select it and press Ctrl+Enter.

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also