Skip to content

Card tokenization events
Webhook

Request

Sent as the customer completes, or fails to complete, the hosted card page, and when you delete the stored card.

  • card_request.card_saved: sent only when the customer's bank asks for a 3-D Secure check while the card is saved. Most cards skip that check, so you may not receive it; do not wait for it. The card cannot be charged until card_request.succeeded.
  • card_request.succeeded: the customer confirmed the micro-charge amount. payload.card.token is the card token to charge with.
  • card_request.failed: the card could not be saved, or the micro-charge amount was wrong three times. The request is closed; open a new one.
  • card_request.card_deleted: DELETE /cards/{token} deleted the stored card. payload.card is the card as it was just before the delete; its token can no longer be charged.

The payloads differ by event; see the examples.

Headers
X-Dime-Signaturestringrequired

v1= followed by the hex HMAC-SHA256 of the raw body, keyed with the endpoint's signing_secret.

Example:v1=5f2b8c0e9a7d4c1b3e6f8a2d4c6e8b0a1c3e5f7a9b2d4f6a8c0e2b4d6f8a0c2e
X-Dime-Signature-Versionstringrequired

Signing scheme. Always v1.

Example:v1
Value:"v1"
X-Dime-Event-Idstringrequired

The body's event_id.

Example:evt_V1StGXR8Z5jdHi6BmyT2
X-Dime-Event-Typestringrequired

The body's event_type.

Example:payment.succeeded
X-Dime-Attemptstringrequired

The attempt number, 1 for the first and up to 9 with retries.

Example:1
Bodyapplication/jsonrequired
event_idstringrequired

Unique per event, and the same on every redelivery and replay of it. Use it to discard duplicates.

Example:"evt_V1StGXR8Z5jdHi6BmyT2"
event_typestringrequired

What happened. Branch on this, and ignore values you do not recognise: new events may be added.

Enum:"card_request.card_saved""card_request.succeeded""card_request.failed""card_request.card_deleted"
Example:"card_request.succeeded"
occurred_atstring, (date-time)required

When Dime sent the event. Events can arrive out of order; use this to order them.

Example:"2026-10-27T15:04:07.112Z"
owner_typestringrequired
Example:"merchant"
Value:"merchant"
owner_idstring or nullrequired

Your merchant token.

Example:"m82yalYupLIdpAz"
addon_subscription_idnull

Always null.

Example:null
resource_typestringrequired
Enum:"payment""refund""chargeback""customer""card_request""subscription""invoice""order""bank_transfer""bank_account"
Example:"card_request"
Value:"card_request"
resource_idstring or nullrequired

The token of the record the event is about: a transaction's for payment and refund, otherwise the token of the kind named by resource_type.

Example:"txn_20261027_PBFpP02"
payloadobjectrequired

Differs by event: the saved card's fields on card_saved, a card object on succeeded and card_deleted, and the tokenization request's token and state on failed.

signature_versionstringrequired
Example:"v1"
Value:"v1"
POST
cardRequestEvent
Payload
{ "event_id": "evt_c4Rd5aV3dQx8LmN2pK7t", "event_type": "card_request.card_saved", "occurred_at": "2026-10-27T15:01:44.118Z", "owner_type": "merchant", "owner_id": "m82yalYupLIdpAz", "addon_subscription_id": null, "resource_type": "card_request", "resource_id": "crq_lnM3xzwx_nFcWA9XR_bVWBl76P_slIlKTM", "payload": { "token": "crd_lYW5MOH2_omvDipze_0iG9s67K_hUwjeHr", "card_request_token": "crq_lnM3xzwx_nFcWA9XR_bVWBl76P_slIlKTM", "reference_id": "your-reference-1024", "card_expiry": "12/29", "card_scheme": "visa", "currency": "USD", "last_four_digits": "4242", "metadata": { … } }, "signature_version": "v1" }

Responses

Return any 2xx within 7 seconds to acknowledge. Otherwise Dime retries automatically for about 3 days; see Webhooks guide. Replay a delivery sooner, or after it has FAILED, with POST /webhook-events/{token}/replay.