post addNumber
https://{ourserver.com}/api/resellers/addNumber
IMPORTANT NOTE! 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.
IMPORTANT NOTE! Enabling
rent
parameter (by assigning value1
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.
Servers
https://{ourserver.com}
Parameters
Request Body
- Schema
- Examples
- objectPayload schemaExample:
{"number":"+4695000051","country_id":46,"port_id":"Port1","rent":0,"operator":24012,"date_start":1658209063}
Properties:number
stringRequiredNumber in international format (with
+
sign)Example:"+4695000051"
country_id
integerRequiredCountry code (according to Е.164 standard, without
+
sign)Example:46
>= 1
port_id
stringUnique 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)Example:"Port1"
Maximum number of items:100
rent
integerRequiredRent mode for this number:
1
- enabled,0
- disabledExample:0
Enum:0
1
operator
integerMCC + MNC operator code (first 5 digits of IMSI)Example:24012
date_start
integerDate and time of placement (UNIX timestamp)Example:1658209063
Responses
200
- Schema
- Examples
- objectExample:
{"response":1,"ids":{"#number#":0}}
Properties:response
mixed1, if request was successful, otherwise error message will come upExample:1
One Of:- stringExample:
"string"
- integerExample:
0
ids
objectExample:{"#number#":0}
400
- Schema
- Examples
- stringExample:
"string"