Webhook documentation

Signature verification

Each delivery carries Paymate-Signature: t=<unix seconds>,v1=<hex>. v1 is the lower-case hex HMAC-SHA256 of the timestamp, a dot and the exact raw request body, keyed with the endpoint secret (whsec_...). During a secret rotation two v1 values are sent: accept the delivery when any one matches. Compare in constant time and verify before parsing the body.

Timestamp tolerance

Reject a delivery when t is more than 300 seconds from your clock. The timestamp is part of the signed text, so it cannot be rewritten.

Replay prevention

Deliveries are at least once. An event keeps its id (the id field and the Paymate-Event-Id header) across retries and replays, with a higher Paymate-Delivery-Attempt. Store event ids for at least 24 hours and make handlers idempotent. Events about one object carry a rising sequence.

Retry schedule

A 2xx response is delivered. Any other status, a timeout after 10 seconds or a connection error is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours, each delay varying by 20 percent: seven attempts in all. The delivery is then dead-lettered and can be replayed from the delivery log. An endpoint that fails continuously for 7 days is disabled.

Event catalogue

checkout.paid

Sent when a checkout session is paid; the merchant can fulfil the order.

checkout.paid
{
  "id": "evt_01J9ZCHECKOUT",
  "type": "checkout.paid",
  "api_version": "2026-11-01",
  "created": "2026-10-18T12:00:00Z",
  "livemode": true,
  "sequence": 1,
  "data": {
    "object": {
      "event": "checkout.paid",
      "paymentId": "6f1d0c52-5a6e-4d57-9a3e-0a7d2b8f3c11",
      "checkoutSessionId": "0b9d2c1e-7a58-4a77-8f1c-5e2c9a4d6b30",
      "merchantReference": "ORDER-1001",
      "amount": "25.50",
      "currency": "USD"
    }
  }
}

refund.completed

Sent when a refund has been paid out to the customer.

refund.completed
{
  "id": "evt_01J9ZREFUND",
  "type": "refund.completed",
  "api_version": "2026-11-01",
  "created": "2026-10-18T12:00:00Z",
  "livemode": true,
  "sequence": 1,
  "data": {
    "object": {
      "event": "refund.completed",
      "refundId": "a3c8e0f4-2d1b-4c67-9e55-7b0f1d2c8a90",
      "amount": "10.00",
      "currency": "USD"
    }
  }
}

refund.failed

Sent when a refund could not be completed.

refund.failed
{
  "id": "evt_01J9ZREFUNDX",
  "type": "refund.failed",
  "api_version": "2026-11-01",
  "created": "2026-10-18T12:00:00Z",
  "livemode": true,
  "sequence": 1,
  "data": {
    "object": {
      "event": "refund.failed",
      "refundId": "a3c8e0f4-2d1b-4c67-9e55-7b0f1d2c8a90",
      "amount": "10.00",
      "currency": "USD"
    }
  }
}

payout.sent

Sent when a payout has been sent to the settlement account.

payout.sent
{
  "id": "evt_01J9ZPAYOUT",
  "type": "payout.sent",
  "api_version": "2026-11-01",
  "created": "2026-10-18T12:00:00Z",
  "livemode": true,
  "sequence": 1,
  "data": {
    "object": {
      "event": "payout.sent",
      "payoutId": "d41c7a90-3f6e-4b28-8c0d-9a1e5f7b2c64",
      "merchantId": "2e7f9b13-6c4a-4d85-a1b0-3c8d5e6f7a92",
      "amount": "120.00",
      "currency": "USD",
      "period": "2026-10-18",
      "status": "SENT",
      "attempts": 1,
      "failureReason": null,
      "railReference": "SIM-0001",
      "occurredAt": "2026-10-18T12:00:00Z"
    }
  }
}

payout.failed

Sent when a payout attempt failed; the payout may be retried and then sends payout.sent.

payout.failed
{
  "id": "evt_01J9ZPAYOUTX",
  "type": "payout.failed",
  "api_version": "2026-11-01",
  "created": "2026-10-18T12:00:00Z",
  "livemode": true,
  "sequence": 1,
  "data": {
    "object": {
      "event": "payout.failed",
      "payoutId": "d41c7a90-3f6e-4b28-8c0d-9a1e5f7b2c64",
      "merchantId": "2e7f9b13-6c4a-4d85-a1b0-3c8d5e6f7a92",
      "amount": "120.00",
      "currency": "USD",
      "period": "2026-10-18",
      "status": "FAILED",
      "attempts": 1,
      "failureReason": "http_401",
      "railReference": null,
      "occurredAt": "2026-10-18T12:00:00Z"
    }
  }
}