Loading...
Was this page helpful?
This documentation provides a reference to the sendNotificationsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step sends one or more notifications.
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { sendNotificationsStep } from "@medusajs/medusa/core-flows"3 4const myWorkflow = createWorkflow(5 "my-workflow",6 () => {7 const data = sendNotificationsStep({8 "to": "{value}",9 "channel": "{value}",10 "template": "{value}"11 })12 }13)
SendNotificationsStepInput
SendNotificationsStepInputto
stringchannel
stringemail
.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 | nullOptionalNotificationDTO[]
NotificationDTO[]id
stringto
stringchannel
stringtemplate
stringdata
null | Record<string, unknown>provider_id
stringprovider
NotificationProviderDTOcreated_at
Datestatus
"pending" | "success" | "failure"from
null | stringOptionaltrigger_type
null | stringOptionalresource_id
null | stringOptionalresource_type
null | stringOptionalreceiver_id
null | stringOptionaloriginal_notification_id
null | stringOptionalexternal_id
null | stringOptional