get setStatus

http://api-conserver.onlinesim.io/stubs/handler_api.php?action=setStatus
single-service activations

This request allows you to change the status of the operation according to its results (cancel operation, get next SMS code, close operation).

You might want to use this request when you want explicitly change the status of the operation, for example when your application needs to retrieve information from the second message received by this number.

IMPORTANT NOTE! &br; Closing the operation is irreversible process: once you close the operation, you won't be able to use or restore access to this number.

Parameters

action
Required
Method name, in this case `setStatus`
In: query
Schema:
  • string
    Example: "setStatus"
    Enum: setStatus
id
Required

Operation ID (see getNumber or getStatus responses)

In: query
Schema:
  • integer
    Example: 10000
    >= 1
status
Required

Status code: &br; 1 - inform when the phone number is ready (SMS was sent to this number), &br; 3 - request digital code from the next message, &br; 6 - close the operation

In: query
Schema:
  • integer
    Example: 6
    Enum: 1 3 6

Responses

200

Successful `setStatus` response from the server: either switches operation status to the specified or throws an exception.
Content Type:
text/html
  • Schema
  • Examples
  • string
    Example: "string"