Webhooks
Signed events when payouts, collections and card operations change state.
Register one HTTPS endpoint with POST /v1/webhooks (or in the dashboard). The signing secret is returned once.
Events
| Event | Sent when |
|---|---|
| payout.completed | The payout was delivered. |
| payout.failed | The payout failed; the amount was returned to your wallet. |
| collection.received | A collection completed and your wallet was credited. |
| collection.failed | A collection was declined or failed. |
| card.issued | A card was issued and its opening balance funded. |
| card.funded | A card top-up completed. |
| card.withdrawn | Money was moved from a card to the USD wallet. |
| card.funding_failed | Card issuance, funding or withdrawal failed. |
| card.transaction | A card purchase was reported. |
| card.refund | A card refund or reversal was reported. |
Delivery
{
"id": "evt_9c1d0e2a4b6f8a10",
"type": "payout.completed",
"created": "2026-10-13T09:32:10.000Z",
"data": { "id": "pyt_8f2c1a", "status": "completed" }
}Each delivery is a POST with the headers X-Dutch-Event and X-Dutch-Signature, answered within 8 seconds. Redirects are not followed. Failed deliveries are listed in the dashboard, where you can retry them. Card event payloads contain Dutch API transaction references and normalized statuses; underlying card infrastructure details are not sent.
Verify the signature
X-Dutch-Signature is t=<unix seconds>,v1=<hex>. v1 is the HMAC-SHA256 of the text t, a dot, and the raw request body, keyed with your signing secret. Verify the raw bytes before parsing, compare in constant time, and reject timestamps older than five minutes.
const crypto = require("crypto");
function verify(rawBody, header, secret) {
const [t, v1] = header.split(",").map((part) => part.split("=")[1]);
if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}import hmac, hashlib, time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
if abs(time.time() - int(parts["t"])) > 300:
return False
expected = hmac.new(secret.encode(), parts["t"].encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts["v1"])Card Payments mock callback (not live)
Card Payments is AVAILABLE ON 25 DECEMBER 2026. Until launch, its separate development callback POST /api/v1/webhooks/card-payments accepts signed mock events only when mock mode is enabled outside production. It is not a live payment notification or proof of a card charge.
| Event | Meaning |
|---|---|
| payment.created | A mock payment record was created. |
| payment.pending | A mock record is awaiting a test outcome. |
| payment.succeeded | A signed development event moved a mock record to succeeded. |
| payment.failed | A signed development event moved a mock record to failed. |
| payment.refunded | A mock record was marked refunded. |
{\n "id": "evt_mock_1042",\n "type": "payment.succeeded",\n "data": { "paymentId": "cp_mock_<id>" }\n}This callback uses X-Dutch-Signature: t=<unix>,v1=<hex>; calculate HMAC-SHA256 over <t>.<raw request body> with CARD_PAYMENTS_WEBHOOK_SECRET. Timestamps older than five minutes are rejected. Only cp_mock_ payment IDs can be changed. See the Card Payments endpoint pages for the mock API shapes.