api:pbx:app:reseller
Table of Contents
API : PBX : APP : Reseller Info
Introduction
This request is invoked by app users to get info on the reseller they belongs to.
Request
| URL | https://api.telecomx.dk/pbx/app/reseller | ||
|---|---|---|---|
| Method | POST | ||
| Access level | PERSONAL, VIEWER, MANAGER, OWNER, RESELLER, ADMIN. | ||
Request example
https://api.telecomx.dk/pbx/app/reseller
Response
| Json object | ||
|---|---|---|
| _id | Id | Id of reseller |
| name | String | Name |
| phoneNumber | String | Phone number |
| faxNumber | String | Fax number |
| emailAddress | String | Email address |
| website | String | Website URL |
| resellerPortal | String | URL for the administration portal of the reseller |
| address.address | String | Street |
| address.zip | String | ZIP code |
| address.city | String | City |
| address.country | String | Country code - ISO3166-2 |
| address.state | String | State, if available |
| address.municipalityCode | Number | Danish municipality code |
| address.alternativeName | String | Alternative name for the address, if available. |
Example
{ "_id": "52f4fd7734697b28ccaf77ec", "name": "PowerNet ApS", "phoneNumber": "70223235", "faxNumber": null, "emailAddress": "info@powernet.dk", "website": "www.powernet.dk", "resellerPortal": "https://powernet.telecomx.dk", "address": { "address": "Vallensbækvej 20A, 3. th.", "zip": "2605", "city": "Brøndby", "country": "DK", "municipalityCode": 153, "alternativeName": "Powernet ApS København" } }
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/pbx/app/reseller.txt · Last modified: 2019/11/14 14:03 by Per Møller