api:customer:get-nationalprefix
Table of Contents
API : Customer Get national prefix
Introduction
This request will return the the national prefix of the customers homeland - if specified.
This is part of the hosted PBX settings for the customer, and is primarily used for cutting the national prefix in UI for improved readability of phone numbers (eg. +4570305050 → 70305050 if prefix is +45).
Request
| URL | https://api.telecomx.dk/customer/CUSTOMER_ID/nationalprefix | |
|---|---|---|
| Method | GET | |
| Access level | VIEWER, MANAGER or OWNER if user belongs to the customer. RESELLER if customer belongs to the reseller. ADMIN. |
|
| Param | CUSTOMER_ID | Id of the customer (24 hex-char string) |
Query example
https://api.telecomx.dk/customer/1234567890ABCDEF12345678/nationalPrefix
Response
| Json object | ||
|---|---|---|
| _id | Id | Unique customer id |
| nationalPrefix | String | National prefix, e.g. +45. |
Example
{ _id: '52f4fd7734697b28ccaf77ec', nationalPrefix: '+45', }
Errors
| Error code | Message | Description |
|---|---|---|
| 404 | customer | Customer not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/customer/get-nationalprefix.txt · Last modified: 2016/02/05 10:52 by Per Møller