API Referencev1.0
HomeLog inSign up
RESOURCES

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

EventSent when
payout.completedThe payout was delivered.
payout.failedThe payout failed; the amount was returned to your wallet.
collection.receivedA collection completed and your wallet was credited.
collection.failedA collection was declined or failed.
card.issuedA card was issued and its opening balance funded.
card.fundedA card top-up completed.
card.withdrawnMoney was moved from a card to the USD wallet.
card.funding_failedCard issuance, funding or withdrawal failed.
card.transactionA card purchase was reported.
card.refundA 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"])
📘Webhooks can arrive more than once or out of order. Make your handler idempotent and treat GET /v1/payouts/{id} as the source of truth.

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.

EventMeaning
payment.createdA mock payment record was created.
payment.pendingA mock record is awaiting a test outcome.
payment.succeededA signed development event moved a mock record to succeeded.
payment.failedA signed development event moved a mock record to failed.
payment.refundedA 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.

Updated 2026
Did this page help you?