Withdrawal webhooks
Verify and process order.updated delivery callbacks.
order.updatedSent to the webhookUrl supplied with the order whenever the order changes.
x-event-type: order.updated
x-delivery-id: 01971d02-...
x-timestamp: 2026-04-25T12:36:12.000Z
x-signature: <hmac-sha256-hex>Signature verification
Compute hex HMAC-SHA256 over x-timestamp + "." + rawBody with your signing secret and compare it with x-signature in constant time. Verify the raw bytes before parsing or applying the payload.
| Signing secret | When it applies |
|---|---|
| API secret | By default, callbacks are signed with your current API secret, the value you send as x-client-secret. After you rotate the API secret, new callbacks are signed with the new value. |
| Separate webhook secret | When separate webhook secrets are enabled, callbacks are signed with a webhook secret that you can show or rotate in the client portal. For an existing account it starts as the API secret in use at that time, so verification keeps working; new accounts get their own webhook secret. From then on the two secrets rotate independently. |
The client portal shows which secret signs your callbacks.
import crypto from "node:crypto";
export function verifyOrderWebhook({ signingSecret, timestamp, rawBody, signature }) {
if (typeof signature !== "string" || !/^[a-f0-9]{64}$/i.test(signature)) return false;
if (typeof timestamp !== "string") return false;
const expected = crypto.createHmac("sha256", signingSecret)
.update(`${timestamp}.${rawBody}`).digest();
return crypto.timingSafeEqual(expected, Buffer.from(signature, "hex"));
}Payload
{
"externalId": "order_100042",
"status": "completed",
"steamOfferId": "7193849201",
"amount": "1840",
"currency": "USD",
"error": null,
"charge": {
"status": "charged",
"refundedAt": null
},
"timestamps": {
"queuedAt": "2026-04-25T12:30:00.000Z",
"updatedAt": "2026-04-25T12:36:12.000Z",
"refundedAt": null
}
}error has the same shape as failure in the order lookup. charge is the balance state when the event was created. Callbacks created before charge was introduced, including later retries and resends of them, do not include it: treat a missing charge as unknown, not as not_charged, and read the order lookup for the current state.
Delivery and retries
- Any 2xx response marks the callback delivered. Redirects are not followed.
- Each request, including DNS resolution, must finish within 5 seconds.
- A failed callback is retried 10 seconds later, then with a doubling delay of at most one hour between attempts.
- Retries stop 72 hours after the first attempt. The callback is then marked failed and can be resent from the client portal.
- Every attempt is signed again with a new
x-timestamp;x-delivery-idstays the same for retries of one delivery.
Reliable processing
Persist callbacks durably and process them idempotently. Signature verification does not replace replay handling. If a callback is delayed or its ordering is uncertain, reconcile with the order lookup endpoint.