Supported fields for Order object:

  • Order.orderId - (required) unique orderId
  • Order.items - array of items in the order
  • Order.total
  • Order.tax
  • Order.shipping
  • Order.discount
  • Order.subTotal
  • Order.timeStamp


Inject the order object into your template using the following syntax:

OrderId: {{Order.orderId}}
SubTotal: ${{Order.subTotal}}
Tax: ${{Order.tax}}
Shipping: ${{Order.shipping}}
Total: ${{Order.total}}

 

Example of injecting the order object into an email template:



Order.itemDetails is an array of objects representing the items in the order. Each item has the following properties:

  • sku
  • name
  • desc
  • imgUrl
  • price
  • qty

Inject order items into your template using the following syntax: 

{{#Order.items}}
   {{name}} ({{sku}})
   {{desc}}
   Price: ${{price}}
   Qty: ${{qty}}
{{/Order.items}}

 

Example of injecting the order items into an email template: