Get a rent status

https://sms-online.pro/stubs/handler_api.php?action=getRentStatus&api_key=$api_key&id=$id&page=$page&size=$size

Parameters:

Parameters Type Required Description
$api_key string
☑️
API key
$id integer
☑️
Rent order id
$page integer Number of page (Default 1)
$size integer Size of page (Default 10)

Response:

{
  "status": "success",
  "service": "wa",
  "currency": 840,
  "quantity": "2",
  "values": {
    "0": {
      "phoneFrom": "WhatsApp",
      "text": "Your sms-code is: 8362",
      "service": "wa",
      "date": "2025-08-22T08:54:25+00:00"
    },
    "1": {
      "phoneFrom": "WhatsApp",
      "text": "Your sms-code is: 3580",
      "service": "wa",
      "date": "2025-08-22T08:54:25+00:00"
    }
  }
}
Response parameters Description
$service Service code
$currency ISO 4217 Number (840 - usd)
$quantity Quantity of history items
$values History of prolongations
$phoneFrom Name of message sender

Error Response:

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

Possible errors:

Mistake Description
INVALID_PHONE Bad id rent
STATUS_FINISH The rent is paid and finished
STATUS_WAIT_CODE Waiting for the first message
STATUS_CANCEL Rent cancelled with refund funds
SERVER_ERROR Server error