Archive a card template (soft delete)
Archive a card template (soft delete). Existing customers enrolled in the card keep their wallet passes and continue to earn/redeem; the card is removed from the public catalog and POST /v1/customers with this card_id returns 404. To permanently delete with GDPR right-to-be-forgotten (PII anonymization for enrolled customers), include ?gdpr=true. Returns 409 (code card_has_active_customers) if you pass gdpr=true against a card that is still ACTIVE and has enrolled customers: the irreversible PII cascade is gated behind archive-first. Archive the card (a plain DELETE, which is safe - enrolled customers keep their passes and keep earning), migrate customers as needed, then retry with gdpr=true against the archived card. Side effect: fires card.deleted webhook event with deletion_type (‘archived’ or ‘gdpr_redacted’). Archiving is idempotent: calling DELETE again on an already-archived card returns 200 with the same envelope (deletion_type and archived_at unchanged, and enrolled_customers_count not re-counted), never 404.
Authorizations
Your secret API key as a Bearer token: Authorization: Bearer vxn_sk_.... Keys are created and scoped in the dashboard - see Authentication.
Headers
Recommended on PATCH and DELETE for safe retries.
255Preferred language for error messages and localized fields. One of sk, cs, en, de. Defaults to card's default_language.
sk, cs, en, de Path Parameters
Card template identifier. Opaque, server-issued token, e.g. crd_c4zdlocdwajf6wtmnvvkonv4oa.
^crd_[A-Za-z0-9]+$Query Parameters
If true, permanently anonymizes all enrolled customer PII for this card (GDPR right-to-be-forgotten). Default false (soft archive).
Response
Card deleted.
The archived card id. Duplicated as card_id for symmetry with other deletion-confirmation envelopes.
card archived for a plain soft archive, gdpr_redacted when ?gdpr=true also anonymized every enrolled customer.
archived, gdpr_redacted Unix seconds when the card was first archived. Preserved (not restamped) on a repeat archive.
archived Holders enrolled at the moment of archive. Returned only when gdpr is false or omitted.
Customers irreversibly anonymized by this call. Returned only when gdpr=true.