api:mvno:account:getcfwd
Table of Contents
API : Get call forward settings
Introduction
This request will retrieve the call-forward settings from the mobile network, if the network is TDC.
Request
| URL | https://api.telecomx.dk/mvno/ACCOUNT_ID/callforward | |
|---|---|---|
| Method | GET | |
| Access level | VIEWER, MANAGER, OWNER if user belongs to the customer RESELLER if customer belongs to the reseller RESELLER_ADMIN or ADMIN |
|
Query example
https://api.telecomx.dk/mvno/123456789123456789123456/callforward
Response
An array of objects each as described below.
| JSON object | ||
|---|---|---|
| unconditional.enabled | Boolean | True if unconditional forward is enabled. |
| unconditional.number | String | The number that is unconditionally forwarded to, E.164 format. |
| offline.enabled | Boolean | True if forward when offline is enabled. |
| offline.number | String | The number that is forwarded to when the phone is offline, E.164 format. |
| busy.enabled | Boolean | True if forward on busy is enabled. |
| busy.number | String | The number that is forwarded to when busy, E.164 format. |
| noAnswer.enabled | Boolean | True if forward when no answer is enabled. |
| noAnswer.number | String | The number that is forwarded to when no answer, E.164 format. |
Example
{ unconditional: { enabled: false, number: '' }, offline: { enabled: false, number: '' }, busy: { enabled: true, number: '+4571919999' }, noAnswer: { enabled: true, number: '+4571919999' timeout: 20 } }
Errors
| Error code | Message | Description |
|---|---|---|
| 400 | network | Wrong network, this API is only available for phones on the TDC network. |
| 403 | access_denied | Insufficient access level |
| 404 | not_found | Account not found |
| 409 | timeout | No response from mobile network |
api/mvno/account/getcfwd.txt · Last modified: 2023/06/26 09:02 by Per Møller