API : Customer Resellers
Introduction
This request is called by a reseller to return the list of resellers (including the reseller self) that the user may use when setting the parentReseller property on a customer. If the user is an ADMIN, all resellers will be returned.
Request
| URL | https://api.telecomx.dk/customer/resellers/list |
| Method | GET |
| Access level | RESELLER, RESELLER_ADMIN or ADMIN. |
| iptv | Boolean | [optional] True if resellers must also be a provider of IPTV (RESELLER_ADMIN and up only). |
| iptvprivate | Boolean | [optional] True if resellers must also be a provider of IPTV (RESELLER_ADMIN and up only). |
| flexcare | Boolean | [optiona]] True if resellers must also be a provider of Flexcare (RESELLER_ADMIN and up only). |
| voip | Boolean | [optional] True if resellers must be a provider of SIP and MVNO (RESELLER_ADMIN and up only). |
Remark: Only the first true property will be used, the rest will be ignored.
Query example
https://api.telecomx.dk/customer/resellers/list
https://api.telecomx.dk/customer/resellers/list?iptv=true
https://api.telecomx.dk/customer/resellers/list?voip=true
Response
| Json array of objects, where each object contains: |
| _id | Id | Unique reseller (customer) id |
| name | String | Name of the reseller (customer) |
| Integrations |
| integrations | Object | Contains information about 3rd party integrations - only contains e-conomic for now |
| integrations.billing | Object | Contains billing integrations |
| integrations.billing.economic | Object | Integration for visma e-conomic |
| integrations.billing.economic.enabled | Boolean | True if the integration is enabled, default false. |
Example
[
{
_id: '52f4fd7734697b28ccaf77ec',
name: 'Anders And & Co',
integrations: {
billing: {
economic: {
enabled: true
}
}
}
},
{
_id: '1234567890ABCDEF12345678',
name: 'Northwind Industries H.M.B.G',
integrations: {
billing: {
economic: {
enabled: true
}
}
}
},
]
Errors
| Error code | Message | Description |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |