Payload field | Description |
---|---|
eventType | WORKFLOW_RUN.FAILED for failed runs. We might support additional types in the future. |
version | Webhook version for this eventType. |
date | Date and time when the webhook event was sent. |
primerAccountId | Primer Account ID of the account that belongs to the failed run. |
triggerEventId | An optional ID passed with the trigger to identify the origin of the event that started the workflow. For payments created, this would be the payment ID, but other triggers might not set an event ID and the value returned with the webhook will then be null . |
workflow / id | The ID of the workflow that had a failed run. |
workflow / name | The name of the workflow that had a failed run. |
workflow / version | The version of the workflow that had a failed run. |
run / timestamp | Date and time when the workflow run failed. |
run / id | The ID of the workflow run that failed. This can be used to easier access the workflow run in the dashboard. |
run / status | The Workflow Run status will always be FAILED currently. In the future, COMPLETED might become an additional option for Workflow Run Webhooks. |
lastError / aplicationId | The application used for the block that lead to the workflow run failure. The values here are dependent on the applications used within workflows, but could for example be SLACK , ONFIDO , PRIMER_PAYMENTS , etc. |
lastError / actionId | The ID of the action used for the block that lead to the workflow run failure. The values here are dependent on the actions used within workflows, but could for example be send_message , capture_payment , create_ticket , etc. |
lastError / diagnosticsId | A diagnostics ID helping Primer to debug traces when needed (optional). |
lastError / message | The error message as also displayed in the Workflow Run Timeline (optional). |
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:
triggerEventId
in this case does not refer to a payment.