Auto Purchase Orders logo Auto Purchase Orders
Help Center / Supplier email notification

Liquid variables


The following attributes are available for a purchase order.

Supplier:

Variable nameDescription
{{ supplier.name }}Supplier contact name
{{ supplier.company }}Supplier company name

Purchase order:

Variable nameDescription
{{ purchase_order.date_created }}Created date
{{ purchase_order.expected_date }}Expected date
{{ purchase_order.po_number }}PO number
{{ purchase_order.currency }}Currency
{{ purchase_order.authorized_by }}Authorized by
{{ purchase_order.comment }}Comment
{{ purchase_order.totals.units_ordered }}Total amount of units ordered
{{ purchase_order.totals.subtotal }}Products subtotal
{{ purchase_order.totals.shipping_and_handling }}Shipping and handling price
{{ purchase_order.totals.total }}Products total amount
{{ purchase_order.products }}Array of products. Check Purchase Order product below for more details
{{ purchase_order.shipping_address }}PO's shipping address. Check address details below
{{ purchase_order.billing_address }}PO's billing address. Check address details below

Purchase order products:

Check this guide to learn more about how to render the products table.

Variable nameDescription
{{ product.supplier_ref }}Supplier ref. (Supplier SKU)
{{ product.quantity }}Quantity
{{ product.price }}Unit product price
{{ product.subtotal_price }}Subtotal price
{{ product.sku }}Variant SKU
{{ product.product_title }}Product title
{{ product.variant_title }}Variant title

Purchase order address:

Variable nameDescription
{{ address.address_line_1 }}Address 1
{{ address.address_line_2 }}Address 2
{{ address.city }}City
{{ address.country }}Country
{{ address.region }}Region
{{ address.postal_code }}Postal code
{{ address.phone }}Phone
{{ address.country_code }}Country code
{{ address.region_code }}Region code
{{ address.company }}Company
{{ address.contact_name }}Contact name

In the above example address name is used, but the PO has 2 addresses – shipping & billing. Use the billing_address or shipping_address variable, not address.


Purchase order customer:

Customer object is only available if PO has a Shopify order.

Variable nameDescription
{{ customer.email }}Email
{{ customer.first_name }}First name
{{ customer.last_name }}Last name
{{ customer.phone }}Phone

Auto Purchase Orders logo
Auto Purchase Orders
Designed, built, and backed by Magic Bits
Dan
Written by Dan
Published on