https://onlinesim.io/api/rent/extendRentState.phpGET /api/rent/extendRentState.php
Extend virtual phone number rent
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.
Security
Parameters
query3
| Name | Type | Description |
|---|---|---|
tzid* | integer≥ 1 | Operation ID Example: 10000 |
days* | integer≥ 0 | Extention period for rental number (in days). Can only accept
values listed in Example: 15 |
lang | string | Response language:
Enum: frderuenzhDefault:ruExample:en |
Responses
200'Successful response for extendRentState request: extends the
rent of a number with requested parameters or throws an exception.'
'Successful response for extendRentState request: extends the
rent of a number with requested parameters or throws an exception.'
application/jsonResponseobject
responseoneOf
itemobject
messagesobject
dataoneOf[]
itemsoneOf
extendobject
Examples
Successful rental extention response
{
"response": 1,
"item": {
"status": 1,
"extension": 1,
"messages": {
"current_page": 1,
"data": [
[
{
"id": 1,
"service": "Google",
"text": "G-249833 – Ваш проверочный код.",
"code": "249833",
"created_at": "2022-07-17 21:46:58"
}
]
],
"from": 1,
"last_page": 1,
"per_page": 20,
"to": 1,
"total": 1
},
"sum": 251.5,
"country": 7,
"checked_time": "2022-07-17 21:41:20",
"number": "9915584307",
"rent": 4,
"tzid": 22867974,
"time": 5750,
"days": 3,
"hours": 95,
"extend": {
"1": 36,
"3": 108,
"7": 252,
"15": 540,
"30": 1080
},
"checked": true,
"reload": 0,
"day_extend": 36,
"m_ext": false,
"freeze": false
}
}