SwiftDime Webhooks
SwiftDime sends a signed HTTPS POST to your server when something happens to a payment, refund, payout, settlement or subscription. This page describes exactly what is sent, how to verify it, and how delivery and retries work.
How webhooks work
One HTTPS POST per event, to your webhook URL, signed with your signing secret.
- Every event is POSTed as JSON to your account's webhook URL. Live and sandbox events go to the same URL and are signed with the same secret.
- Every request carries a
Swiftdime-Signatureheader β an HMAC-SHA256 of the raw body made with your webhook signing secret. Verify it before trusting anything in the body. - Any 2xx response within 30 seconds marks the event delivered. Anything else is retried, up to 5 attempts in total over roughly 10Β½ hours, after which the event is marked failed and you can resend it.
- The same event can arrive more than once, and events can arrive out of order. De-duplicate on
X-Webhook-Event-IDand act on the status in the body, never on arrival order.
Quick start
- Set your webhook URL and get your signing secret in the SwiftDime dashboard.
- Verify every request against the raw body β see Signatures.
- Reply 2xx fast, then process. Record
X-Webhook-Event-IDunder a unique constraint, queue the work, and act on the event's status. - Reconcile with
GET /api/v1/merchants/webhook-deliveriesafter any outage and resend what you missed β see Delivery history.
Webhooks tell you something happened; they are not the only source of truth. Before releasing goods for a payment, you can always confirm with GET /api/v1/payments/verify/{reference}.
Full endpoint reference
Request and response schemas for every webhook endpoint are in the API reference.
Open the API reference