Skip to main content

Liquid objects and attributes reference

Find the available Liquid objects and the fields you can use in your templates.

Use this section as a lookup list of information you can insert into a document. An “object” is a type of record, such as an opportunity or invoice. An “attribute” is one detail from that record, such as its name, date or price. Find the record you need, then look for the detail you want to display.

Objects are written inside double curly brackets. For example, {{ order.name }} displays an opportunity name. Some objects are available only in certain document layouts. The global objects company, current_store, current_user and owner_user are available in all layouts.

How to read the tables:

  • Attribute is the exact field name to use

  • Type describes the information (String = text, Number/Decimal = number, Boolean = yes/no or true/false, Array = list);

  • Description tells you what it contains. Copy attribute names exactly. Date formatting options appear at the end.

When a field contains a list (called an “Array”), use a “for” loop to display each entry, or a collection filter to choose one. For example:

{% for item in order.items %}
{{ item.name }}
{% endfor %}

Invoice sources may refer to opportunities. When the first source is an opportunity, this pattern can make its fields available:

{% assign order = invoice.sources.first %}
{{ order.name }}

Company object

Use these fields when you want to include your company details in a template.

Attribute

Type

Description

name

String

Your company name

company_registration_number

String

Your company’s registration number

tax_registration_number

String

Your company’s tax registration number

address - test

String

Your company’s billing address

address_detail

Address

Your company’s billing address detail

icon_url

String

A URL pointing at your company’s logo (if present)

weight_unit

String

The weight unit set in System Preferences

Organisation object

Use these fields when you want to include customer or organisation details in a template.

Attribute

Type

Description

name

String

The organization name

email

String

The organization’s work email address

telephone

String

The organization’s work telephone number

mobile

String

The organization’s work mobile telephone number

address

String

The organization’s primary address

address_detail

Address

The organization’s primary address detail

icon_url

String

A URL pointing at the organization’s logo (if present)

description

String

The organization’s description

is_cash?

Boolean

Is the organization flagged as a cash customer?

on_stop?

Boolean

Is the organization flagged as on stop?

number

String

The organization’s account number

rating

Integer

The organization’s rating

tax_class_name

String

The organization’s tax class name

price_category_name

String

The organization’s price category name

contacts

Array

A list of customer objects for this organization’s contacts

lawful_basis_type_name

String

The value of the legal basis for processing data field

Contact object

Use these fields when you want to include contact details for a person in a template.

Attribute

Type

Description

name

String

The contact name

email

String

The contact's work email address

telephone

String

The contact's work telephone number

mobile

String

The contact's work mobile telephone number

address

String

The contact's primary address

address_detail

Address

The contact's primary address detail

icon_url

String

A URL pointing at the contact's icon (if present)

description

String

The contact's description

title

Boolean

The contact's title

department

Boolean

The contact's department

organisations

Array

A list of organisation objects for this contact's linked organisations

venue

Array

A list of venue objects for this contact's linked venues

Venue object

Use these fields when you want to include venue details in a template.

Attribute

Type

Description

name

String

The venue name

email

String

The venue's work email address

telephone

String

The venue's work telephone number

mobile

String

The venue's work mobile telephone number

address

String

The venue's primary address

address_detail

Address

The venue's primary address detail

icon_url

String

A URL pointing at the venue's icon (if present)

description

String

The venue's description

contacts

Array

A list of contact objects for this venue's linked contacts

User object

Use these fields when you want to include user details in a template.

Attribute

Type

Description

name

String

The user name

email

String

The user's work email address

telephone

String

The user's work telephone number

mobile

String

The user's work mobile telephone number

title

String

The user's title

icon_url

String

A URL pointing at the user's icon (if present)

description

String

The user's description

Invoice item object

Use these fields when you want to include individual invoice lines in a template.

Attribute

Type

Description

name

String

The invoice item name

project_name

String

The project name this invoice item relates to or blank

source_name

String

The source name this invoice item relates to or blank (e.g. the Opportunity Name)

description

String

The invoice item description

invoiceable_type

String

The type of invoice item (e.g. Opportunity, Product Group, Opportunity Item, Item, Surcharge)

is_subtotal?

Boolean

True if the invoice item is a sub-total entry

subtotal_name

String

The name of the invoice item subtotal or blank

subtotal

Decimal

The invoice item subtotal value

is_group?

Boolean

True if the invoice item is a group entry

is_item?

Boolean

True if the invoice item is an invoice item entry

is_principal?

Boolean

True if the invoice item is a principal item (i.e. not an accessory)

is_accessory?

Boolean

True if this invoice item entry is an accessory (child) to a principal (parent) item

