api:customer:organizationresellers
Table of Contents
API : Customer : Organization resellers
Introduction
This request returns the list of resellers that an organization (customer with ORGANIZATION feature) employee may manage.
If the user is a RESELLER_ADMIN or ADMIN the organizations complete list is served, otherwise only the resellers the employee may access is listed.
Request
| URL | https://api.telecomx.dk/customer/oranizationresellers | |
|---|---|---|
| Method | GET | |
| Access level | RESELLER, RESELLER_ADMING or ADMIN. | |
| employee | Id | [optional] Id of employee to lookup resellers list for. Defaults to the user self. |
Query example
https://api.telecomx.dk/customer/organizationresellers https://api.telecomx.dk/customer/organizationresellers?employee=12345678901234567890ABCD
Response
Array of resellers.
| Property | Type | Description |
|---|---|---|
| _id | Id | Id of the reseller. |
| name | String | Name of the reseller. |
| features | Array | List of the features the reseller has. |
| access | Boolean | True if employee has access to the reseller. |
Example
[ { "_id": "1234567801234567890ABCD", "name": "Da company", "features": [ "CUSTOMER", "SIP", "MVNO" ], "access": true }, { ... } ]
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | employee | Employee not found |
| 500 | internal_error | <Unspecified> |
api/customer/organizationresellers.txt · Last modified: 2025/11/11 14:45 by Per Møller