get tariffsRent
https://onlinesim.io/api/rent/tariffsRent.phpReturnes information on available for rent numbers of specified country (or all of countries, if not specified): rental plans and other parameters of rent.
Unlike regular SMS receiving, rental implies a longer period of use. Also, unlike regular receiving, you can receive any number of SMS messages during the entire rental period from various senders: from websites and applications to SMS sent from regular mobile numbers.
If you initially chose a number with the extention option, you can extend the rental at any time before it expires.
IMPORTANT NOTE!
Please note that some services are prohibited for use (and SMS from these services will not be received), you can find the list of such services on the front page or in Public offer.
Security
Parameters
countryInternational dialing code of the country (Е.164 standard, without "+" sign), see country list
query- stringExample:
"7"Minimum string length:1
langResponse language:
fr - French,
de - German,
ru - Russian,
en - English,
zh - Chinese. Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English.
query- stringExample:
"en"Enum:frderuenzh
Responses
200
- Schema
- Examples
- objectExample:
{"code":46,"enabled":true,"new":true,"position":1,"count":{"\"period_in_days\"":20},"days":{"\"period_in_days\"":0},"extend":0,"confirm":true}Properties:codeintegerInternational dialing code of the country (Е.164 standard, without "+" sign), see country list
Example:46>= 1enabledbooleanAvailability of virtual numbers of a country (available/unavailable)Example:truenewbooleanWas the country recently added to the listExample:truepositionintegerCountry position in the list in the user dashboard (by default)Example:1>= 0countobjectContains information on the amount of available numbers for each available rental periodExample:{"\"period_in_days\"":20}daysobjectContains information on the price for each initial rental periodExample:{"\"period_in_days\"":0}extendintegerAmount of available numbers for rent with extention optionExample:0confirmbooleanExample:true