is_rental?

Boolean

True if this invoice item entry is a rental charge

is_sale?

Boolean

True if this invoice item entry is a sale charge

is_service?

Boolean

True if this invoice item entry is a service charge

is_product?

Boolean

True if this invoice item entry is linked to a product record

is_service_item?

Boolean

True if this invoice item entry is linked to a service record

is_text_item?

Boolean

True if this invoice item entry is a free text item

depth

Numeric

The invoice item's depth in the tree

quantity

Decimal

The invoice item quantity

price

Decimal

The invoice item unit price without discount; nil if deal priced

unit_charge

Number

The invoice item unit charge amount without discount; nil if deal priced

charge_amount

Number

The invoice item charge total with discount deducted; nil if deal priced

charge_amount_excluding_discount

Number

The invoice item unit charge total without discount; nil if deal priced

price_unit

String

The invoice item's unit name (e.g. each, weekly etc.)

service_unit_name

String

The opportunity item's service unit name (e.g. Hours, Weeks, Miles etc.)

discount_percent

Decimal

The invoice item’s discount percentage; nil if deal priced

discounted_price

Decimal

The invoice item’s unit price with discount; nil if deal priced

discount_amount

Decimal

The total amount of discount on this invoice item; nil if deal priced

has_discount?

Boolean

Is there any discount from items that are not inside a deal?

charge_starts_at

DateTime

The date/time this invoice item's charge starts (if a rental charge)

charge_ends_at

DateTime

The date/time this invoice item's charge ends (if a rental charge)

use_chargeable_days?

Boolean

True if the invoice item has an overridden number of chargeable days

chargeable_days

Decimal

The number of chargeable days in the rental period

charge_total

Decimal

The line total for this invoice item; nil if deal priced

charge_excluding_tax_total

Decimal

The line total for this invoice item excluding tax; nil if deal priced

tax_total

Decimal

The tax total for this invoice item; nil if deal priced

charge_including_tax_total

Decimal

The line total for this invoice item including tax; nil if deal priced

order

Object

The Opportunity (Order) object this invoice item relates to

is_deal_item?

Boolean

Is this invoice item linked to a deal?

is_in_deal?

Boolean

Is the item (group, principal or accessory) inside a deal? I.e. is it an info-only item showing what items are part of the deal?

Vehicle object

Use these fields when you want to include vehicle details in a template.

Attribute

Type

Description

name

String

The vehicle's name

plate

String

The vehicle's number/registration plate

payload

String

The vehicle's payload

volume

String

The vehicle's volume

width

String

The vehicle's width

height

String

The vehicle's height

length

String

The vehicle's length

icon_url

String

A URL pointing at the vehicle's icon (if present)

Invoice object

Use these fields when you want to include invoice dates, numbers and totals in a template.

Attribute

Type

Description

name

String

The invoice name

type

Integer

The invoice type (0 = invoice, 1 = credit note)

type_name

String

The invoice type name (e.g. Invoice)

store_name

String

The name of the store that raised this invoice

store_address

String

The store address

store_address_detail

Address

The store address detail

store_telephone

String

The store work telephone number

store_email

String

The store work email address

store_website

String

The store website link

store_icon_url

String

A URL pointing at the store's icon (if present)

member_name

String

The invoice organisation's name

billing_address_name

String

The organisation's billing address name

billing_address

String

The organisation's billing address selected for this invoice

billing_address_detail

Address

The organisation's billing address detail

delivery_address_name

String

The organisation delivery address name

delivery_address

String

The organisation delivery address selected for this invoice

delivery_address_detail

Address

The invoice's delivery address detail

number

String

The invoice number

reference

String

The organisation's reference for this invoice

invoiced_at

Date

The invoice date

due_at

Date

The invoice due date

external_description

String

The invoice's external description

discount_total

Decimal

The total amount of discount on this invoice

has_discount?

Boolean

Is there any discount from items that are not inside a deal?

charge_total

Decimal

The total of all goods on this invoice

charge_excluding_tax_total

Decimal

The total of all goods excluding tax on this invoice

tax_total

Decimal

The total of tax on this invoice

charge_including_tax_total

Decimal

The invoice total including tax

is_paid?

Boolean

True if this invoice has been marked as paid

sources

Array

A list of source objects that this invoice relates

items

Array

A list of invoice item objects for this invoice

taxes

Array

A list of invoice tax objects for this invoice

transaction_total

Decimal

The total payments or refunds against this invoice

balance

Decimal

The invoice charge total including tax, minus any payments or refunds

deal_discount_total

Number

The total discount of all invoice items that represent a deal, before the deal price was set and any discount percents were set on opportunity items inside the deal

