POST /api/resellers/sendNumbersOnline
Send phone numbers in bulk to Onlinesim server list
INFO
URL of Onlinesim server is provided by Onlinesim partner support specialists. Please note, that the URL in the example is just a placeholder.
In this request all numbers available for sale should be passed. This request should be sent to Onlinesim server every 5 minutes (to ensure that your server is up and running) and after any change in the number list: after adding new numbers or removing any of previously passed ones.
However, there is another way: you can send checkWork request every 5 minutes (as confirmation that your server is up and running), and use addNumber and removeNumber to add or delete numbers respectively.
WARNING
Only list of active numbers should be passed in this request. If you have a 32 port device and a 512 port SIM bank, you should send a list with 32 numbers that currently in the ports.
DANGER
Violation of this condition will cause the system to automatically block receiving numbers from you for 30 minutes.
INFO
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
Your server should send this request every 5 minutes as a confirmation
of uptime or when the list of available numbers is changed
(when new numbers are added or previously passed ones are removed).
Content-Type:
application/jsonBodyobject
numbersobject[]
teststring
Testing parameter. Allowed values are test1, test2.
While being assigned, test1 value will allow the request
to be passed, however the data won’t be saved by our server
(the function will not be executed by this request).
While being assigned, test2 value will print out your
request’s payload in response.
Enum:
test1test2Responses
200
Onlinesim server response
400
Bad Request
Code Samples
No code samples available