Every order, customer, line item, total, shop and metafield variable available in Code mode and Custom Liquid blocks, with a copy button for each, plus the money, money_round, parse_json and render_liquid filters.
Medium BusinessUpdated 2026-10-23
These are the values a template can print. Click the copy icon to copy a variable, then paste it in Code mode or a Custom Liquid block. Amounts are already formatted in the document currency, and a value the order does not have prints nothing. The Document Editor's Code view has the same list with sample values.
Order
Field Label
Variable
Copy
Order Number
{{ order.name }}
Document Number
{{ order.invoice_number }}
Issue Date
{{ order.date }}
Issue Time
{{ order.time }}
Due Date
{{ order.due_date }}
Payment Status
{{ order.status }}
Payment Date
{{ order.payment_date }}
Has Been Paid (true / false)
{{ order.has_payment }}
Order Note
{{ order.note }}
Grand Total as a Number
{{ order.total_amount }}
Store Currency
{{ order.store_currency }}
Customer's Currency
{{ order.presentment_currency }}
Buyer VAT Number
{{ order.buyer_vat }}
Order Is Tax Exempt (true / false)
{{ order.tax_exempt }}
Prices Include Tax and Tax Was Charged (true / false)
{{ order.taxes_included }}
Tax Exemption Reason (the order's own)
{{ order.tax_exempt_reason }}
Date of Supply
{{ order.supply_date }}
Place of Supply (India GST)
{{ order.place_of_supply }}
Buyer's Number Is a GSTIN (true / false)
{{ order.buyer_vat_is_gstin }}
Order Attributes
{% for attr in order.note_attributes %}
{{ attr.name }}: {{ attr.value }}
{% endfor %}
Estimates (Draft Orders)
Field Label
Variable
Copy
Valid Until
{{ order.valid_until }}
PO Number
{{ order.po_number }}
Draft Order Status
{{ order.draft_status_label }}
Draft Order Status Code
{{ order.draft_status }}
Customer
Field Label
Variable
Copy
Full Name
{{ customer.name }}
First Name
{{ customer.first_name }}
Last Name
{{ customer.last_name }}
Email
{{ customer.email }}
Company
{{ customer.company_name }}
VAT Number
{{ customer.vat_number }}
Customer Is Tax Exempt (true / false)
{{ customer.tax_exempt }}
A guest order has no customer; wrap these in {% if customer %}.
Billing and Shipping Address
Field Label
Variable
Copy
Name
{{ billing_address.name }}
Company
{{ billing_address.company }}
Address Line 1
{{ billing_address.address1 }}
Address Line 2
{{ billing_address.address2 }}
City
{{ billing_address.city }}
Province / State Code
{{ billing_address.province_code }}
Province / State Name
{{ billing_address.province }}
ZIP / Postal Code
{{ billing_address.zip }}
Country (Name in the Document Language)
{{ billing_address.country }}
Country Code
{{ billing_address.country_code }}
Phone
{{ billing_address.phone }}
Formatted Lines (in Address Format Order)
{% for line in billing_address.formatted_lines %}
{{ line }}<br>
{% endfor %}
The shipping address has the same fields under shipping_address, for example {{ shipping_address.city }}.
Line Items
Inside {% for item in line_items %} … {% endfor %}:
Field Label
Variable
Copy
Product Title
{{ item.title }}
Variant Title
{{ item.variant_title }}
SKU
{{ item.sku }}
Quantity
{{ item.quantity }}
Unit Price
{{ item.price }}
Line Total
{{ item.total }}
Has a Line Discount (true / false)
{{ item.has_line_discount }}
Discounted Unit Price
{{ item.discounted_price }}
Line Discount
{{ item.line_discount }}
Total Before Discount
{{ item.original_total }}
Line Tax
{{ item.tax_amount }}
Unit Price Before Tax
{{ item.unit_price_excl_tax }}
HSN / SAC Code (India GST)
{{ item.hsn_code }}
Country of Origin (India GST)
{{ item.country_of_origin }}
Line Item Properties
{% for prop in item.properties %}
{{ prop.key }}: {{ prop.value }}
{% endfor %}
Variant Options
{% for o in item.variant_options %}
{{ o.name }}: {{ o.value }}
{% endfor %}
Product Metafield
{{ item.product.metafields.namespace.key }}
Variant Metafield
{{ item.variant.metafields.namespace.key }}
Totals and Tax
Field Label
Variable
Copy
Subtotal
{{ subtotal }}
Has a Discount (true / false)
{{ has_discount }}
Discount
{{ discount_amount }}
Discount Code
{{ discount_code }}
Has Shipping (true / false)
{{ has_shipping }}
Shipping
{{ shipping_amount }}
Shipping Method Name
{{ shipping_title }}
Has Tax (true / false)
{{ has_tax }}
Tax
{{ tax_amount }}
Grand Total
{{ total }}
Amount Due
{{ amount_due }}
Something Is Owed (true / false)
{{ has_amount_due }}
Document Currency
{{ currency }}
Paid in Another Currency (true / false)
{{ is_multi_currency }}
Document Not in Store Currency (true / false)
{{ show_store_equivalent }}
Grand Total in Store Currency
{{ total_store_currency }}
Tax-Exempt Order That Charged No Tax (true / false)
{{ is_tax_exempt }}
Intra-EU Notice Applies (true / false)
{{ is_reverse_charge }}
Export or Outside-EU Notice Applies (true / false)
{% for fee in additional_fees %}
{{ fee.name }}: {{ fee.price }}
{% endfor %}
Payment and Shipping
Field Label
Variable
Copy
Payment Method
{{ payment_method.display }}
Card Brand or Gateway
{{ payment_method.brand }}
Card Last 4 Digits
{{ payment_method.last4 }}
Transaction ID
{{ payment_method.transaction_id }}
Shipping Method
{{ shipping_method.title }}
Your Store
Field Label
Variable
Copy
Store Name
{{ shop.name }}
Contact Email
{{ shop.email }}
Phone
{{ shop.phone }}
Full Address
{{ shop.address }}
Address Line 1
{{ shop.address1 }}
Address Line 2
{{ shop.address2 }}
City
{{ shop.city }}
State / Province
{{ shop.state }}
ZIP / Postal Code
{{ shop.zip }}
Country
{{ shop.country }}
VAT / GST Number
{{ shop.tax_id }}
Company Registration Number
{{ shop.income_tax_number }}
Additional Tax Numbers
{% for t in shop.extra_tax_numbers %}
{{ t.label }}: {{ t.number }}
{% endfor %}
Logo URL
{{ shop.logo_url }}
Signature URL
{{ shop.signature_url }}
Labels Font URL
{{ shop.fonts.labels }}
Headings Font URL
{{ shop.fonts.headings }}
Social Links
{% for link in shop.social_links %}
{{ link.name }}: {{ link.url }} ({{ link.handle }})
{% endfor %}
Metafields Enterprise
Field Label
Variable
Copy
Order Metafield
{{ order.metafields.namespace.key }}
Customer Metafield
{{ customer.metafields.namespace.key }}
Shop Metafield
{{ shop.metafields.namespace.key }}
Replace namespace.key with your metafield's own, and select it in Settings → Metafields first; see Using Metafields in Templates.
Labels and Language
Field Label
Variable
Copy
Document Language Code
{{ document_language }}
Tax-Exempt Notice
{{ labels.tax_exempt_notice }}
Reverse-Charge Notice
{{ labels.reverse_charge_notice }}
Export Notice
{{ labels.export_notice }}
GSTIN Label
{{ labels.gstin }}
Prices-Include-Tax Note
{{ labels.prices_include_tax }}
A Block's Label Setting
{{ blocks.block_notes.settings.label }}
Block labels such as the document title or column headings come from the block settings and are translated per document language.
Filters
money formats a number like every other amount: {{ order.total_amount | times: 50 | divided_by: 100.0 | money_round | money }}.
money_round rounds a number to the decimals of the document's currency (2 for USD, 0 for JPY, 3 for BHD). Round a part of the total with it and print the rest as the total minus that part, and the two always add up to the total.
parse_json turns a JSON metafield into an object: {% assign spec = item.product.metafields.custom.spec | parse_json %}{{ spec.weight }}.
render_liquid runs merchant-written Liquid, which is what the Custom Liquid block uses for its code field.
Optional values are empty when the order has no data for them, so wrap them in {% if … %} to avoid printing a bare label. See Liquid and CSS Basics for the Liquid itself.
Mistakes That Show No Error
A filter name the app doesn't know is ignored and the value prints unchanged, so {{ order.name | upcse }} shows no error. If a filter seems to do nothing, check its spelling.
Dividing by zero prints Infinity, or NaN for zero divided by zero. When the divisor can be zero, check it with {% if … %} first.
In the Template Editor, Edit Text saves a change only for text printed from a block setting, such as {{ notes.label }}. If you add data-editable to text you wrote yourself, you can type in it on the canvas, but the change is gone after a reload. Change that text in Code view instead.
Was this guide missing something? Tell us and we will fix it.