Get list of managers of downstream resellers
The Get list of managers of downstream resellers method returns the list of managers of all downstream resellers of the current reseller or any of its downstream resellers.
An API token of a manager is required for authorization. To get an API token via the Operator Control Panel, see Viewing and updating manager's information.
The manager's API token specified in an API request determines:
- The role and access level of the manager, which determine the availability of a method.
- The current reseller and downstream resellers accessible within a method.
GET {base_url}/api/v3/resellers/{reseller_id}/child_reseller_managers
Arguments
Name | Parameter Type | Data type | Required/ Optional | Description |
---|---|---|---|---|
X-Api-Token | header | string | Required | API token of a manager that performs the operation (see Viewing and updating manager's information) |
Content-Type | header | string | Required | Media type of the request. Specify the following: application/vnd.api+json |
Accept | header | string | Required | Supported media types of the answer. Specify the following: application/vnd.api+json |
base_url | path | string | Required | ActivePlatform URL |
reseller_id | path | integer | Required | ID of the reseller (see Viewing and updating reseller general information) |
page[size] | query | integer | Optional | Page navigation: number of elements per page. The default value is 50 |
page[number] | query | integer | Optional | Page navigation: page number |
Response model
The response model is identical to Get list of managers.
Request example
GET /api/v3/resellers/1/child_reseller_managers?page[size]=2&page[number]=58
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json
Response example
{
"data": [
{
"id": "145",
"type": "managers",
"attributes": {
"created_at": "2021-01-05T05:28:48.804+03:00",
"updated_at": "2021-01-05T06:23:10.815+03:00",
"reseller_id": 134,
"name": "Brendon Leannon",
"status": "active",
"email": "carter81@example.net",
"manager_role": {
"id": null,
"name": null
},
"phone": "+375280000000",
"photo": "/images/manager/145/manager.png",
"manager_key": "testkey",
"custom_attributes": {
"manager_1c_identifier": ""
}
}
},
{
"id": "146",
"type": "managers",
"attributes": {
"created_at": "2021-01-08T21:33:32.789+03:00",
"updated_at": "2021-01-08T21:34:29.005+03:00",
"reseller_id": 135,
"name": "Trycia Corwin",
"status": "active",
"email": "tryciacorwin71@example.net",
"manager_role": {
"id": 1,
"name": "Full control"
},
"phone": "+375270000000",
"photo": "/images/manager/146/pic.jpg",
"manager_key": "",
"custom_attributes": {
"manager_1c_identifier": "20"
}
}
}
],
"links": {
"self": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_managers?page%5Bnumber%5D=58&page%5Bsize%5D=2",
"first": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_managers?page%5Bnumber%5D=1&page%5Bsize%5D=2",
"prev": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_managers?page%5Bnumber%5D=57&page%5Bsize%5D=2",
"next": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_managers?page%5Bnumber%5D=59&page%5Bsize%5D=2",
"last": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_managers?page%5Bnumber%5D=60&page%5Bsize%5D=2"
}
}