get getRentNumber
http://api-conserver.onlinesim.io/stubs/handler_api.php?action=getRentNumber
This 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
action
Required
Method name, in this case `getRentNumber`
In:
query
Schema:
- stringExample:
"getRentNumber"
Enum:getRentNumber
country
Required
country ID (see getRentServicesAndCountries response)
In:
query
Schema:
- integerExample:
1
time
Rental period in hours, converted into days with a rounding-up (e.g. 2h - 1 day, 25h - 2 days)
In:
query
Schema:
- 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:status
stringOperation statusExample:"success"
phone
objectVirtual number objectExample:{"id":10000,"endDate":"2022-07-17T19:54:55+03:00","number":"9089100000"}