Get the Reseller's Manager by ID

The Get the Reseller's Manager by ID method returns Manager's details by the given Manager ID of the current Reseller or any of its downstream Resellers.

Access to the current Reseller and downstream Resellers is determined by the Manager's token in the API request.

GET {base_url}/api/v3/resellers/{reseller_id}/managers/{manager_id}

Arguments

Name

Parameter Type

Data type

Required/ Optional

Description

X-Api-TokenheaderstringRequiredAPI token of the Manager that performs the operation (see Viewing and updating manager's information)
Content-TypeheaderstringRequiredIndicates the media type (text/html or text/JSON) of the request that is sent to the server by the client (browser)
AcceptheaderstringRequiredInformation about data types that the client (browser) supports
reseller_idpathintegerRequiredID of the current Reseller or any of its downstream Resellers (see Viewing and updating reseller general information)
manager_idpathintegerRequiredID of the Manager

Response model

Name

Data type

Description

dataarrayResponse data


id

integerID of the Manager

typestringData type

attributesintegerInformation about the Manager


created_at

dateDate and time of the Manager creation


updated_at

dateDate and time when the Manager was updated


reseller_idintegerID of the Manager's Reseller


namestringManager's name


statusstring

Status of the Manager:

  • Active — access to the Operator Control Panel is allowed
  • Inactive — access to the Operator Control Panel is blocked


emailstringManager's email which is used as a login to the Operator Control Panel


rolestringManager's role (for the list of roles, see Managers' roles)


phonestring

Manager's phone number:

  • + < country code > < city code or network code > < phone number >
  • 00 < country code > < city code or network code > < phone number >


photostringLink to the file of the Manager's photo


manager_keystringUnique Manager's key


custom_attributesobject

Manager's Attributes (see Viewing the list of attributes)




['custom_attribute_key']stringManager's Attribute value for the specified Attribute key

Request example

GET /api/v3/resellers/1/managers/431
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json

Response example

{
    "data": {
        "id": "431",
        "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": 1,
            "name": "Brendon Leannon",
            "status": "active",
            "email": "carter81@example.net",
            "role": "admin",
            "phone": "+375290000000",
            "photo": "/images/manager/431/manager.png",
			"manager_key": "",
            "custom_attributes": {
                "manager_1c_identifier": "20"
            }
        }
    }
}