Loading...
Was this page helpful?
This documentation provides a reference to the notifyOnFailureStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step sends one or more notification when a workflow fails. This step can be used in the beginning of a workflow so that, when the workflow fails, the step's compensation function is triggered to send the notification.
NotifyOnFailureStepInput
NotifyOnFailureStepInputto
stringchannel
stringemail
.
A Notification Module Provider
must be installed and configured for the specified channel.template
stringdata
Record<string, unknown> | nullOptionaltrigger_type
string | nullOptionalorder_created
.resource_id
string | nullOptionalresource_type
string | nullOptionalorder
.receiver_id
string | nullOptionaloriginal_notification_id
string | nullOptionalidempotency_key
string | nullOptional