Webhooks send notifications to a configured URL when a transaction changes status. A webhook is created with the destination URL, the events to subscribe to and, optionally, the transaction types to filter on.
If a transaction was created with a notifyUrl, notifications for that transaction are sent to the notifyUrl instead of the webhook URL.
Each notification is a POST request with the transaction as JSON body, in the same format as Get Transaction.
| Attribute | Description | Format |
|---|---|---|
| id | Unique identifier of the webhook. | UUID |
| url | URL that receives the notifications. | String |
| types | Events the webhook is subscribed to. | Array of events, see below |
| transactionTypes | Transaction types the webhook is limited to. | Array e.g. PAYOUT, TRANSFER |
| tenantId | Identifier of the tenant. | UUID |
| merchantId | Identifier of the merchant. | UUID |
Events
| Event | Sent when |
|---|---|
TRANSACTION_INITIATED | The transaction was created. |
TRANSACTION_PROCESSING | The transaction is being processed. |
TRANSACTION_COMPLETED | The transaction completed successfully. |
TRANSACTION_FAILED | The transaction failed. |
TRANSACTION_WAITING_FOR_CANCELLATION | A cancellation was requested and is pending. |
Delivery
A notification is delivered successfully when the receiving endpoint responds with 200 OK or 204 No Content. Any other response marks the delivery as FAILED, and it is retried automatically. After the maximum number of attempts, the delivery is marked as CANCELLED. The delivery status of each notification is available through List Webhook Entries.