#Set a rent status
https://sms-online.pro/stubs/handler_api.php?action=setRentStatus&api_key=$api_key&id=$id&status=status
#Parameters:
| Parameters |
Type |
Required |
Description |
| $api_key |
string |
☑️ |
API key |
| $id |
integer |
☑️ |
Rent order id |
| $status |
integer |
☑️ |
1 or 2 (1 - finish, 2 - cancel) |
#Response:
{
"status": "success"
}
#Error Response:
{
"status": "error",
"message": "ALREADY_FINISH"
}
#Possible errors:
| Mistake |
Description |
| INVALID_PHONE |
Bad id rent |
| INCORECT_STATUS |
Incorrect status |
| ALREADY_FINISH |
Rent already been finished |
| ALREADY_CANCEL |
Rent already been canceled |
| CANT_CANCEL |
Unable to cancel rent (more than 20 minutes passed) |
| SERVER_ERROR |
Server error |