Customers

Restore customer

Brings back a deleted customer before it is permanently erased (see purge_at). Returns 409 when another customer now uses the same email address.

post/customers/{id}/restore

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/customers/{id}/restore
  • 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 restored

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.