check_activation_code
To check if a specific activation code is available (unassigned), use the user/check_activation_code method.
Endpoint
svc=user/check_activation_code¶ms={
"code": <text>
}
Parameters
The request must contain the code parameter, specifying the GUID of the code you want to check.
Response
If the request is completed successfully, the response is returned in the following format:
{
"guid": "<string>", // GUID of the activation code.
"tme": <number>, // Numerical value associated with the code.
"tma": <number>, // Another numerical value associated with the code.
"tmc": <number>, // Another numerical value associated with the code.
"use": <0 / 1> // Indicates whether the code is in use (1) or not (0).
}
If you are the top user, all activation codes are returned. If you are not the top user, only the codes that have been shared with you are returned.
In case the request fails, the response contains an error code.
Error codes
Error code | Description |
---|---|
4 | Invalid input parameters. |
6 | Internal server error. |
7 | Unauthorized user or access denied. |