https://{ourserver.com}/api/resellers/removeNumberDELETE /api/resellers/removeNumber
Remove phone number from Onlinesim server list
This request allows to delete specific numbers from the list of your current numbers. Please note, that either the phone number in international format or its ID, specified when it was added, must be passed in the request. Simultaneous passing of both parameters is not allowed.
You can use it instead of sendNumbersOnline request to modify the list of numbers precisely, by deleting the numbers that are on the list.
Parameters
query3
| Name | Type | Description |
|---|---|---|
number | string | Phone number in international format (including country code). Required if |
id | integer | ID of the phone number, specified when it was added. Required if |
test | string | Optional field for the request body of Reseller API v2. Allowed values are While being assigned, While being assigned, Can be passed as query parameter (for GET) or as a field in request's body (for POST). Both ways are equivalent, but using them simultaneously is not recommended. Enum: test1test2 |
header1
| Name | Type | Description |
|---|---|---|
Authorization* | string | see more here |
Responses
200Onlinesim server response
Onlinesim server response
application/jsonResponseobject
responseoneOf
Examples
{
"response": "1"
}{
"response": "0"
}[
{
"response": "ERROR_WRONG_KEY"
}
]400Missing or incorred parameters (request must contain parameters in it's body with proper names as described in documentation)
Missing or incorred parameters (request must contain parameters in it's body with proper names as described in documentation)
application/jsonResponseobject
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
text/plain403Forbidden. The request was understood but refused due to insufficient permissions
Forbidden. The request was understood but refused due to insufficient permissions
application/json