get
http://api-conserver.onlinesim.io/stubs/handler_api.php?action=setRentStatusGET /stubs/handler_api.php?action=setRentStatus
Change rent operation status
This request closes the rent on a specified phone number.
You might want to use this request when you need to close the operation explicitly and do not plan to use the number further, for example when the data you wanted has been retrieved.
Security
Parameters
query3
| Name | Type | Description |
|---|---|---|
action* | string | Method name, in this case Enum: setRentStatusDefault:setRentStatus |
id* | integer≥ 1 | Operation ID (assigned upon order, according to getRentList) Example: 10000 |
status* | number | Operation status code (constant value, can only accept Enum: 2Default:2Example:2 |
Responses
200Successful setRentStatus response from the server: either
changes the rental operation status or throws an exception.
Successful setRentStatus response from the server: either
changes the rental operation status or throws an exception.
Content-Type
application/jsonSchema
Responseobject
Responseobject
statusstring
Examples
Response upon successful operation close
{
"status": "success"
}Code Samples
Generating examples...