api:customer:resellergroups
Table of Contents
API : Reseller Groups
Introduction
This request returns a list of the customer groups that can be applied to a customer.
Request
| URL | https://api.telecomx.dk/customer/CUSTOMER_ID/resellergroups | |
|---|---|---|
| Method | GET | |
| Access level | VIEWER, MANAGER, OWNER, RESELLER, RESELLER_ADMIN or ADMIN. | |
| Param | CUSTOMER_ID | Id of the customer (24 hex-char string) |
Query example
https://api.telecomx.dk/customer/1234567890ABCDEF12345678/resellergroups
Response
| JSON array of objects, where each object contains: | ||
|---|---|---|
| _id | Id | Unique id of the group |
| name | String | Name of the group |
Example
[ { "_id": "650000000000000000000501", "name": "Business customers" }, { "_id": "650000000000000000000502", "name": "Private customers" } ]
Errors
| Error code | Message | Description |
|---|---|---|
| 422 | id | Customer id is invalid |
| 404 | id | Customer not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/customer/resellergroups.txt · Last modified: by Mikkel Meerwaldt Jørgensen