Customers
Delete address
Remove an address that no open order uses.
DELETE
/v1/customers/{customerId}/addresses/{addressId}Bearer tokenReturns JSONSuccess 200
An address still used by an order that is not yet delivered, returned or cancelled cannot be removed (conflict).
Request
Headers
| Field | Type | Description |
|---|---|---|
Authorizationrequired | string | The access token from Get token, as "Bearer <token>". |
Path parameters
| Field | Type | Description |
|---|---|---|
customerIdrequired | string | The customer's id. |
addressIdrequired | string | The address's id, from List addresses. |
Example request
curl -X DELETE "https://api.swiftazu.com/v1/customers/8778df1e-9b74-420d-b826-d17cdad86d36/addresses/0df7f36c-417a-4145-b956-743f66c4f9b7" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Response
Example response · 200
{
"status": "ok"
}Errors
| HTTP | Code | Meaning |
|---|---|---|
| 404 | not_found | The record does not exist, or it is not yours. |
| 409 | conflict | The change clashes with existing data. message says how. |
Every call can also return the shared errors listed on the Overview page. Overview