post sendNumbersOnline
https://{ourserver.com}/api/resellers/sendNumbersOnlineIMPORTANT NOTE! &br; 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.
IMPORTANT NOTE! &br; 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. &br; Violation of this condition will cause the system to automatically block receiving numbers from you for 30 minutes.
IMPORTANT NOTE! &br; Enabling
rentparameter (by assigning value1to it) allows clients to rent your number for a longer period, significantly increasing your income. &br; However you need to contact partner support to get a detailed information on terms and requirements before we enable it for your account.
Servers
https://{ourserver.com}Parameters
Request Body
- Schema
- Examples
- objectExample:
{"numbers":[{"number":"+46050910804","country_id":46,"operator":24012,"date_start":1658209063,"port_id":"Port1","rent":0}],"test":"test1"}Properties:numbersarrayExample:[{"number":"+46050910804","country_id":46,"operator":24012,"date_start":1658209063,"port_id":"Port1","rent":0}]Items:- objectExample:
{"number":"+46050910804","country_id":46,"operator":24012,"date_start":1658209063,"port_id":"Port1","rent":0}
teststringTesting parameter. Allowed values are
test1,test2. &br; While being assigned,test1value 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). &br; While being assigned,test2value will print out your request's payload in response.Example:"test1"Enum:test1test2
Responses
200
- Schema
- Examples
- objectExample:
{"response":1,"ids":{"#number#":0}}Properties:responsemixed1, if request was successful, otherwise error message will come upExample:1One Of:- stringExample:
"string" - integerExample:
0
idsobjectExample:{"#number#":0}
400
- Schema
- Examples
- stringError descriptionExample:
"string"