api:customer:address-delete
Table of Contents
API : Customer Address Delete
Introduction
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.
Request
| 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 | ||
Query example
DELETE https://api.telecomx.dk/customer/1234567890ABCDEF12345678/address/1234567890ABCDEF12345678
Response
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
Example
{ success: true }
Errors
| 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> |
api/customer/address-delete.txt · Last modified: 2017/11/20 09:03 by Per Møller