TBD
Logo URL (logoUrl):
The email header logo URL. The first version will use the Streto.io logo. Then a configurable company logo will be used.
Base Store URL (storeUrl):
The storefront base URL including protocol, domain and base path. For example: https://storefront.lec.dev.lagom.us/.
Order (order):
The order entity object.
Social Network URLs (socialNets):
A key-value object with social network keys and links as values. For example: { facebook: "https://www.facebook.com/lagom.us.7", twitter: "https://twitter.com/UsLagom" }.
Contact Email (contactEmail):
The general store contact email.
In this section, can be seen how the different dynamic parts of the email are formed using the parameters documented above.
logoUrl.storeUrlmy-account/order-history/order.orderNumber".The shipping and billing addresses are taken respectivelly from order.shippingAddresses[0] and billingAddresses[0].
The format to show them is:
{{shippingAddresses[0].street}}{{shippingAddresses[0].city}}, {{shippingAddresses[0].state}} {{shippingAddresses[0].postalCode}}{{billingAddresses[0].street}}{{billingAddresses[0].city}}, {{billingAddresses[0].state}} {{billingAddresses[0].postalCode}}Where any of those lines are optional depending on the values and existence of the fields.
order.items.{{item.additionalInformation.name}}{{item.additionalInformation.configurableAttrNames}} joined by , {{item.qty}}{{item.totals.grandTotal}} formated as currency according to order.currency.The order payment method is taken from order.paymentMethods[0]
The format to show them is:
{{paymentMethods[0].code}}{{paymentMethods[0].additionalInformation.title}}Where any of those lines are optional depending on the values and existence of the fields.
order.currency:
{{totals.subtotal}}{{totals.shipping}}{{totals.tax}}{{totals.grandTotal}}{{order.state}}socialNets. If some of them are missing, it is replaced by #.contactEmail.