Medusa Plugin Courier Notification
Medusa notification plugin template provided
The Courier plugin is a simple notification plugin that currently only supports email notifications.
AUTH_TOKEN={AUTH_TOKEN}
medusa-config.js
{
resolve: "medusa-plugin-courier",
options: {
store_name: "xxx",
auth_token: "xxxxx",
store_url: process.env.STOREFRONT_URL || "https://localhost:8000",
template: {
"order.placed": "{COURIER_TEMPLATE_ID}"
}
}
}
COURIER_TEMPLATE_ID: How to Design a Courier Notification If the {COURIER_TEMPLATE_ID} does not exist, the default template will be used.
- order.placed
- order.shipment.created
- order.canceled
- order.completed
- order.refund_created
- order.refund_failed
name | type | des |
---|---|---|
id | string | unique id |
display_id | string | display code |
first_name | string | - |
last_name | string | - |
updated_at | string | - |
created_at | string | - |
currency_code | string | - |
subtotal | string | - |
shipping_total | string | - |
tax_total | string | - |
total | string | - |
items | Array | - |
items.title | string | - |
items.description | string | - |
items.thumbnail | string | - |
items.quantity | number | - |
items.unit_price | string | - |
items.original_total | string | - |
items.total | number | - |
name | type | des |
---|---|---|
id | string | unique id |
name | descript |
---|---|
asdf | aadfsd |
name | descript |
---|---|
asdf | aadfsd |