combined_discount_total

Number

The sum of discount_total and deal_discount_total

Invoice tax object

Use these fields when you want to include tax rates and amounts in a template.

Attribute

Type

Description

name

String

The tax rate name

rate

Decimal

The tax rate percentage

taxable_charge

Decimal

The value of goods taxed at this rate

tax

Decimal

The total amount of tax

Project object

Use these fields when you want to include project details and totals in a template.

Attribute

Type

Description

name

String

The project name

store_name

String

The name of the store that raised this project

store_address

String

The store address

store_address_detail

Address

The store address detail

store_telephone

String

The store work telephone number

store_email

String

The store work email address

store_website

String

The store website link

store_icon_url

String

A URL pointing at the store's icon (if present)

member_name

String

The project organisation's name

billing_address_name

String

The organisation's billing address name

billing_address

String

The organisation's billing address selected for this project

delivery_address_name

String

The organisation delivery address name

delivery_address

String

The organisation delivery address selected for this project

delivery_instructions

String

Delivery Instructions entered for this project

reference

String

The organisation's reference for this project

description

String

The project's description

starts_at

Datetime

The project overall start date/time

ends_at

Datetime

The project overall end date/time

rental_charge_total

Decimal

The total of all rental charges on this project

sale_charge_total

Decimal

The total of all sale charges on this project

service_charge_total

Decimal

The total of all service charges on this project

surcharge_total

Decimal

The total of all surcharges on this project

charge_total

Decimal

The total of all goods on this project

charge_excluding_tax_total

Decimal

The total of all goods excluding tax on this project

tax_total

Decimal

The total of tax on this project

charge_including_tax_total

Decimal

The project total including tax

opportunities

Array

A list of opportunities for this project

enquiries

Array

A list of enquiries for this project

drafts

Array

A list of drafts for this project

quotations

Array

A list of quotations for this project

orders

Array

A list of orders for this project

Opportunity (order) object

Use these fields when you want to include opportunity details; “order” is the Liquid name used for opportunities in a template.

Attribute

Type

Description

name

String

The Opportunity name

project_name

String

The Project name this Opportunity is linked to (if any)

state

Integer

Returns the state of an opportunity.

status

Integer

Returns the status of the opportunity. 0=Open, 1=Provisional, 5=Reserved, 20=Active, 40=Completed, 50=Cancelled, 60=Lost, 70=Dead, 80=Postponed

store_name

String

The name of the store that raised this Opportunity

store_address

String

The store address

store_address_detail

Address

The store address detail

store_telephone

String

The store work telephone number

store_email

String

The store work email address

store_website

String

The store website link

store_icon_url

String

A URL pointing at the store’s icon (if present)

member_name

String

The invoice organisation’s name

billing_address_name

String

The organisation’s billing address name

billing_address

String

The organisation’s billing address selected for this Opportunity

billing_address_detail

Address

The organisation’s billing address detail

delivery_address_name

String

The organisation delivery address name

delivery_address

String

The organisation delivery address selected for this Opportunity

delivery_address_detail

Address

The Opportunity delivery address detail

delivery_instructions

String

Delivery Instructions entered for this Opportunity

reference

String

The organisation’s reference for this Opportunity

number

String

The Opportunity number (for Quotes and Orders only)

ordered_at

Date

The Opportunity order date

quote_invalid_at

Date

The Opportunity quote valid to date

description

String

The Opportunity’s description

external_description

String

The Opportunity’s external description

starts_at

Datetime

The Opportunity overall start date/time

ends_at

Datetime

The Opportunity overall end date/time

prep_starts_at

Datetime

The Opportunity prep start date/time

prep_ends_at

Datetime

The Opportunity prep end date/time

load_starts_at

Datetime

The Opportunity load start date/time

load_ends_at

Datetime

The Opportunity load end date/time

deliver_starts_at

Datetime

The Opportunity delivery start date/time

deliver_ends_at

Datetime

The Opportunity delivery end date/time

setup_starts_at

Datetime

The Opportunity setup start date/time

setup_ends_at

Datetime

The Opportunity setup end date/time

show_starts_at

Datetime

The Opportunity show start date/time

show_ends_at

Datetime

The Opportunity show end date/time

takedown_starts_at

Datetime

The Opportunity takedown start date/time

takedown_ends_at

Datetime

The Opportunity takedown end date/time

collect_starts_at

Datetime

The Opportunity collection start date/time

collect_ends_at

Datetime

The Opportunity collection end date/time

unload_starts_at

Datetime

The Opportunity unload start date/time

unload_ends_at

Datetime

