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.
NotifyOnFailureStepInputNotifyOnFailureStepInputtostringchannelstringemail.
A Notification Module Provider
must be installed and configured for the specified channel.templatestringdataRecord<string, unknown> | nullOptionaltrigger_typestring | nullOptionalorder_created.resource_idstring | nullOptionalresource_typestring | nullOptionalorder.receiver_idstring | nullOptionaloriginal_notification_idstring | nullOptionalidempotency_keystring | nullOptional