Liquid Variables
Reference for the Liquid data available in GST Pro V2 templates, including order vs draft order and the QR filter.
Overview
GST Pro V2 templates are Liquid. Each template pairs a Liquid layout with a GraphQL query that supplies the data, plus a schema that defines the no-code settings. This page is a reference for the data and filters you can use when customizing template code directly.
Editing template Liquid is an advanced task. For most branding and field changes, use the no-code settings in the template editor instead.
Order vs draft order
The available top-level object depends on the document:
| Document | Primary object |
|---|---|
| Invoice / Refund (billable order) | order |
| Draft / Estimate | draftOrder |
Write template code defensively so it handles whichever object the document type provides.
Commonly used data
Prop
Type
Exact field names come from the template's GraphQL query and computed values. Open a V2 template in the editor to see the precise variables wired up for that design.
The QR filter
GST Pro adds a Liquid qr filter that turns a string into a QR-code image:
{{ upi_payment_string | qr: width: 200, margin: 1, colorDark: "#000", colorLight: "#fff" }}Use it to render a UPI payment QR, an order-status link, or the invoice number. See UPI & QR codes for choosing the value in the editor.
Result
You can reference order/draft data, shop details, line items, and the tax summary in template
Liquid, and render QR codes with the qr filter.