Prolong rent info

https://sms-online.pro/stubs/handler_api.php?action=continueRentInfo&api_key=$api_key&id=$id&hours=$hours&needHistory=$needHistory

Parameters:

Parameters Type Required Description
$api_key string
☑️
API key
$id integer
☑️
Rent order id
$hours integer
☑️
Rent time in hours (2, 4, 12, 24, 48, 72, …)
$needHistory integer Get list of renewals. Takes a boolean value (true or false).

Response:

{
  "status": "success",
  "price": 0.3125,
  "currency": 840,
  "maxHours": 4,
  "history": {
    "0": {
      "createdDate": "2025-08-22 08:54:25",
      "price": "0.3125",
      "hours": 4
    }
  }
}

Error Response:

{
  "status": "error",
  "message": "BAD_KEY"
}

Possible errors:

Mistake Description
BAD_KEY Invalid API key
INVALID_PHONE Bad id rent
RENT_DIE The rent cannot be prolong because the number is already in final status.
INVALID_TIME Invalid duration in hours
SERVER_ERROR Server error