post
https://{ourserver.com}/api/resellers/addNumbersPOST /api/resellers/addNumbers
Add multiple phone numbers to the existing list
This request allows you to add new numbers the list of existing ones to the Onlinesim server in bulk.
Parameters
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Request Body
Content-Type
application/jsonSchema
Bodyobject
Bodyobject
numbersobject[]
numbersobject[]
itemsobject
itemsobject
numberstring
country_idinteger
port_idstring
usedstring[]
usedstring[]
itemsstring
rentinteger
operatorinteger
date_startinteger
teststring
Responses
200Onlinesim server response
Onlinesim server response
Content-Type
application/jsonSchema
Responseobject
Responseobject
responseoneOf
responseoneOf
One Of
[0]string
[1]integer
idsobject
idsobject
[additionalProperties]oneOf
[additionalProperties]oneOf
One Of
[0]integer
[1]nullNullable
[2]string
Examples
Onlinesim server response example (successfuly added few numbers, others were passed with incorrect country code)
{
"response": 1,
"ids": {
"234112233445": 1042,
"234112233446": 1043,
"234112233447": "fail"
}
}Incorrect key passed
[
{
"response": "ERROR_WRONG_KEY"
}
]401Unauthorized. The request is missing or uses an invalid API key. Some endpoints may return a 200 status with an ERROR_WRONG_KEY message instead of 401 — check the response body
Unauthorized. The request is missing or uses an invalid API key. Some endpoints may return a 200 status with an ERROR_WRONG_KEY message instead of 401 — check the response body
Content-Type
text/plainSchema
Responsestring
403Forbidden. The request was understood but refused due to insufficient permissions
Forbidden. The request was understood but refused due to insufficient permissions
Content-Type
application/jsonSchema
Responseobject
Responseobject
errorobjectRequired
errorobjectRequired
statusinteger
codestring
messagestring
messagestringRequired
detailsobject[]Required
detailsobject[]Required
itemsobject
Code Samples
Generating examples...