get_billing_code

To retrieve the activation code of a unit, use the unit/get_billing_code method.

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

Copied!
svc=unit/get_billing_code&params={"itemId":1133}

Response

If the request is completed successfully, the response is returned in the following format:

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

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

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also