GEThttps://onlinesim.io/api/setOperationOk.php
Complete activation operation
Closes the operation and changes its status depending on the result to successful or failed.
This request must be sent when you want to explicitly close the operation (for example, after receiving the SMS message you need). You can also temporarily block the re-issuance of this number by passing the ban=1 parameter, for situations where the number is specified in an incorrect format (this is only possible if there are no incoming SMS).
.png)
Security
sms-scope- grants access to manage numbers for the SMS receiving service from Onlinesim
Parameters
query3
| Name | Type | Description |
|---|---|---|
tzid* | string | Operation ID returned by the server when issuing a number (in response to getNum or getRentNum). The list of active operations on your profile with their IDs can also be obtained via getState or getRentState |
ban | integer | This parameter can be used if the number you issued had an incorrect format. You can pass the parameter with the value Enum: 01 |
lang | string | Response language:
Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English Enum: frderuenzhDefault:ru |
Responses
200Successful response for setOperationOk request: the server
successfully closes the specified operation or throws an exception
Successful response for setOperationOk request: the server
successfully closes the specified operation or throws an exception
schemaoneOf
[0]object
[1]object
[2]object
[3]object
Examples
Operation successfully closed
{
"response": 1,
"tzid": 10000
}