unshare_billing_code

To revoke sharing of an activation code with a specific user and their subordinate, use the user/unshare_billing_code method.

Endpoint

Copied!
svc=user/unshare_billing_code&params={
    "userId": <long>,
    "code": <text>
}

Parameters

The request must contain the following parameters:

Parameter Description
userId ID of the user with whom the activation code should no longer be shared.
code The activation code to be unshared.

Response

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

Copied!
{
  "result": "success"  
}

If the request fails, an error code is returned.

Error codes

Error Code Description
1 Invalid input parameters.
2 The Activation codes module is not enabled.
3 Invalid source user.
4 The target user doesn’t have dealer rights or the Manage access codes access right.
5 Invalid target user.
6 The code is not shared with the source user.
7 The code has already been shared.
9 Internal error.

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