Skip to content

Email templates

There are a series of email templates that are available for customisation in Billingbooth, these are used to send out emails to your customers for various reasons, such as when a new invoice is generated, or when a new payment method is required.

The templates themselves can be customised via Settings -> Email Templates, and a full list of the available user templates can be found.

The Delivery navigation menu item

Customisation

Email templates are designed in HTML. Billingbooth has an editor that will allow to edit each template, but you can also View Source and paste in your own HTML content. We recommend you use a service such as Litmus or Email on Acid to test your templates before using them in Billingbooth to ensure that they render correctly across all email clients.

Dynamic content

As part of the content of the email templates, you can use variables to insert dynamic content into the email. These variables are replaced with the appropriate content when the email is sent. We use the Liquid templating language to provide this functionality, this can be used to manipulate content, or to insert dynamic content into the email.

All email templates contain a series of base variables that can be used regardless of the template, and each email template has its own set of custom variables that are available to the relevant template.

To use a template, simply add the variable name into the HTML like so:

html
<p>The name of the organisation that sent you this is {{ organisation_name }}</p>

When the email get sent, this will be replaced with the correct content like so:

html
<p>The name of the organisation that sent you this is Organisation Ltd</p>

You can also use the Liquid templating language to manipulate the content, such as using conditionals:

html
{% if currency == '£' %}
    <p>The currency is Pound Sterling.</p>
{% else %}
    <p>The currency symbol being used is {{ currency }}.</p>
{% endif %}

For more information we recommend you read the Liquid documentation.

Base variables

These variables are available on all email templates.

VariableData TypeExampleDescription
organisation_nameTextBillingbooth LtdThe name of the organisation that sent the email.
organisation_line_1Text1 Union StreetThe first line of the address of the organisation that sent the email.
organisation_line_2TextThe GuildwayThe second line of the address of the organisation that sent the email.
organisation_line_3TextThe DockThe third line of the address of the organisation that sent the email.
organisation_line_4TextThe RoundaboutThe fourth line of the address of the organisation that sent the email.
organisation_townTextGuildfordThe town of the address of the organisation that sent the email.
organisation_countyTextSurreyThe county of the address of the organisation that sent the email.
organisation_postcodeTextGU1 3DAThe postcode of the address of the organisation that sent the email.
organisation_countryTextUnited KingdomThe country of the address of the organisation that sent the email.
organisation_telephoneText+44 1483 123456The telephone number of the organisation that sent the email.
organisation_emailTextjoe@bloggs.comThe email address of the organisation that sent the email.
organisation_webTexthttps://www.billingbooth.comThe website of the organisation that sent the email.
cultureTexten-GBThe language culture code used for formatting
currencyText£The currency symbol in use
logo_urlTexthttps://www.billingbooth.com/images/logo.pngThe URL of the logo of the organisation that sent the email.
portal_urlTexthttps://my.billingbooth.appThe URL of the Billingbooth portal.
is_sandboxBooleantrueWhether the email was sent from a sandbox environment.

Commission report

VariableData TypeExampleDescription
customer_nameTextJoe BloggsThe name of the customer that the commission report is for.
customer_referenceText123456The reference of the customer that the commission report is for.
billing_periodDate2020-01-01The billing period that the commission report is for.
total_commissionDecimal123.45The total commission due in the report.

Credit note

VariableData TypeExampleDescription
credit_note_numberTextCR123The credit note number/reference.
credit_dateDate2020-01-01The date the credit note was issued.
amount_excluding_taxDecimal123.45The amount of the credit note excluding tax.
amount_including_taxDecimal123.45The amount of the credit note including tax.
taxDecimal123.45The amount of tax on the credit note.
customer_nameTextJoe BloggsThe name of the customer that the credit note is for.
customer_referenceText123456The reference of the customer that the credit note is for.
customer_settlement_methodTextDirectDebitThe regular settlement method the customer normally uses.

Customer access activation

VariableData TypeExampleDescription
domainTextbilling.company.comThe customer access portal domain name.
activation_tokenGuid12345678-1234-1234-1234-123456789012The activation token for the customer access portal.

Customer access forgotten password

