POST /api/resellers/addNumber
Forward specified phone numbers to Onlinesim server
WARNING
URL of Onlinesim server is provided by Onlinesim partner support specialists. Please note, that the URL in the example is just a placeholder.
This request allows you to add numbers to the Onlinesim server by one at a time, on the contrary to sendNumbersOnline that sends all active numbers as a list.
This could be especially useful if you need to add new numbers to the list of existing ones, instead of passing the modified list every time when you add new numbers.
WARNING
Enabling rent parameter (by assigning value 1 to it) allows clients to rent your number for a longer period, significantly increasing your income.
However you need to contact partner support to get a detailed information on terms and requirements before we enable it for your account.
Parameters
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here Example: Bearer apikey |
Request Body
Adding new numbers to the list of existing ones on Onlinesim server.
Content-Type:
application/jsonBodyobject
Payload schema
numberstringRequired
Number in international format (with + sign)
Example:
+4695000051country_idintegerRequired
Country code (according to Е.164 standard, without + sign)
≥ 1
Example:
46port_idstring
Unique port name, this name will be displayed in our
interface on your personal web-page.
Unless specified defaults to phone number value (value of
number parameter)
maxLen: 100
Example:
Port1rentintegerRequired
Rent mode for this number:
1 - enabled,
0 - disabled
Enum:
01Example:
0operatorinteger
MCC + MNC operator code (first 5 digits of IMSI)
Example:
24012date_startinteger
Date and time of placement (UNIX timestamp)
Example:
1658209063Responses
200
Onlinesim server response
400
Bad Request
Code Samples
No code samples available