Built by
emilianscheelCategory
NotificationVersion
0.0.27
Last updated
Aug 1, 2024, 21:59:01 PMa month agoMedusa Plugin Brevo
- Create an account at Brevo
- Create a new template and get the template id
1. Install
1npm install medusa-plugin-brevo
2. Configuration
Add the following to your Copy to clipboard
medusa-config.js
:123456789101112131415161718module.exports = {//...plugins: [{resolve: 'medusa-plugin-brevo',options: {api_key: process.env.BREVO_API_KEY,from: {name: "Sender Name",email: "info@example.com"},template_map: {"order.placed": 21}}}]}
3. Test
Place an order.
Event E-Mail Parameters
Copy to clipboardorder.placed
12345678910111213141516171819202122232425262728293031type Parameters = {email: stringorder: {shipping_totaldiscount_totaltax_totalrefunded_totalgift_card_totalsubtotaltotalcustomer_idcustomer},locale: string,has_discounts: boolean,has_gift_cards: boolean,date: string,items: {title: stringdescription: stringquantity: numberproduct_id: stringvariant_id: stringunit_price: numbertotals: LineItemTotalsthumbnail: stringdiscounted_price: string // Human readableprice: string // Human readable}[]}