Swiftazu

Customers

Delete customer

Remove a customer that has never been used on an order.

DELETE/v1/customers/{customerId}
Bearer tokenReturns JSONSuccess 200

A customer with any order cannot be deleted (conflict), so order history always keeps its customer.

Request

Headers

FieldTypeDescription
AuthorizationrequiredstringThe access token from Get token, as "Bearer <token>".

Path parameters

FieldTypeDescription
customerIdrequiredstringThe customer's id.
Example request
curl -X DELETE "https://api.swiftazu.com/v1/customers/8778df1e-9b74-420d-b826-d17cdad86d36" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Response

Example response · 200
{
  "status": "ok"
}

Errors

HTTPCodeMeaning
404not_foundThe record does not exist, or it is not yours.
409conflictThe change clashes with existing data. message says how.

Every call can also return the shared errors listed on the Overview page. Overview