Skip to Content

Email templates

Each transactional email sent by Finqu maps to a fixed .mjml.liquid template path under templates/, organized by context (customers or orders). The context determines which global Liquid objects and subject-line variables are available.

Contexts

customers

Emails sent for customer account actions.

Global Liquid objects:

VariableDescription
customerCustomer account object
channelSales channel that triggered the email

Subject-line variables:

VariableDescription
FIRST_NAMECustomer’s first name
LAST_NAMECustomer’s last name
NAMECustomer’s full name

orders

Emails sent in the context of an order.

Global Liquid objects:

VariableDescription
customerCustomer account object
channelSales channel that triggered the email
orderOrder object

Subject-line variables:

VariableDescription
FIRST_NAMECustomer’s first name
LAST_NAMECustomer’s last name
NAMECustomer’s full name
ORDER_IDUnique order ID
ORDER_NUMBERMerchant-facing order number

Available templates

Some templates also expose event-specific Liquid variables listed in the last column:

Template filePurposeSpecial variables
customers/recover_password.mjml.liquidPassword recovery emaillink_to_recovery
customers/register.mjml.liquidNew customer welcome emailNone
orders/confirmation.mjml.liquidOrder confirmationlink_to_order
orders/fulfillment.mjml.liquidOrder fulfillment notificationshipment
orders/gift_card.mjml.liquidGift card deliverygift_card (value, code, expiry)
orders/message.mjml.liquidOrder message or updateshipment, message
orders/payment_link.mjml.liquidPayment link to complete checkoutlink_to_checkout
orders/return.mjml.liquidReturn confirmationreturn
orders/status.mjml.liquidOrder status updatelink_to_order

Template file structure

Each template combines up to three blocks:

  1. HTML (MJML): all markup outside {% plaintext %} and {% schema %} renders through Liquid and compiles from MJML  to HTML.
  2. Plaintext: optional plain-text email body wrapped in {% plaintext %}...{% endplaintext %}.
  3. Schema: JSON metadata wrapped in {% schema %}...{% endschema %} defining subject and preview text.
<mj-section> <mj-column> <mj-text>Hello {{ customer.first_name }}!</mj-text> </mj-column> </mj-section> {% plaintext %} Hello {{ customer.first_name }}! {% endplaintext %} {% schema %} { "subject": "Hi ${FIRST_NAME}, your order is confirmed!", "preview": "Order confirmation for ${FIRST_NAME}." } {% endschema %}

subject and preview schema fields

Both fields accept either a plain string or a locale-keyed JSON object and support all subject-line variables for the template’s context (${FIRST_NAME}, ${ORDER_NUMBER}, and so on). If the recipient’s locale is missing from a localized object, Finqu falls back to the default language (typically en).

  • subject: sets the email subject line.
  • preview: sets the preheader summary shown after the subject line in email clients.

Localized example:

{ "subject": { "en": "Hi ${FIRST_NAME}, your order ${ORDER_NUMBER} is confirmed!", "fi": "Hei ${FIRST_NAME}, tilauksesi ${ORDER_NUMBER} on vahvistettu!" }, "preview": { "en": "Order confirmation for ${FIRST_NAME}.", "fi": "Tilausvahvistus ${FIRST_NAME}:lle." } }

For full object properties available in email templates, see the Liquid reference for customer, order, and channel.