The Opportunity unload end date/time

deprep_starts_at

Datetime

The Opportunity de-prep start date/time

deprep_ends_at

Datetime

The Opportunity de-prep end date/time

customer_collecting

Boolean

True if this opportunity is flagged as customer collection

customer_returning

Boolean

True if this opportunity is flagged as customer return

use_chargeable_days

Boolean

True if this opportunity is flagged as using chargeable days

chargeable_days

Float

The amount of chargeable days for this Opportunity

rental_charge_total

Decimal

The total of all rental charges on this Opportunity

sale_charge_total

Decimal

The total of all sale charges on this Opportunity

service_charge_total

Decimal

The total of all service charges on this Opportunity

surcharge_total

Decimal

The total of all surcharges on this Opportunity

charge_total

Decimal

The total of all goods on this Opportunity after deal pricing

charge_excluding_tax_total

Decimal

The total of all goods excluding tax on this Opportunity after deal pricing

tax_total

Decimal

The total of tax on this Opportunity after deal pricing

charge_including_tax_total

Decimal

The Opportunity total including tax after deal pricing

replacement_charge_total

Decimal

The replacement charge total for products on the opportunity

provisional_cost_total

Decimal

The total of all provisional costs on this Opportunity

actual_cost_total

Decimal

The total of all actual costs on this Opportunity

predicted_cost_total

Decimal

The total of all provisional or actual (where entered) costs on this Opportunity

weight_total

Float

The total weight of all items on this Opportunity

items

Array

A list of opportunity item objects for this Opportunity

costs

Array

A list of opportunity cost objects for this Opportunity

participants

Array

A list of Customer/User/Contact objects for this Opportunity

deal_exists?

Boolean

Does a deal exist on the opportunity or any of its groups?

opportunity_has_deal?

Boolean

Has a deal price been set on the opportunity (as opposed to any of its groups)?

discount_total

Number

The total discount of all opportunity items not in a deal

original_discount_total

Number

The total discount amount of all opportunity items before any deal price was applied

deal_discount_total

Number

The total discount of all items inside a deal before the deal price or any discount percent was set

combined_discount_total

Number

The sum ofdiscount_total and deal_discount_total

has_discount?

Boolean

Is there any discount from items that are not inside a deal?

original_charge_total

Number

The opportunity charge total before the deal price was applied

original_charge_excluding_tax_total

Number

Similar to above

original_charge_including_tax_total

Number

Similar to above

original_tax_total

Number

Similar to above

part_invoice_charge_total

Number

Total of part invoices raised against the opportunity

special_items

Array

As items, but only returns the “Spares and Containers” group, as well as “Spares and Containers” items and accessories

items_including_special_items

Array

A list of opportunity item objects for this Opportunity, including “Spares and Containers”

Opportunity item object

Use these fields when you want to include products, services and other opportunity lines in a template.

Attribute

Type

Description

name

String

The product/text item/group name

description

String

The opportunity item's description

is_subtotal?

Boolean

True if this opportunity item entry is a group sub-total

is_group?

Boolean

True if this opportunity item entry is a group heading

is_item?

Boolean

True if this opportunity item entry is an order item

is_principal_item?

Boolean

True if this opportunity item entry is a parent that has child items (e.g. accessories)

is_accessory?

Boolean

True if this opportunity item entry is an accessory (child) to a principal (parent) item

is_rental?

Boolean

True if this opportunity item entry is a rental charge

is_sale?

Boolean

True if this opportunity item entry is a sale charge

is_service?

Boolean

True if this opportunity item entry is a service charge

is_product?

Boolean

True if this opportunity item entry is linked to a product record

is_service_item?

Boolean

True if this opportunity item entry is linked to a service record

is_text_item?

Boolean

True if this opportunity item entry is a free text item

sub_rent?

Boolean

True if this opportunity item entry is being sub-rented

has_discount?

Boolean

True if this opportunity item is discounted with a discount percentage

subtotal_name

String

The sub-total section name if the opportunity item entry is a sub-total

subtotal

Decimal

The sub-total amount if the opportunity item entry is a sub-total

product_group_name

String

The opportunity item's product group name

depth

Numeric

The opportunity item's depth in the tree

weight_total

Decimal

The opportunity item's total weight

transaction_type_name

String

The opportunity item's transaction type name (e.g Sale or Rental)

accessory_mode_name

String

The opportunity item's accessory mode name (e.g Accessory or Safety)

accessory_is_mandatory?

Boolean

True if the opportunity item accessory is mandatory

accessory_is_optional?

Boolean

True if the opportunity item accessory is optional

quantity

Decimal

The opportunity item quantity

price

