get getRentNumber
http://api-conserver.onlinesim.io/stubs/handler_api.php?action=getRentNumberThis request allows you to order a phone number for rent.
You might want to use this service when you need to receive SMS from multiple different sources (websites, applications, other mobile numbers) or when need to receive SMS from a single one on the same number, but over a longer time (for example over 5 days).
IMPORTANT NOTES! &br; Phone number should be activated by receiving SMS within 20 minutes after the order, otherwise the operation will be closed and refunded automatically. &br; Please note that some services are prohibited for use (and SMS from these services are not available), you can find the list of such services on the front page or in Public offer.
Security
Parameters
actionRequired
Method name, in this case `getRentNumber`
In:
querySchema:
- stringExample:
"getRentNumber"Enum:getRentNumber
countryRequired
country ID (see getRentServicesAndCountries response)
In:
querySchema:
- integerExample:
1
timeRental period in hours, converted into days with a rounding-up (e.g. 2h - 1 day, 25h - 2 days)
In:
querySchema:
- integerExample:
24
Responses
200
Successful `getRentNumber` response from the server: either issues a number for rent with specified parameter or throws an exception.
Content Type:
application/json
- Schema
- Examples
- objectExample:
{"status":"success","phone":{"id":10000,"endDate":"2022-07-17T19:54:55+03:00","number":"9089100000"}}Properties:statusstringOperation statusExample:"success"phoneobjectVirtual number objectExample:{"id":10000,"endDate":"2022-07-17T19:54:55+03:00","number":"9089100000"}