0.0.4 • Published 2 years ago
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
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
CUSTOMER.PASSWORED_RESET