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 or a sub reseller. RESELLER_ADMIN. 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 |
|---|---|---|
| 422 | customer | Customer id is invalid |
| 422 | id | Address id is invalid |
| 404 | not_found | Customer not found |
| 404 | address | Address not found |
| 409 | address | Addresses in use, cannot be deleted |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/customer/address-delete.txt · Last modified: by Mikkel Meerwaldt Jørgensen