Decimal

The opportunity item unit price without percentage discount; nil if deal priced

original_price

Number

The opportunity item unit price before deal pricing

price_unit

Decimal

The opportunity item's pricing unit name (e.g. each, weekly etc.)

discount_percent

Decimal

The opportunity item’s discount percentage; nil if deal priced

original_discount_percent

Number

The opportunity item’s discount percentage before deal pricing

discounted_price

Decimal

The opportunity item’s unit price with discount; nil if deal priced

original_discounted_price

Number

The opportunity item’s unit price with discount before deal pricing

starts_at

Decimal

The opportunity item's service start date/time

ends_at

Decimal

The opportunity item's service end date/time

service_unit_name

String

The opportunity item's service unit name (e.g. Hours, Weeks, Miles etc.)

unit_charge_amount

Decimal

The opportunity item unit charge amount without discount; nil if deal priced

original_unit_charge_amount

Number

The opportunity item unit charge amount without discount before deal pricing

charge_amount

Decimal

The opportunity item charge total with discount deducted; nil if deal priced

original_charge_amount

Number

The opportunity item charge total with discount deducted before deal pricing

discount_amount

Decimal

The total amount of discount on this opportunity item; nil if deal priced

original_discount_amount

Number

The total amount of discount on this opportunity item before deal pricing

charge_amount_excluding_discount

Decimal

The opportunity item unit charge total without discount; nil if deal priced

original_charge_amount_excluding_discount

Number

The opportunity item unit charge total without discount before deal pricing

surcharge_amount

Decimal

The opportunity item surcharge total; nil if deal priced

original_surcharge_amount

Number

The opportunity item surcharge total before deal pricing

charge_total

Decimal

The opportunity item charge total with discount deducted and surcharge included; nil if deal priced

original_charge_total

Number

The opportunity item charge total with discount deducted and surcharge included, before deal pricing

replacement_charge_total

Decimal

The opportunity item replacement charge total

charge_total_including_children

Decimal

The opportunity item charge total including its accessories

thumbnail_url

String

The opportunity item's product image (thumbnail size)

image_url

String

The opportunity item's product image (original size)

children

Array

A list of opportunity items within an opportunity group or item.

assets

Array

A list of opportunity item asset objects for this Opportunity Item

product

Object

The product object for this Opportunity Item

service

Object

The service object for this Opportunity Item

charging_periods

Array

A list of charging period objects for this Opportunity Item

surcharges

Array

A list of surcharge objects for this Opportunity Item

group_has_deal?

Boolean

(for group items) Has a deal price been set on the opportunity group?

is_in_deal?

Boolean

Is the item (group, principal or accessory) inside an opportunity or group deal?

discount_total

Number

(for group items) The total discount of opportunity items in a group if it does not have a deal price and it is not in a deal itself, otherwise zero

original_discount_total

Number

(for group items) The total discount of opportunity items in a group before it had a deal price set or it became part of a deal

deal_discount_total

Number

(for group items) The total discount of all items inside a group deal before the deal price or any discount percent was set

combined_discount_total

Number

(for group items) The sum ofdiscount_total and deal_discount_total

original_charge_total

Number

(for group items) The charge total of all items in the group before any deal price was applied to this group

original_charge_excluding_tax_total

Number

Similar to above

original_charge_including_tax_total

Number

Similar to above

original_tax_total

Number

Similar to above

charge_total_including_children

Number

(updated) Zero if the item is in a deal

original_charge_total_including_children

Number

The charge total including children before the item became part of a deal

is_special?

Boolean

Returns true if an opportunity item is part of the “Spares and Containers” group

is_special_group?

Boolean

Returns true if the opportunity item is the “Spares and Containers” group item

is_special_principal?

Boolean

Returns true if the opportunity item is a principal item and part of the “Spares and Containers” group

is_special_accessory?

Boolean

Returns true if the opportunity item is an accessory item and part of the “Spares and Containers” group

Opportunity cost object

Use these fields when you want to include costs associated with an opportunity in a template.

Attribute

Type

Description

subject

String

The cost subject/name

description

String

The opportunity cost's description

cost_date

Date

Date of the opportunity cost

reference

String

The opportunity cost's reference

supplier

Object

An organisation or contact object relating to the cost's supplier

supplier_name

String

The name of the supplier for this opportunity cost

cost_group_name

String

The name of the cost group associated with this cost

provisional_cost

Decimal

The provision cost amount

actual_cost

Decimal

The actual cost amount

price

Decimal

Price for the cost

starts_at

Date

opportunity item start date for a service or opportunity start date

ends_at

Date

opportunity item end date for a service or opportunity end date

