Skip to main content

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.

note

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.

PropertyDescription
idA unique id to identify the webhook, this can be used to manage idempotency
event_typeThe event that this webhook is related to
dataThe 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:

TimeWhat happens
10:00:00Webhook sent. No response by 10:00:10
~10:00:12Retry 1 sent. No response by 10:00:22
~10:00:26Retry 2 sent. No response by 10:00:30
10:00:30Webhook parked

Exact retry times can vary by a second or two.

Whether we retry depends on your response:

Your responseWhat we do
2xx within 10 secondsDelivered, no retry
No response, 408, 429 or 5xxRetry up to 3 times within 30 seconds
Any other 4xxNot retried, parked immediately

For details on the event types we use across our domains and example payloads please visit the pages below: