https://onlinesim.io/api/rent/getRentState.phpGET /api/rent/getRentState.php
Get information about the state of virtual phone number rent operation
This request returns a list of active rental numbers.
You can use it to quickly browse all your active rental numbers (or only specific one) and their received messages.
Security
Parameters
query3
| Name | Type | Description |
|---|---|---|
tzid | integer | 'Operation ID. If not specified, request will return the entire list of active rental operations' |
pagination | boolean | Pagination mode for message browsing (disabled if Default: falseExample:false |
lang | string | Response language:
Enum: frderuenzhDefault:ruExample:en |
Responses
200'Successful response for getRentState request: the server returns
information of specified active rental operation (or all of them) or
throws an exception.'
'Successful response for getRentState request: the server returns
information of specified active rental operation (or all of them) or
throws an exception.'
application/jsonResponseobject
responseoneOf
listobject[]
itemsobject
messagesobject[]
itemsobject
extendobject
Examples
Successful response to get all active rental operations
{
"response": 1,
"list": [
{
"status": 1,
"extension": 1,
"messages": [
{
"id": 1,
"service": "Google",
"text": "G-249833 – Ваш проверочный код.",
"code": "249833",
"created_at": "2022-07-17 21:46:58"
}
],
"sum": "251.50",
"country": 7,
"checked_time": "2022-07-17 21:41:20",
"number": "9915584307",
"rent": 4,
"tzid": 22867974,
"time": 5728,
"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
}
]
}