Delete a customer
Soft-deletes a customer. The record is retained with deleted: true
and the full customer object is returned. The customer cannot be
modified until restored. Calling delete on an already-deleted customer
returns 422.
Authorizations
A merchant secret key (sk_…) sent as Authorization: Bearer <key>.
Headers
A unique key that makes retries safe: the same key with the same request body returns the original response instead of repeating the operation.
255Path Parameters
The customer id (cus_…).
Response
The deleted customer, with deleted: true.
Unique customer identifier (cus_…).
customer Whether this customer was created with a live (true) or test (false) key.
Empty string when not set.
Empty string when not set.
Empty string when not set.
Billing address; null when not set.
Shipping details; null when not set.
How the customer was created (for example api).
api, checkout, import, dashboard, platform Payment configuration stored for the customer.
True when the customer has been soft-deleted.
Unix epoch seconds.

