Liquid templates
Every PDF Invoice document is rendered from a Liquid (opens in a new tab) template with its own CSS. You can edit the code in the app's template editor, or through the MCP server.
Top-level objects
| Document | Objects |
|---|---|
| Invoice, packing slip, refund, pro forma, credit note | order, shop, template, configuration, text |
| Country templates (France, Germany, Italy…) | the objects above plus legal |
| Quote (draft order) | draftOrder instead of order |
| B2B statement | orders, summary, report, company, currency |
order/draftOrder: the Shopify order, its line items, totals, taxes, addresses and customer.shop: store name, domain, URL, email and country.template: the template's settings and its on/off options. Wrap optional blocks in the matching toggle, for example{% if template.isItemSKU %}…{% endif %}.text: translated labels in the customer's language.legal: the company and tax details a country template needs.
Finding variable paths
The available paths depend on the document type, the template's options and the store's plan, so there is no fixed list. Ask the store instead:
- In the app's template editor, open the variable list.
- With the MCP server, call
list_liquid_variableswith atype(ortemplate_id) and an optionalprefixsuch asorder.line_itemsor asearchterm. Each path comes with an example value from a sample order.
Fields that hold secrets or recipient addresses (for example BCC emails) are never available to templates.
Previewing safely
Use preview_template_liquid to render your draft against a real order before you save. It never changes the store. Every save with update_template_liquid is kept as a version, so the merchant can restore an earlier one from the editor.