This request will cancel an Internet account. The account will terminate when the termination date has has been reached.
Non-admin users may request termination on a given date. The actual date will be set by an admin when the cancellation has been ordered.
| URL | https://api.telecomx.dk/internet/account/REQUEST_ID | |
|---|---|---|
| Method | DELETE | |
| Access level | MANAGER, OWNER if user belongs to the customer. RESELLER if customer belongs to the reseller or a sub reseller. ADMIN. |
|
| Params | REQUEST_ID | Id of the Internet account to delete. |
| Query | date | If non-ADMIN: Date on which the account should terminate. If ADMIN: Date on which the account will terminate. |
| force | [optional] If true, the account is deleted immediately. Should only be used to fix problems. (ADMIN only). |
|
| cancel | [optional] If true, the pending termination is cancelled (ADMIN only). |
|
https://api.telecomx.dk/internet/request/12345678901234567890AAAA?date=2018-01-01 https://api.telecomx.dk/internet/request/12345678901234567890AAAA?force=true https://api.telecomx.dk/internet/request/12345678901234567890AAAA?cancel=true
| JSON object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 409 | changeRequest | Cannot terminate while there is a pending change request |
| 409 | terminationDate | Termination date does not honor commitment |
| 404 | not_found | Internet account not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |