Z Zise Developers 简体中文

withdrawal.order.failed

Member-initiated on-chain withdrawal unsuccessful; all funds returned to the available balance

When Emitted

Two situations share this event: rejection during our review and upstream payout failure. The member’s next step differs completely: contact support for the former, or resubmit directly for the latter. The event body cannot distinguish them; retrieve the details to identify the case. Fees are fully refunded on failure; we do not retain them.

This event is not initiated by an API call

As above: the final outcome of a member-initiated on-chain withdrawal, not one initiated through a merchant endpoint.

Payload

{
  "event_id": "evt_0b6e3f9d82c74a15ae37d0561fb92c48",
  "event_type": "withdrawal.order.failed",
  "created_at": "2026-08-12T13:52:10Z",
  "merchant_id": "acme",
  "livemode": true,
  "data": {
    "object": "withdrawal",
    "id": "8f2a41d6-0c7b-4e39-9a15-63d0c8be7f24",
    "external_member_id": "u_88123",
    "status": "failed",
    "status_version": 3
  }
}

Payload Fields

FieldTypeDescription
idstringUse this for deduplication. evt_… remains unchanged when the same event is redelivered.
typestringAlways withdrawal.order.failed
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.