quantity

Decimal

item asset quantity

chargeable_days

Decima;

returns sub-rental days or service rate quantity

price_unit

String

Price unit for the cost

service_unit_name

String

Service unit name for the cost

charging_periods

Array

Charging periods object for this cost

unit_charge_amount

Decimal

The unit charge amount for the cost

cost_type_name

String

Purchase, Service, Sub-Rental, Sub-Contract, or Manual

manual_cost?

Boolean

True is a manula cost

asset

Array

Associated opportunity item asset

Opportunity item asset object

Use these fields when you want to include stock allocated to an opportunity item in a template.

Attribute

Type

Description

asset_number

Not specified

The product asset number

barcode_number

Not specified

The product asset number or barcode number (if bulk stock allocation)

container

Not specified

The container reference for this allocation

quantity

Not specified

The quantity for this asset allocation

is_serialised_stock?

Not specified

True if this opportunity item asset entry is for a serialised asset

is_bulk_stock?

Not specified

True if this opportunity item asset entry is for bulk stock

is_resource_stock?

Not specified

True if this opportunity item asset entry is for resource (service) stock

is_non_stock_booking?

Not specified

True if this opportunity item asset entry is for non-stock product

is_sub_rent_booking?

Not specified

True if this opportunity item asset entry is an sub-rent allocation

supplier_name

Not specified

The supplier name if a sub-rent allocation

supplier.address_detail

Not specified

The supplier address detail if sub-rent

stock_level

Not specified

The stock level object for this Opportunity Item Asset

product

Not specified

The product object for this Opportunity Item Asset

service

Not specified

The service object for this Opportunity Item Asset

supplier

Not specified

The supplier object for this Opportunity Item Asset

resource

Not specified

The user, contact, venue or vehicle object for this Opportunity Item Asset (nil if unallocated)

status_name

Not specified

The status name of this Opportunity Item Asset record (Open, Allocated, Prepared, Issued, Checked In, Completed, Moved)

quantity_allocated

Not specified

The quantity allocated

quantity_returned

Not specified

The quantity returned

quantity_sold

Not specified

The quantity sold

cost

Not specified

Associated opportunity cost

Opportunity item surcharge object

Use these fields when you want to include surcharges on opportunity items in a template.

Attribute

Type

Description

group_name

String

The surcharge group name

name

String

The surcharge name

charge

Decimal

The surcharge amount applied; nil if deal priced

original_charge

Number

The surcharge amount applied before deal pricing

Charging period object

Use these fields when you want to include rental charging periods in a template.

Attribute

Type

Description

name

String

The charging period name (e.g. week, day etc.)

base_rate

Decimal

The charging period rate (excluding discount)

rate

Decimal

The charging period rate (including discount)

count

Numeric

The number of periods (e.g. '2' days, '1' week etc.)

Product object

Use these fields when you want to include product names, descriptions and prices in a template.

Attribute

Type

Description

name

String

The product name

description

String

The product description

product_group_name

String

The product’s product group name

icon_url

String

The product image (original size)

is_bulk_stock?

Boolean

True if this product is bulk.

is_serialised_stock?

Boolean

True if this product is serialized.

is_non_stock?

Boolean

True if this product is non-stock.

weight

Decimal

The product’s unit weight

replacement_charge

Decimal

The product’s unit replacement charge value

barcode

String

The product’s barcode number (if bulk stock method)

accessory_only

Boolean

True if this product can only be included on an opportunity as an accessory

post_rent_unavailability

String

The period of time this product is unavailable for following a rental

discountable?

String

True if this product can be discounted.

rental_price

Number

The product’s rental price.

rental_charge_period_name

String

The charge period for the product.

sale_price

Number

The product’s sale price.

charging_periods

Array

A list of charging period objects for this product’s rental rate

assets

Array

A list of stock level objects for this product

Product accessories object

Use these fields when you want to include accessories associated with products in a template.

Attribute

Type

Description

product

Object

The corresponding product object for this accessory

quantity

Number

Quantity of the accessory

zero_priced?

Boolean

True if zero priced

sort_order

Number

The sort order in the list

mode

Number

0 = accessory; 1 = safety item; 2 = component

mode_name

String

Component, Accessory, or Safety item

mode_is_component?

Boolean

True if accessory is a component

mode_is_accessory?

Boolean

True if accessory is accessory

mode_is_safety?

Boolean

True if accessory is safety item

is_mandatory?

Boolean

True if accessory inclusion type is mandatory

is_default?

Boolean

True is accessory inclusion type is default

is_optional?

Boolean

True if accessory inclusion type is optional

parent_transaction_type

Number

