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
svc=user/unshare_billing_code¶ms={
"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:
{
"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. |