Webhooks: Overview
Overview
- Webhooks are a core mechanism used by the platform to notify clients about important events in real time.
- Instead of repeatedly polling our API, clients can receive asynchronous updates whenever a relevant event occurs.
- Delivery uses the webhook URL for the transaction or the default URL on its settlement account.
Webhooks are delivered as standard HTTPS POST requests containing structured JSON payloads. Any system capable of receiving HTTP requests can process these callbacks.
You can enable signing for a settlement account through Support. Signed requests include the HTTP headers webhook-id and webhook-signature. Verify them using the raw body before processing the notification. Verify webhook signatures.
How Webhooks Work
1. Client Defines the Webhook URL
8B uses the transaction's webhookUrl when one is provided. Otherwise, it uses the settlement account's default webhook URL. If neither is configured, no webhook is sent. A refund has its own URL selection, independent of the original payment. Check the relevant payment method guide for required request fields.
2. Event Occurs
When the system registers a transaction status update or 3DSv2 challenge event, it generates a webhook payload.
3. Webhook Send Attempt
The platform attempts to POST the webhook to the client’s URL.
4. Success or Retry Logic
If the client acknowledges the webhook with an HTTP 2xx response, the delivery is considered successful.
If not, retries are performed according to the schedule below.
Webhook Delivery and Repeat Sending (Retry Mechanism)
- To ensure reliable delivery, the platform implements multiple attempts if the client cannot accept the webhook immediately.
- We follow a deterministic retry schedule and do not retry indefinitely.
Retry Schedule
The system will attempt to deliver each webhook up to 10 times, according to the following timeline:
| Attempt | Delay Before Attempt |
|---|---|
| 1st | Immediate |
| 2nd | 1 minute |
| 3rd | 5 minutes |
| 4th | 15 minutes |
| 5th | 1 hour |
| 6th | 3 hours |
| 7th | 6 hours |
| 8th | 12 hours |
| 9th | 24 hours |
| 10th | 48 hours |
Automatic delivery stops after the 10th attempt. A signed notification keeps its webhook-id across automatic retries. You can ask Support to send a new notification for the current status of a payment, refund or disbursement. When signing is active, this notification receives a new ID. A manual resend cannot recreate an earlier status or the original 3-D Secure challenge.
Delivery Conditions
| Case | Conditions | Next Actions |
|---|---|---|
| Success Conditions | The client returns an HTTP 2xx status code |
|
| Failure Conditions |
|
|
Webhook example
For a webhook example, please visit the dedicated page
Updated 4 days ago
