Skip to content

Templates: Liquid Reference Guide

Postsale specific Liquid objects, collections, properties, and filters

Updated July 1, 20261 min readInvoices, Packing Slips, Emails and More

This guide lists the Liquid objects, collections, and properties you can use in your Postsale templates. It also includes the Postsale-specific Liquid filters. Check out our Advanced Template Editing help article for more information on using Liquid template language in Postsale.

Objects, Collections, and Properties

Order Objects

OBJECT
order.id
order.number
order.import_id
order.status
order.requested_shipping
order.source
order.archived
order.bill_address.id
order.bill_address.name
order.bill_address.company
order.bill_address.street_line_1
order.bill_address.city
order.bill_address.state
order.bill_address.postal_code
order.bill_address.country_code
order.bill_address.phone
order.bill_address.email
order.bill_address.street_line_2
order.bill_address.street_line_3
order.ship_address.id
order.ship_address.name
order.ship_address.company
order.ship_address.street_line_1
order.ship_address.city
order.ship_address.state
order.ship_address.postal_code
order.ship_address.country_code
order.ship_address.phone
order.ship_address.email
order.ship_address.street_line_2
order.ship_address.street_line_3
order.payment.id
order.payment.name
order.payment.amount

Order Collections

COLLECTIONPROPERTIES
order.items
item.id
item.name
item.quantity
item.sku
item.price
item.weight
item.weight_unit
item.harmonized_code
item.country_of_origin
order.charges
charge.id
charge.description
charge.amount
charge.type
order.notes
note.id
note.content
note.date
note.updated_at
order.payment

Postsale Specific Liquid Filters

FILTERSDESCRIPTIONEXAMPLES
moneyReturns a string formatted as currency with a dollar sign. Pass an optional currency sign to use instead of the dollar sign.{{ 8.99 | money }} returns '$8.99' {{ 8.99 | money: '€' }} returns '€8.99'
parse_nameParses the given string and outputs an object containing first, last, middle, suffix and title properties.{{ "Mr. John Franklin Doe II" | parse_name | json }} returns {"first":"John","last":"Doe","middle":"Franklin","suffix":"II","title":"Mr."}
first_name middle_name last_name suffix titleReturns the specified name piece.{{ "Mr. John Franklin Doe I" | last_name }} returns Doe
shipping_carrierReturns the name of the carrier associated with a shipment.{{ shipment | shipping_carrier }} returns FedEx
shipping_serviceReturns the carrier service name associated with a shipment.{{ shipment | shipping_service }} returns FedEx 2Day®
snake_case_to_labelRemoves any underscores and capitalizes the first letter of each word in a string.{{ "carrier_awaiting_package" | snake_case_to_label }} returns Carrier Awaiting Package
csvCreates a CSV document with columns for each property of the specified object.{{ shipments | csv }} returns A CSV file for the shipment object. There is a column for each property.