Webhooks
Signed, retried callbacks telling you when a school has received a gift.
A gift returns 202 immediately. Wishbone never pushes to the school; the school pulls its feed, and once it has, you receive donation.delivered. Your webhook URL and signing secret are set during onboarding.
Verifying the signature
Every delivery is signed with HMAC-SHA256 over the raw request body using your webhook secret. Verify before trusting the payload, and compare in constant time.
const crypto = require("crypto");
function verifyWebhook(rawBody, signature, secret) {
const expected = crypto
.createHmac("sha256", secret)
.update(rawBody) // the raw bytes, before JSON.parse
.digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(signature);
return a.length === b.length && crypto.timingSafeEqual(a, b);
}Sign over the raw body. If your framework parses JSON before you reach the handler and you re-serialize it, key order or whitespace can differ and the signature will not match.
Headers
X-Wishbone-SignaturestringHMAC-SHA256 of the raw body, hex-encoded.
X-Wishbone-Delivery-IDuuidStable across every retry of the same event. Use it to deduplicate — an attempt that timed out on your side may already have been processed.
X-Wishbone-EventstringEvent name, matching the event field in the body.
X-Wishbone-TimestampintegerUnix timestamp of the delivery attempt.
Events
donation.deliveredThe school pulled the gift from its feed. donor_linked says whether it carried the school's own donor reference.
account.school_linkedThe cardholder signed in at the school and linked their account there.
account.unlinkedYou unlinked the account. Every school donor reference for it has been erased.
Payload
{
"event": "donation.delivered",
"created_at": "2026-05-07T14:31:09Z",
"data": {
"donation_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92",
"account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
"school_id": "sch_tennessee",
"fund_designation": "annual_fund",
"dollar_amount": 50.0,
"points_redeemed": 5000,
"program_id": "lp_acme_rewards",
"status": "delivered",
"donor_linked": true,
"delivered_at": "2026-05-07T14:31:09+00:00"
}
}Match on donation_id. Payloads do not echo your bank_transaction_ref: Wishbone holds only a keyed hash of it. They never carry the school's donor reference.
Retries
Return any 2xx to acknowledge. Anything else — or a timeout past 10 seconds — is retried on a fixed schedule: 1m → 5m → 30m → 2h → 12h. After the last attempt the delivery is dead-lettered and raises an internal alert.
Acknowledge fast and process asynchronously. A slow handler burns your retry budget. Since X-Wishbone-Delivery-ID is stable across retries, deduplicating on it is safe and is the recommended pattern.