This request will delete the specified customer.
A customer can only be deleted if the customer has no products or services in active use. Deleting the customer also deleted the employees that belongs to the customer.
| URL | https://api.telecomx.dk/customer/CUSTOMER_ID | |
|---|---|---|
| Method | DELETE | |
| Access level | RESELLER if customer belongs to the reseller and ADMIN | |
| Param | CUSTOMER_ID | Id of the customer (24 hex-char string) |
DELETE https://api.telecomx.dk/customer/1234567890ABCDEF12345678
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 400 | bad_request | Customer id not found in request URI |
| 403 | access_denied | Insufficient access level |
| 404 | customer | Customer not found |
| 409 | customer | Customer cannot be deleted |
| 409 | voice_accounts | Cannot delete customer because of active SIP or MVNO accounts |
| 409 | dsl | Cannot delete customer because of active DSL accounts |
| 409 | fiber | Cannot delete customer because of active Fiber accounts |
| 409 | currentinvoice | Cannot delete customer because of current invoice items |
| 409 | customer | Only Mister Møller may delete a reseller |
| 500 | internal_error | <Unspecified> |