Change rent operation status
GEThttp://api-conserver.onlinesim.io/stubs/handler_api.php?action=setRentStatus
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) |
status* | number | Operation status code (constant value, can only accept Enum: 2Default:2 |
Responses
200Successful setRentStatus response from the server: either
changes the rental operation status or throws an exception.
Content-Type
application/jsonSchema
schemaobject
statusstring
Request execution statusExample:successExamples
Response upon successful operation close
{
"status": "success"
}Code Samples
Generating examples...