Skip to content

GET /api/setOperationOk.php

Complete activation operation

Sets operation status as successful and closes the operation.

This request is send when you want to close the operation explicitly after receiving the required SMS message.

WARNING

Executing of this request is similar to closing active operation in "My numbers" section of the user interface on the website. After closing the operation, you will no longer be able to order or use this number again!

Operation closing

Security

  • apikey
  • BearerAuth
  • OAuth2 (Scopes: sms-scope)
    • sms-scope: grants access to manage numbers for the SMS receiving service from Onlinesim

Parameters

NameTypeDescription
tzid*integer
≥ 1

Operation ID

Example:10000
baninteger

This parameter can be used in case if you were issued invalid
number or did not receive the SMS within 5 minutes. You can pass 1
as the value for this parameter to block the number

Enum:01Example:1
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:ruExample:en

Responses

200

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

Code Samples