https://onlinesim.io/api/rent/getRentNum.phpGET /api/rent/getRentNum.php
Buy virtual phone number for rent
This request allows you to rent a number of a specific country for SMS receiving.
You can use this request when you need to receive messages from multiple different services or from a single one, but over a long time period.
Security
Parameters
query5
| Name | Type | Description |
|---|---|---|
country | integer≥ 1 | 'International dialing code of the country (Е.164 standard, without "+" sign), see country list' Default: 7Example:46 |
days* | integer≥ 1 | 'Initial rental period (in days), see available values in tariffsRent response' Example: 1 |
extension | boolean | 'Auto-renewal (when enabled, automatically extends the rental for 30 days upon expiration)' Default: true |
pagination | boolean | Message pagination |
lang | string | Response language:
Enum: frderuenzhDefault:ruExample:en |
Responses
200Successful response for getRentNum request: the server issues a number with requested parameters for rent or throws an exception.
Successful response for getRentNum request: the server issues a number with requested parameters for rent or throws an exception.
application/jsonResponseobject
responseoneOf
itemobject
messagesobject
dataobject[]
extendobject
Examples
Successfully issued rental number
{
"response": 1,
"item": {
"status": 0,
"messages": {
"current_page": 1,
"data": [],
"from": 1,
"last_page": 0,
"per_page": 20,
"to": 0,
"total": 0
},
"country": 7,
"rent": 3,
"extension": 1,
"checked_time": "2022-07-17 21:41:20",
"sum": 215.5,
"number": "9915584307",
"tzid": 22867974,
"time": 19,
"days": 0,
"hours": 0,
"extend": {
"1": 36,
"3": 108,
"7": 252,
"15": 540,
"30": 1080
},
"checked": false,
"reload": 0,
"day_extend": 36,
"m_ext": false,
"freeze": false
}
}