A webhook can be added to subscribe to events that occur. When an event occurs, a trigger is sent to a predefined URL.
## Event webhooks
Supported event types:
|`||The transaction state has been updated.|
|`||The task state has been updated.|
By default, the `
transaction.state.updated` and `
task.state.updated` events are sent.
## Subscribe to event(s)
Adding a webhook can be done by the using the webhook endpoint. It is mandatory to start the URL with `
Custom headers can optionally be provided in the `
## Retrieve status callback
A webhook URL can be configured so you get notified about status updates for transactions or tasks.
Webhooks can be configured via the API. Check the [API reference](🔗) for more details.
The status code should be in the 2xx range (between 200 and 300), the response body doesn't matter as it's ignored. In case of an unsuccessful status code (4xx, 5xx), the webhook will be retried several times with an exponentially increasing delay.