get getRentNumber

http://api-conserver.onlinesim.io/stubs/handler_api.php?action=getRentNumber
rent

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.

Parameters

action
Required
Method name, in this case `getRentNumber`
In: query
Schema:
  • string
    Example: "getRentNumber"
    Enum: getRentNumber
country
Required

country ID (see getRentServicesAndCountries response)

In: query
Schema:
  • integer
    Example: 1
time
Rental period in hours, converted into days with a rounding-up (e.g. 2h - 1 day, 25h - 2 days)
In: query
Schema:
  • integer
    Example: 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
  • object
    Example: {"status":"success","phone":{"id":10000,"endDate":"2022-07-17T19:54:55+03:00","number":"9089100000"}}
    Properties:
    • status
      string
      Operation status
      Example: "success"
    • phone
      object
      Virtual number object
      Example: {"id":10000,"endDate":"2022-07-17T19:54:55+03:00","number":"9089100000"}