Customers

Anonymize customer

Removes a customer's personal data but keeps the customer and their orders for your records. Name, email, phone, notes and tax ID are redacted on the customer, its invoices and checkouts; their form submissions, bookings, calls, reviews, support chats and the emails they exchanged with you are deleted. Use it for customers with orders, who cannot be deleted. Immediate and permanent; anonymized is true afterwards.

post/customers/{id}/anonymize

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/customers/{id}/anonymize
  • Auth: API key in header Authorization

Path parameters

idstring required

The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")

Headers

Idempotency-Keystring

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Response

Customer anonymized

idstring required
objectstring required
emailstring required
namestring nullable required
first_namestring nullable required
last_namestring nullable required
phone_numberstring nullable required
customer_type'paid' | 'free' | 'lead' required
notesstring nullable required
confirmed_atstring date-time nullable required
created_atstring date-time required
updated_atstring date-time required
deleted_atstring date-time nullable required
purge_atstring nullable required
anonymizedboolean required
metadataobject required
orders_countinteger required
total_spendnumber required

Changes

No recorded changes to this operation across all 2 revisions of this API.