Skip to main content
Consume the Workflow Run failed webhook to know when a workflow didn’t complete successfully. While you can observe Workflow Runs for any outcome and a full run timeline for every workflow that has been started, it is important to also know when a workflow failed.
Even if you already listen to the Payment status updates webhooks, consuming this additional webhook is strongly encouraged if you use Capture or Cancel via Workflows, as a failure to capture or cancel will neither fail the payment itself nor lead to an update of the payment status. Not knowing that a capture or cancel failed could therefore result in unintended consequences.

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 called triggerEventId, 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 the triggerEventId in this case does not refer to a payment.
JSON
As there is no other information to query in this case, you have to inspect the Workflow Run Timeline to debug.