Skip to content
Navigation

Erase the personal data of a customer, by e-mail (Idempotency-Key required)

POST
/v1/customers/erasure

Needs the scope customers:erase. Every payment of the company made with customerEmail, and every payment of their series (renewals, charges of the saved card), loses its customer data at once, with the IP address and the browser data of these payments and of their sessions; the card tokens of these series are revoked (never charged again). Answers the numbers of payments erased and card tokens revoked. What stays: the keyed hash of the e-mail on the payments, the marks of the blocklist (540 days), amounts and references (refunds stay possible). What was erased never comes back; a later charge of the customer needs a new first payment. Audited without the e-mail; no webhook. A test key erases test payments only, a key of one site the payments of that site only.

Authorization

  • cmsHmac
    API key in header
    required

    Authorization: <token>

Header parameters

  • Idempotency-Key
    string
    required

    Mandatory on every POST. Same key and same request: the stored answer is replayed (Idempotent-Replayed: true); another request: IDEMPOTENCY_KEY_REUSED; still running: IDEMPOTENCY_IN_PROGRESS (409, Retry-After).

    pattern: ^(?!alert:|external:)[A-Za-z0-9_.:-]{8,255}$
  • Api-Version
    optional
    2026-11-18

    Version of the API: absent, the current version answers; an unknown value is refused (API_VERSION_UNSUPPORTED, 400). Every other answer gives the version that produced it.

    default: "2026-11-18"

Request body JSON required

  • customerEmail
    string
    required

    E-mail of the customer whose data are erased.

    maxLength: 254
  • actor
    object
    required
    • type
      engine_user
      or
      mcp_agent
      or
      system
      required
    • id
      string
      required
      pattern: ^[A-Za-z0-9_.:@-]{1,128}$
    • label
      optional
      string
      maxLength: 200 · minLength: 1 · pattern: ^[^\p{Cc}]*$

Returns

200

Default Response

JSON
  • paymentsErased
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • cardTokensRevoked
    integer
    required
    maximum: 9007199254740991 · minimum: 0

default

Problem: the stable code is in code, see x-error-catalog.

JSON
  • type
    string
    required
  • title
    string
    required
  • status
    integer
    required
    maximum: 599 · minimum: 400
  • code
    string
    ·
    one of 81 values
    required
    Allowed values: AMOUNT_LIMIT_EXCEEDED, AMOUNT_MISMATCH, API_VERSION_UNSUPPORTED, AUTH_IP_NOT_ALLOWED, AUTH_KEY_INVALID, AUTH_MALFORMED, AUTH_NONCE_REPLAYED, AUTH_SCOPE_FORBIDDEN, AUTH_SIGNATURE_INVALID, AUTH_TIMESTAMP_OUT_OF_WINDOW, BAD_REQUEST, CAMPAIGN_MISMATCH, CARD_BRAND_UNSUPPORTED, CARD_CVC_INVALID, CARD_EXPIRED, CARD_EXPIRY_INVALID, CARD_HOLDER_INVALID, CARD_NOT_ACCEPTED, CARD_NUMBER_INVALID, CARD_REF_INVALID, CARD_REF_USED, CARD_TOKEN_REVOKED, CARD_VERIFICATION_NOT_AVAILABLE, CONFLICT, CONNECTOR_ACCOUNT_MISMATCH, CONNECTOR_AUTH_FAILED, CONNECTOR_CAPABILITY_MISSING, CONNECTOR_DISABLED, CONNECTOR_ERROR, CONNECTOR_UNAVAILABLE, CUSTOMER_DATA_REQUIRED, IDEMPOTENCY_IN_PROGRESS, IDEMPOTENCY_KEY_INVALID, IDEMPOTENCY_KEY_MISSING, IDEMPOTENCY_KEY_REUSED, INTERNAL_ERROR, LIVE_MODE_DISABLED, METHOD_NOT_ALLOWED, MID_PAUSED, MID_TRANSFER_NOT_POSSIBLE, NOT_FOUND, ORIGIN_NOT_ALLOWED, PAGE_CARD_ENTRY_DISABLED, PAYLOAD_TOO_LARGE, PAYMENT_INVALID_STATE, PAYMENT_IN_PROGRESS, PAYMENT_METHOD_NOT_ALLOWED, POST_PURCHASE_LIMIT_REACHED, POST_PURCHASE_STEP_DONE, POST_PURCHASE_TOKEN_INVALID, POST_PURCHASE_WINDOW_CLOSED, PROCESSOR_NOT_ENABLED, RATE_LIMITED, REFUND_EXCEEDS_CAPTURED, REFUND_NOT_SUPPORTED, RENEWAL_ALREADY_PAID, RENEWAL_RETRY_NOT_ALLOWED, RENEWAL_RETRY_TOO_EARLY, REQUEST_ORIGIN_FORBIDDEN, RISK_VELOCITY_LIMIT, SANDBOX_ONLY, SERVER_CARD_ENTRY_DISABLED, SERVICE_UNAVAILABLE, SESSION_EXPIRED, SESSION_INVALID_STATE, SESSION_LIMIT_REACHED, SESSION_SECRET_INVALID, SITE_DISABLED, SITE_UNKNOWN, TEST_CARD_REQUIRED, TEST_KEY_LIVE_REQUEST, UNSUPPORTED_CURRENCY, UNSUPPORTED_MEDIA_TYPE, VALIDATION_FAILED, VOID_NOT_SUPPORTED, WALLET_AMOUNT_MISMATCH, WALLET_MERCHANT_VALIDATION_FAILED, WALLET_NOT_AVAILABLE, WALLET_TOKEN_INVALID, WEBHOOK_URL_NOT_ALLOWED, ZERO_AMOUNT_REQUIRES_AUTHORIZE_ONLY
  • requestId
    string
    required
  • retryable
    boolean
    required
  • detail
    optional
    string
  • errors
    optional
    array of
    object
    • path
      string
      required
    • code
      string
      required
    • message
      string
      required

Type to search…

↑↓ navigate↵ selectEsc close