Skip to main content

Variables and Components

These are the variables and components you can use in your Email Templates and Scheduled Emails to personalise content and add dynamic elements.

Variables​

These variables are available in all email templates and scheduled emails.

info

The variables listed here are globally available for bookings only. Gift Voucher emails have their own variables where these are not available. Instead, their equivalents are set. You can find these in the Gift Voucher Emails guide.

VariableTypeDescription
[[site_name]]
stringThe name of the site.
[[first_name]]
stringThe first name of the person making the booking.
[[last_name]]
stringThe last name of the person making the booking.
[[email]]
stringThe email address of the person making the booking.
[[phone]]
stringThe phone number of the person making the booking.
[[price_total]]
stringThe total price of the booking - formatted in the currency of the site. (e.g. £100.00)
[[amount_paid]]
stringThe amount paid for the booking - formatted in the currency of the site. (e.g. £100.00)
[[discount_code]]
stringThe discount code applied to the booking, if any. If no discount code was applied, this will be empty.
[[balance_is_due]]
booleanA true/false value indicating if the balance is due.
[[balance_due]]
stringThe balance due for the booking - formatted in the currency of the site. (e.g. £100.00)
[[payment_link_is_available]]
booleanA true/false value indicating if a payment link is available for the booking.
[[payment_link]]
stringThe payment link for the booking.

Components​

The following components are available for use in your email templates.

bookings

[[component bookings]]

Displays a summary of bookings for the transaction.

Notes:

This component is rendered differently depending on whether you are using MJML or HTML. For MJML, it will render directly inside your MJML template as an <mj-section>. For HTML, it will use a pre-rendered template.

info

Looking for a particular variable or component that isn't listed here? We'd love to hear from you! Just submit your idea on our feature request board and we’ll consider it for future updates.