GEThttps://onlinesim.io/api/rent/closeRentNum.php
Close virtual phone number rent operation
This request closes the specified rental operation (except for US number rentals — they can be closed only upon expiration of the operation term).
Security
Parameters
query2
| 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 |
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 closeRentNum request: the server closes
the current rental operation and returns information for it or
throws an exception
Successful response for closeRentNum request: the server closes
the current rental operation and returns information for it or
throws an exception
schemaoneOf
[0]object
[1]object
[2]object
Examples
Successful closure of the rental operation
{
"response": "1"
}No active rentals operations
{
"response": "ERROR_NO_OPERATIONS"
}Closure during the protective interval is unavailable: while there is no SMS and 120 seconds have not passed since the start (the rental is still awaiting activation); also always returned when trying to close a US rental number
{
"response": "NO_COMPLETE_TZID"
}