Customers

Preview customer retention

Shows what a retention period would delete: leads (customers without an account) with no form submission, booking, call, checkout or 1:1 email in the last days days. Broadcasts don't count as contact. Leads with orders are kept and counted in exempt_count. Customers with an account are never deleted by retention. Set the period with customer_retention_days on PATCH /v1/account; a daily job then deletes matching leads, and they are permanently erased purge_after_days later.

get/customers/retention_preview

Request

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

Query parameters

daysinteger

Retention period to preview, 30 to 3650. Defaults to the account's customer_retention_days.

Response

Retention preview

object'customer_retention_preview' required
daysinteger nullable required

The period previewed; null when none was given and the account has none set.

deletable_countinteger required
exempt_countinteger required

Inactive leads kept because they have paid orders.

purge_after_daysinteger required

Changes

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