Z Zise Developers 简体中文

card.withdraw.completed

Card funds returned to the member wallet

When Emitted

Emitted when funds from POST /v1/cards/{id}/withdrawals have returned from the card to the wallet and the ledger is settled. A shared-limit card may already be completed at 201, but this event is still sent. 201 does not mean there will be no event; rely on this event or retrieve the card balance again. Automatic returns caused by card closure also emit it. ⚠ This is unrelated to withdrawal.order.completed, which covers member-initiated on-chain withdrawals. data.id is the bare UUID of the card withdrawal; the public API response uses cwd_<uuid>. There is no single-order retrieval endpoint. Use the card ID with GET /v1/cards/crd_<id> to check the balance.

Payload

{
  "event_id": "evt_9c2e1b4a7d854f0a8b3c6e1d4f7a90b2",
  "event_type": "card.withdraw.completed",
  "created_at": "2026-09-09T03:56:58Z",
  "merchant_id": "acme",
  "livemode": true,
  "data": {
    "object": "card_withdrawal",
    "id": "c0d94014-40c5-4222-8d6b-795bb5c6f1f2",
    "external_member_id": "u_88123",
    "status": "completed",
    "status_version": 2
  }
}

Payload Fields

FieldTypeDescription
idstringUse this for deduplication. evt_… remains unchanged when the same event is redelivered.
typestringAlways card.withdraw.completed
created_atstringTime the event was created (RFC3339), not its delivery time. It is unchanged on redelivery.
data.objectstringObject type; determines which endpoint to query with data.id
data.idstringObject ID; use it to retrieve details.
data.statusstringTreat unrecognized values as unknown and raise an alert; do not fall back to “processing”
data.status_versionnumberMonotonically increasing; use it to discard older states that arrive late.

Signature Verification and Deduplication

Verify the signature against the raw request body bytes. Do not parse and reserialize the JSON: your JSON library may change key order or whitespace, which changes the signature and can look like a key configuration error.

// Node · Run before parsing JSON
const raw = await readRawBody(req);            // Buffer / string; do not use parsed req.body
const expect = crypto.createHmac("sha256", WEBHOOK_SECRET).update(raw).digest("hex");
const got = req.headers["z-signature"];        // Format: t=<unix>,v1=<hex>
if (!timingSafeEqual(expect, parseV1(got))) return res.status(400).end();

// Deduplicate using the envelope id, not data.id
if (await seen(JSON.parse(raw).id)) return res.status(200).end();

For the full procedure, including timestamp tolerance and redelivery semantics, see Webhook Guide.