ProviderSendNotificationDTO

The details of the notification to send.

Properties#

tostring
The recipient of the notification. It can be email, phone number, or username, depending on the channel.
channelstring
The channel through which the notification is sent, such as 'email' or 'sms'
templatestring
The template name in the provider's system.
fromnull | stringOptional
The sender of the notification. It can be email, phone number, or username, depending on the channel.
attachmentsnull | Attachment[]Optional
Optional attachments for the notification.
datanull | Record<string, unknown>Optional
The data that gets passed over to the provider for rendering the notification.
contentnull | NotificationContentOptional
The content that gets passed to the provider.
Was this page helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break