Set activation status

https://sms-online.pro/stubs/handler_api.php?action=setStatus&api_key=$api_key&status=$status&id=$id

Parameters:

Parameters Type Required Description
$api_key string
☑️
API key
$id integer
☑️
Activation ID
$status integer
☑️
Activation status (see table below)

Possible activation statuses:

Status ID Description
1 Inform about the readiness of the number (sms sent to the number)
3 Request another code
6 Complete activation
8 Notify that the number has been used and cancel activation

Response:

Response message Description
ACCESS_READY The availability of the number has been confirmed
ACCESS_RETRY_GET Waiting for a new SMS
ACCESS_ACTIVATION The service has been activated successfully
ACCESS_CANCEL Activation canceled

Possible errors:

Mistake Description
EARLY_CANCEL_DENIED You cannot cancel a number in the first 2 minutes
NO_ACTIVATION Activation ID does not exist
BAD_STATUS Incorrect status
BAD_ACTION Incorrect action
BAD_SERVICE Incorrect service name
BAD_KEY Invalid API key
ERROR_SQL SQL-server error