https://{ourserver.com}/api/resellers/takeOffNumbersGET /api/resellers/takeOffNumbers
Get information about numbers income
This request is optional, and you can skip this part. It returns
income information of your online numbers, this data is also available
on your personal page. It returns a list of online numbers of the
account which income is greater than the specified sum
parameter value.
This request can be used to quickly obtain information on what online numbers has reached the desired income and can be replaced with new ones.
Parameters
query2
| Name | Type | Description |
|---|---|---|
sum | string | Filter income value, in rubles. For example: if sum = 37.5, the request will return a list of online numbers which income is equal to 37.5 RUB or more If 0 passed as a value, the server returns a list of all online numbers of the account. Default: 50 |
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
listobject[]
itemsobject
Examples
Example response of Onlinesim server for takeOffNumbers request
{
"response": 1,
"list": [
{
"id": "40516575",
"number": "2203830000",
"sum": "75.76",
"country": "220"
},
{
"id": "40516576",
"number": "2203830001",
"sum": "58.76",
"country": "220"
}
]
}[
{
"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
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