0 = both, 1 = rental, 2 = sale

parent_transaction_type_name

String

Rental, Sale, or Both

parent_transaction_type_is_rental?

Boolean

True if accessory is included when parent is rented

parent_transaction_type_is_sale?

Boolean

True if accessory is included when parent is sold

parent_transaction_type_is_both?

Boolean

True if accessory is included when parent is rented or sold

for_parent_rental?

Boolean

True if parent product is rented

for_parent_sale?

Boolean

True if parent product is sold

item_transaction_type

Number

1 = rental, 2= sale

item_transaction_type_name

String

Rental or Sale

item_transaction_type_is_rental?

Boolean

True if accessory is rented

item_transaction_type_is_sale?

Boolean

True if accessory is sold

Quarantine object

Use these fields when you want to include stock quarantine details in a template.

Attribute

Type

Description

name

String

The quarantine name

product

Object

Product object linked to this quarantine

stock_level

Object

Stock level object linked to this quarantine if there is one

supplier

Object

Organisation object for supplier if there is one

source

Object

Opportunity object if the quarantine is related to an opportunity

store_name

String

Name of the store that this quarantine relates to

store_address

String

Address of the store that this quarantine relates to

store_address_detail

Object

Address detail for the store that this quarantine relates to

store_telephone

String

Store telephone

store_email

String

Store email address

store_website

String

Store website

store_icon_url

String

Store logo

type

String

Type of quarantine

reference

String

Quarantine reference

description

String

Quarantine description

starts_at

Datetime

Start date and time of the quarantine

ends_at

Datetime

End date and time of the quarantine

quantity

Number

Quantity quarantined

quantity_booked_out

Number

Quantity booked out of the quarantine

quantity_outstanding

Number

Quantity remaining to be booked out

images

Array

An array of URLs for image attachments uploaded

Address object

Use these fields when you want to include individual address fields in a template.

Attribute

Type

Description

name

String

The address name

street

String

The address street

city

String

The address city

county

String

The address count

state

String

The address state

postcode

String

The address postcode

country

String

The address country name

Service object

Use these fields when you want to include service details and rates in a template.

Attribute

Type

Description

name

String

The service name

description

String

The service's long description

service_revenue_group

String

The service's revenue group name

service_type

Integer

The service's service type ID

service_type_name

String

The service's service type name

day_price

Decimal

The service's daily rate

hour_price

Decimal

The service's hourly rate

distance_price

Decimal

The service's distance rate

flat_rate_price

Decimal

The service's flat rate

icon_url

String

A URL pointing at the service's icon (if present)

discountable?

String

True if this service can be discounted.

Stock level object

Use these fields when you want to include stock and asset records in a template.

Attribute

Type

Description

asset_number

String

The product asset number

serial_number

String

The product asset's serial number

location

String

The product asset's location

is_serialised_stock?

Boolean

True if this product asset entry is for a serialised asset

is_bulk_stock?

Boolean

True if this product asset entry is for bulk stock

is_non_stock_booking?

Boolean

True if this product asset entry is for non-stock product

is_sub_rent_booking?

Boolean

True if this product asset entry is an sub-rent allocation

barcode_url

String

A URL for accessing this product asset's Code-128 barcode image

qrcode_url

String

A URL for accessing this product asset's QR Code image

is_permanent_serialised_container?

Boolean

Returns true if the product asset is a permanent serialized container

is_temporary_serialised_container?

Boolean

Returns true if the product asset is a temporary serialized container

serialised_components_and_descendants

Array

Returns a list of container components for a temporary container

container_weight

Number

If a temporary container, returns the weight of the container plus all component stock levels

product

Array

Returns objects for the stock level’s product

serialised_component_quantity

Number

The quantity in the container component record if this stock level has been created for the container contents (so may be more than one for bulk / non-stock components)

latest_inspection_results

Array

Returns objects for the latest inspection results against the asset

inspection_results

Array

Returns objects for all inspection results against the asset

Inspection result object

Use these fields when you want to include inspection results in a template.

Attribute

Type

Description

stock_level

Array

Stock level objects for the asset on the inspection result

inspection_name

String

Name of the inspection

inspection_at

Datetime

Date inspected

passed

Boolean

true if passed; false otherwise

passed_to_word

String

“Yes” if passed; “No” otherwise

description

String

Inspection description

task_list_results

Array

Objects for the inspection’s test tasks, if present

Inspection test tasks object

Use these fields when you want to include individual inspection checks in a template.

Attribute

Type

Description

name

Name of the test task

value

Value of the test task result

Activity object

Use these fields when you want to include activity details in a template.

Attribute

Type

Description

