This request will delete the specified address on the customer.
An address can only be deleted if it is not used by any employees or products.
| URL | https://api.telecomx.dk/customer/CUSTOMER_ID/address/ADDRESS_ID | ||
|---|---|---|---|
| Method | DELETE | ||
| Access level | MANAGER or OWNER if user belongs to the customer. RESELLER if customer belongs to the reseller. ADMIN. |
||
| Param | CUSTOMER_ID | Id of customer | |
| ADDRESS_ID | Id of the address | ||
DELETE https://api.telecomx.dk/customer/1234567890ABCDEF12345678/address/1234567890ABCDEF12345678
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 400 | customer | Customer id not found in request URI |
| 400 | address | Address id not found in request URI |
| 403 | access_denied | Insufficient access level |
| 404 | customer | Customer not found |
| 404 | address | Address not found |
| 409 | address | Addresses in use, cannot be deleted |
| 409 | features | Customer provides IPTV and cannot be deleted |
| 409 | parentReseller | Reseller has customers that must be deleted first |
| 500 | internal_error | <Unspecified> |