Webhooks
Webhooks are used to notify you about payment-related events, such as successful payments, failed payments, refunds and voids. Using webhooks in your integration is optional but strong recommended, as it allows you to create a responsive system that responds to real-time updates and perform actions based on these events.
Webhooks are sent to a webhook url that you provide in your API request. For payments this in your initial payment request: urls.webhook
We require a prompt successful response (HTTP 2xx) to our webhooks. For more details on our retry policy see below.
Please be aware that our system works on an at-least-once message delivery mechanism and order is not guaranteed
Our webhooks use an event driven structure where you will only receive data relating to that specific event.
| Property | Description |
|---|---|
id | A unique id to identify the webhook, this can be used to manage idempotency |
event_type | The event that this webhook is related to |
data | The data contents of the webhook for this event |
Responding to webhooks
You need to respond with a successful status (HTTP 2xx) within 10 seconds. If we don't get one, we retry the webhook. All attempts happen within 30 seconds of the first one. After that the webhook is parked and we stop retrying it.
For example, if we first send a webhook at 10:00:00 and your endpoint doesn't respond within 10 seconds:
| Time | What happens |
|---|---|
| 10:00:00 | Webhook sent. No response by 10:00:10 |
| ~10:00:12 | Retry 1 sent. No response by 10:00:22 |
| ~10:00:26 | Retry 2 sent. No response by 10:00:30 |
| 10:00:30 | Webhook parked |
Exact retry times can vary by a second or two.
Whether we retry depends on your response:
| Your response | What we do |
|---|---|
2xx within 10 seconds | Delivered, no retry |
No response, 408, 429 or 5xx | Retry up to 3 times within 30 seconds |
Any other 4xx | Not retried, parked immediately |
For details on the event types we use across our domains and example payloads please visit the pages below: