Deactivate a customer (reversible)
Takes one customer OUT OF CIRCULATION without changing a single field of their data. They stop appearing in the till picker, customer search, clienteling and segmentation, while their name, contact details, loyalty balance and entire purchase history stay intact and still resolve by id — so every past sale keeps rendering the buyer it was made to. Fully reversible with reactivateCustomer. THIS IS NOT AN ERASURE: it removes nobody’s personal data and must never be used to answer a GDPR erasure request — use eraseCustomerData for that. Idempotent. 409 when the customer has already been anonymized (that standing is terminal, so there is nothing left to take out of circulation), 404 for an unknown id.
Authorizations
Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.
Path Parameters
The customer id to act on, e.g. cust-1 (client Customer.id).
1Response
The new standing: deactivated, stamped with the instant it took effect.
The new standing: deactivated, stamped with the instant it took effect.
active, deactivated, anonymized ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
