Contacts

Anonymize contact

Changed on

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

post/contacts/{id}/anonymize

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Headers

Idempotency-Key, string

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

Contact anonymized

Contact required
id, string required
object, string required
email, string required
name, string nullable required
first_name, string nullable required
last_name, string nullable required
phone_number, string nullable required
company, string nullable required
lifecycle, 'lead' | 'customer' required
became_customer_at, string date-time nullable required
notes, string nullable required
confirmed_at, string date-time nullable required
created_at, string date-time required
updated_at, string date-time required
deleted_at, string date-time nullable required
purge_at, string nullable required
subscribed, boolean
anonymized, boolean required
metadata, object required
orders_count, integer required

Live orders that went through: refunded ones count, while pending, failed and test-mode orders don't.

total_spend, integer required

Lifetime spend in the smallest unit of the account's currency, net of refunds. Test-mode orders and disputed charges are left out.

tags, unknown[] required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    2 more changes in this revision