Skip to main content
DELETE
Archive a card template (soft delete)

Authorizations

Authorization
string
header
required

Your secret API key as a Bearer token: Authorization: Bearer vxn_sk_.... Keys are created and scoped in the dashboard - see Authentication.

Headers

Idempotency-Key
string

Recommended on PATCH and DELETE for safe retries.

Maximum string length: 255
Accept-Language
enum<string>
default:sk

Preferred language for error messages and localized fields. One of sk, cs, en, de. Defaults to card's default_language.

Available options:
sk,
cs,
en,
de

Path Parameters

id
string
required

Card template identifier. Opaque, server-issued token, e.g. crd_c4zdlocdwajf6wtmnvvkonv4oa.

Pattern: ^crd_[A-Za-z0-9]+$

Query Parameters

gdpr
boolean
default:false

If true, permanently anonymizes all enrolled customer PII for this card (GDPR right-to-be-forgotten). Default false (soft archive).

Response

Card deleted.

id
string
required

The archived card id. Duplicated as card_id for symmetry with other deletion-confirmation envelopes.

object
enum<string>
required
Available options:
card
deleted
boolean
required
deletion_type
enum<string>
required

archived for a plain soft archive, gdpr_redacted when ?gdpr=true also anonymized every enrolled customer.

Available options:
archived,
gdpr_redacted
archived_at
integer | null
required

Unix seconds when the card was first archived. Preserved (not restamped) on a repeat archive.

card_id
string
required
status
enum<string>
required
Available options:
archived
enrolled_customers_count
integer

Holders enrolled at the moment of archive. Returned only when gdpr is false or omitted.

gdpr_redacted_customers_count
integer

Customers irreversibly anonymized by this call. Returned only when gdpr=true.