subject

String

The activity subject

starts_at

Datetime

The activity starts date

ends_at

Datetime

The activity end date

activity_type_name

String

The activity type

priority

Number

The activity's priority

description

String

The activity description

regarding

Object

The opportunity or contact/organisation/user objects

owner

User

The owner user for this activity

time_status_name

String

"Free" or "Busy".

completed?

Boolean

True if the activity is completed

completed_at

Datetime

The activity completion date

for_service?

Boolean

True if this is related to a service booking

participants

Array

List of members included as participants

Stock check object

Use these fields when you want to include stock check details in a template.

Attribute

Type

Description

stock_check_at

Datetime

Date against the stock check

status

Number

0,1,2,3,4,5 or 6

status_name

String

Open, Submitted, Completed, Failed, Reverting, Revert Failed or Cancelled

item_name

String

If checking a product, its name.

product

Object

If checking a product, attributes against the product.

product_group_name

String

If checking a product group name, its name.

product_group

Object

If checking a product group, attributes against the product group.

allowed_stock_type

Number

Allowed stock type against the check:
0 = All
1 = Rental
2 = Sale

allowed_stock_type_name

String

Rental, sale, all

tag_filter

String

Comma separated list of tags

subject

String

Stock check subject

auto_return_bookings

Boolean

true if “Auto-Return Bookings?” toggle is YES; false otherwise.

auto_return_bookings_to_word

String

In English, “Yes” if true, “No” if false.

stock_check_items

Array

list of stock check item objects

Stock check item object

Use these fields when you want to include individual stock check quantities in a template.

Attribute

Type

Description

stock_level

Object

List of stock check level objects related to the stock check item

asset_number

String

Asset number of the stock check item

quantity_held

Number

Quantity held on the stock check

quantity_booked

Number

Quantity booked on the stock check

quantity_available

Number

Quantity available on the stock check

quantity_counted

Number

Quantity counted on the stock check

quantity_change

Number

Quantity change on the stock check

Date filter reference

The symbols in this table tell the date filter which parts of a date or time to show. For example, %Y means the four-digit year and %m means the month number. Copy the symbols exactly.

Use the date filter with a format string to control how dates and times appear. The examples show the syntax and sample output.

Parameter

Description

Example

Sample output

%a

Abbreviated weekday

{{ order.starts_at | date: "%a" }}

Sat

%A

Full weekday name

{{ order.starts_at | date: "%A" }}

Saturday

%b

Abbreviated month name

{{ order.starts_at | date: "%b" }}

Jan

%B

Full month name

{{ order.starts_at | date: "%B" }}

January

%d

Day of month, zero padded (01, 02, 03 etc.)

{{ order.starts_at | date: "%d" }}

4

%-d

Day of month, not zero padded (1, 2, 3 etc.)

{{ order.starts_at | date: "%-d" }}

4

%e

Day of month, blank padded (e.g. 1, 2, 3 etc.)

{{ order.starts_at | date: "%e" }}

4

%F

Returns the date in ISO 8601 format (yyyy-mm-dd)

{{ order.starts_at | date: "%F" }}

41751

%H

Hour of the day, 24-hour clock (00 - 23)

{{ order.starts_at | date: "%H" }}

15

%I

Hour of the day, 12-hour clock (1 - 12)

{{ order.starts_at | date: "%I" }}

7

%m

Month of the year (01 - 12)

{{ order.starts_at | date: "%m" }}

4

%M

Minute of the hour (00 - 59)

{{ order.starts_at | date: "%M" }}

53

%p

Meridian indicator (AM/PM)

{{ order.starts_at | date: "%p" }}

PM

%r

12-hour time (%I:%M:%S %p)

{{ order.starts_at | date: "%r" }}

0.63896990740740744

%R

24-hour time (%H:%M)

{{ order.starts_at | date: "%R" }}

0.63958333333333328

%S

Second of the minute

{{ order.starts_at | date: "%S" }}

57

%T

24-hour time (%H:%M:%S)

{{ order.starts_at | date: "%T" }}

0.63973379629629634

%U

The number of the week in the current year, starting with Sunday as the first day of the first week.

{{ order.starts_at | date: "%U" }}

16

%W

The number of the week in the current year, starting with Monday as the first day of the first week.

{{ order.starts_at | date: "%W" }}

16

%w

Day of the week (0 - 6, with Sunday being 0).

{{ order.starts_at | date: "%w" }}

2

%y

Year without a century (00.99)

{{ order.starts_at | date: "%y" }}

15

%Y

Year with a century (00.99)

{{ order.starts_at | date: "%Y" }}

2015

Did this answer your question?