Skip to content

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

NameTypeDescription
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/json
Bodyobject

Payload schema

numberstringRequired

Number in international format (with + sign)

Example:+4695000051
country_idintegerRequired

Country code (according to Е.164 standard, without + sign)

≥ 1
Example:46
port_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:Port1
rentintegerRequired

Rent mode for this number:

1 - enabled,

0 - disabled

Enum:01
Example:0
operatorinteger

MCC + MNC operator code (first 5 digits of IMSI)

Example:24012
date_startinteger

Date and time of placement (UNIX timestamp)

Example:1658209063

Responses

200

Onlinesim server response

400

Bad Request

Code Samples