Z Zise Developers 简体中文

withdrawal.order.completed

Member-initiated on-chain withdrawal paid out

When Emitted

Emitted when the upstream confirms payout completion and the settlement journal posts. This is a terminal state. Intermediate states, such as review approval or blockchain broadcast, are deliberately not published: they expose internal workflow, and additional events would suggest that you have something to handle when you do not.

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_c47d2be9105f43a8b6e0972d15c8340a",
  "event_type": "withdrawal.order.completed",
  "created_at": "2026-08-12T13:41:57Z",
  "merchant_id": "acme",
  "livemode": true,
  "data": {
    "object": "withdrawal",
    "id": "8f2a41d6-0c7b-4e39-9a15-63d0c8be7f24",
    "external_member_id": "u_88123",
    "status": "completed",
    "status_version": 4
  }
}

Payload Fields

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