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).

Operation closing

Security

OAuth2
sms-scope
grants access to manage numbers for the SMS receiving service from Onlinesim

Parameters

query3
NameTypeDescription
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

baninteger

This parameter can be used if the number you issued had an incorrect format. You can pass the parameter with the value 1 to block the number, but only if there is no incoming SMS on it

Enum:01
langstring

Response language:

fr - French,

de - German,

ru - Russian,

en - English,

zh - Chinese.

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

200

Successful response for setOperationOk request: the server successfully closes the specified operation or throws an exception

Content-Typeapplication/json
Schema
schemaoneOf

Successful closure of the operation, impossibility of applying number blocking (response: 0), method-specific error or a common error

One Of
[0]object
[1]object
[2]object
[3]object

Examples

Operation closed successfully

Operation successfully closed

{
  "response": 1,
  "tzid": 10000
}

Code Samples

Generating examples...