VariableData TypeExampleDescription
domainTextbilling.company.comThe customer access portal domain name.
tokenGuid12345678-1234-1234-1234-123456789012The reset password token for the customer access portal.

GoCardless mandate setup

VariableData TypeExampleDescription
setup_urlTexthttps://payments.billingbooth.app/gocardlessThe setup URL the user should click on to initiate the mandate setup.

Invoice

VariableData TypeExampleDescription
invoice_numberTextINV12345The invoice number.
issue_dateDate2020-01-01The date the invoice was issued.
due_dateDate2020-01-01The date the invoice is due.
first_payment_collection_dateDate2020-01-01If a payment has been issued against the invoice, the date of the first attempt to collect payment.
last_payment_collection_dateDate2020-01-01If a payment has been issued against the invoice, the date of the latest attempt to collect payment. If payment is retrying, this will be the date of the latest retry.
is_first_invoiceBooleantrueIndicates whether the invoice being emailed is the customer's first invoice.
billing_periodDate2020-01-01The billing period covered by the invoice.
amount_excluding_taxDecimal123.45The amount of the invoice excluding tax.
amount_including_taxDecimal123.45The amount of the invoice including tax.
taxDecimal123.45The amount of tax on the invoice.
customer_nameTextJoe BloggsThe name of the customer that the invoice is for.
customer_referenceText123456The reference of the customer that the invoice is for.
customer_settlement_methodTextDirectDebitThe regular settlement method the customer normally uses.
customer_access_urlTexthttps://billing.company.comThe URL of the customer access portal.
customer_access_register_urlTexthttps://billing.company.com/registerThe URL of the customer access portal registration page.

Invoice reminder

VariableData TypeExampleDescription
invoice_numberTextINV12345The invoice number.
issue_dateDate2020-01-01The date the invoice was issued.
due_dateDate2020-01-01The date the invoice is due.
first_payment_collection_dateDate2020-01-01If a payment has been issued against the invoice, the date of the first attempt to collect payment.
last_payment_collection_dateDate2020-01-01If a payment has been issued against the invoice, the date of the latest attempt to collect payment. If payment is retrying, this will be the date of the latest retry.
billing_periodDate2020-01-01The billing period covered by the invoice.
amount_excluding_taxDecimal123.45The amount of the invoice excluding tax.
amount_including_taxDecimal123.45The amount of the invoice including tax.
taxDecimal123.45The amount of tax on the invoice.
customer_nameTextJoe BloggsThe name of the customer that the invoice is for.
customer_referenceText123456The reference of the customer that the invoice is for.
customer_settlement_methodTextDirectDebitThe regular settlement method the customer normally uses.
customer_access_urlTexthttps://billing.company.comThe URL of the customer access portal.
customer_access_register_urlTexthttps://billing.company.com/registerThe URL of the customer access portal registration page.

Invoice overdue reminder

VariableData TypeExampleDescription
invoice_numberTextINV12345The invoice number.
issue_dateDate2020-01-01The date the invoice was issued.
due_dateDate2020-01-01The date the invoice is due.
billing_periodDate2020-01-01The billing period covered by the invoice.
amount_excluding_taxDecimal123.45The amount of the invoice excluding tax.
amount_including_taxDecimal123.45The amount of the invoice including tax.
taxDecimal123.45The amount of tax on the invoice.
balance_outstandingDecimal123.45The remaining outstanding balance on the invoice.
customer_nameTextJoe BloggsThe name of the customer that the invoice is for.
customer_referenceText123456The reference of the customer that the invoice is for.
customer_settlement_methodTextDirectDebitThe regular settlement method the customer normally uses.
overdue_daysInteger7The number of days overdue.

Stripe instant pay

VariableData TypeExampleDescription
invoice_numberTextINV12345The invoice number to settle.
amountDecimal123.45The amount to settle.
pay_urlTexthttps://payments.billingbooth.app/stripeThe URL the user should click on to initiate the payment.

Stripe mandate/card setup

VariableData TypeExampleDescription
setup_urlTexthttps://payments.billingbooth.app/stripeThe setup URL the user should click on to initiate the mandate/card setup.