Extend virtual phone number rent
GEThttps://onlinesim.io/api/rent/extendRentState.php
Extends a rent for a specified period (in days).
This request is needed when your rental period is about to expire, but you plan to continue using it.
Only a confirmed rent (status 1 or 4) rented with extension=1 can be extended. The price of the
period from its extend is charged at once; days are added to rent and stop_time, the price to sum.
After each call (successful or not) the same tzid cannot be extended for 10 seconds.
POST with the same parameters works too.
Security
Parameters
query5
| Name | Type | Description |
|---|---|---|
tzid* | integer | Rent operation ID. Without it the answer is |
days | integer | Extension period in days, one of the keys of Default: 1 |
pagination | boolean |
Default: true |
number | integer | Any value: the answer also gets |
lang | string | Language of the texts in the answer (country and service names, status texts): Enum: frderuenzh |
Responses
200The extended rent or an error
application/jsonschemaoneOf
[0]object
[1]object
[2]object
Examples
Virtual number rental was successfully renewed51 lines
Number rental was successfully renewed
{
"response": 1,
"item": {
"status": 1,
"messages": {
"current_page": 1,
"data": [
[
{
"id": 1,
"service": "Google",
"text": "G-070051 is your Google verification code.",
"code": "070051",
"created_at": "2026-11-19 10:01:12"
}
]
],
"from": 1,
"last_page": 1,
"per_page": 20,
"to": 1,
"total": 1
},
"country": 7,
"rent": 4,
"days_autoextend": 3,
"extension": 1,
"checked_time": "2026-11-19 10:00:00",
"sum": 2.4,
"number": "9915584307",
"start_time": "2026-11-19 10:00:00",
"stop_time": "2026-11-23 10:00:00",
"webhook_url": null,
"tzid": 22867974,
"time": 2880,
"days": 2,
"hours": 48,
"extend": {
"1": 0.9,
"3": 1.5,
"7": 3,
"15": 5.5,
"30": 9
},
"checked": true,
"reload": 0,
"day_extend": 0.3,
"m_ext": false,
"freeze": false
}
}The rent cannot be extended: wrong tzid or days, the operation is closed, or a repeated call within 10 seconds
{
"response": "TRY_AGAIN_LATER"
}The balance is lower than the price of the extension
{
"response": "WARNING_LOW_BALANCE"
}429HTTP 429: more than 400 requests per minute from one profile (from one IP for requests without a key), or more than 200 requests per minute from one profile to getNum, getPrice, getState and setOperationOk together
application/jsonschemaobject
Examples
Request rate limit exceeded
{
"response": "TRY_AGAIN_LATER"
}456HTTP 456: the API key is invalid or the OAuth token has expired. Public methods answer the same way when an invalid key is sent
application/jsonschemaobject
Examples
Invalid API key or expired token
{
"response": "ERROR_WRONG_KEY"
}