{yourserver}/getNumberRentPOST /getNumberRent
Order rent of a virtual phone number
This request creates a new rent operation, which will allow to use a number to receive SMS from any service and other mobile numbers for a long period of time (from 1 day up to several months).
If number won't receive SMS within 20 minutes after operation is created, the operation will be cancelled automatically, making it available for another operation. If number fails 3 consecutive operations to receive SMS within 20 minutes, it will be banned by our server. These bans are lifted automatically every 24 hours.
Rent can be prolonged by the client, but the income is CREDITED UPON OPERATION CLOSING (upon rent expiration or termination).
Parameters
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Request Body
Request payload from Onlinesim server for rent operation
application/jsonBodyobject
exceptionPhoneSetinteger[]
Examples
{
"action": "GET_NUMBER",
"key": "apikey",
"country": "germany",
"operator": "any",
"service": "rent",
"sum": 400
}Responses
200The response of your server for GET_NUMBER request must be in
following format:
The response of your server for GET_NUMBER request must be in
following format:
application/jsonHeaders
| Name | Type | Description |
|---|---|---|
Content-Type | string |
|
Responseobject
Examples
{
"number": 79281234567,
"activationId": 355,
"status": "SUCCESS"
}{
"number": null,
"activationId": null,
"status": "NO_NUMBERS"
}{
"number": null,
"activationId": null,
"status": "ERROR"
}