Webhook setup
As with any Webhook setup, head to the “Developers” section in the dashboard to configure a webhook. Once the webhook is active, your endpoint will be notified the next time a Workflow Run fails. When Webhook signing is enabled in the dashboard, the Workflow Run failed webhooks will also contain the signature header.Webhook payload
Version 1.0 of the webhook payload consists of the below fields. New fields could be added and are not considered breaking changes.Example for a payment workflow
The payload for a payment workflow will not contain any payment data, only the Payment ID in a field calledtriggerEventId, as the trigger event ID for a payment workflow is the Payment ID. Use the Payments API to get the latest status and payment data for the payment linked to this ID.
The below example represents a failed Workflow Run using the “Payment created” trigger from the Payments app:
JSON
Example for any other workflow
The below example represents a failed Workflow Run from a non-payment app. Do note that thetriggerEventId in this case does not refer to a payment.
JSON