Core concepts
Webhooks

Webhooks

Payments are asynchronous. When a collection settles, a payout completes, or a card payment finishes 3-D Secure, Swahilies notifies your server with a webhook — an HTTP POST to an endpoint you configure.

See the Webhooks guide for the full payload shape, signature verification, and retry behaviour.

In short

  1. Configure your endpoint URL and signing secret in the dashboard.
  2. Swahilies POSTs a JSON event to it, signed with HMAC-SHA256.
  3. Verify the signature, then act on the event.
  4. Return 2xx quickly to acknowledge. Non-2xx (or a timeout) is retried.
⚠️

Always verify the signature before trusting a webhook, and treat delivery as at-least-once — the same event may arrive more than once, so make your handler idempotent (key off the event id).