0.0.4 • Published 2 months ago

medusa-plugin-courier v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months 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

nametypedes
idstringunique id
display_idstringdisplay code
first_namestring-
last_namestring-
updated_atstring-
created_atstring-
currency_codestring-
subtotalstring-
shipping_totalstring-
tax_totalstring-
totalstring-
itemsArray-
items.titlestring-
items.descriptionstring-
items.thumbnailstring-
items.quantitynumber-
items.unit_pricestring-
items.original_totalstring-
items.totalnumber-

ORDER.CANCELED

nametypedes
idstringunique id

CUSTOMER.CREATED

namedescript
asdfaadfsd

CUSTOMER.PASSWORED_RESET

namedescript
asdfaadfsd