get_billing_code
To retrieve the activation code of a unit, use the unit/get_billing_code method.
svc=unit/get_billing_code¶ms={"itemId":<long>}
Parameters
The request must include the itemId parameter, which specifies the unit ID.
Example
Below is an example of the unit/get_billing_code request.
svc=unit/get_billing_code¶ms={"itemId":1133}
Response
If the request is completed successfully, the response is returned in the following format:
{"guid":"bf6364e80170cbd4a42bfa8eb446deff","uid":1133,"tmc":1731925774,"tma":1732090760,"tme":1763194760}
If no active codes are assigned to the unit, the last expired code is fetched.
In case the request fails, the response contains error code 7, indicating that the user doesn’t have the required access right (ADF_ACL_AVL_UNIT_VIEW_HW).