medusa-plugin-courier
v0.0.4
Published
Medusa Plugin Courier Notification
Downloads
25
Maintainers
Readme
ENV
AUTH_TOKEN={AUTH_TOKEN}
medusa-config.js
{
resolve: "medusa-plugin-courier",
options: {
store_name: "xxx",
auth_token: "xxxxx",
store_url: process.env.STOREFRONT_URL || "http://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.
Progress
Order Event
- [x] order.placed
- [ ] order.shipment.created
- [ ] order.canceled
- [ ] order.completed
- [ ] order.refund_created
- [ ] order.refund_failed
Customer Event
Template variables
ORDER.PLACED
| 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 | - |
ORDER.CANCELED
| name | type | des | | -------------------- | ------ | ------------ | | id | string | unique id |
CUSTOMER.CREATED
| name | descript | | ---- | -------- | | asdf | aadfsd |
CUSTOMER.PASSWORED_RESET
| name | descript | | ---- | -------- | | asdf | aadfsd |