Delete a customer
DELETE
/customers/{id}
Permanently erases the customer’s personal details. This cannot be undone.
-
Sets
deleted_atand scrubs PII (name, email, phone, address and the rest). -
Scrubs
customer_codetoo, replaced by adeleted+<id>placeholder, so a customer can no longer be looked up by the code you created them with. -
Bumps
versionso the tombstone reaches the next delta-sync poll. -
Sale history survives: every past sale still resolves, shown against the anonymized customer.
-
409 CONFLICT: the walk-in system customer cannot be deleted. -
404 NOT_FOUND: a foreign, unknown, or already-deleted id.
Requires scope: customers:write
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Delete a customer
Media typeapplication/json
No content.
object
Examplegenerated
{}default
Section titled “default”An error response.
Media typeapplication/json
object
error
required
object
code
required
A machine-readable error code, e.g. VALIDATION_FAILED.
string
fields
Array<object>
object
field
required
string
message
required
string
message
required
A plain-English sentence describing what went wrong.
string
Example
{ "error": { "code": "UNAUTHORIZED" }}