How can we help?

Variables in emails

Variables are values that change based on the customer, plan, or payment. For example, to greet the customer by name in an email, start the message with Hi {{first_name}},.

Finding available variables

You don't need to remember variable names or refer to a separate list. Any field that supports variables has a { } icon. You'll find it in the message editor and on the right side of the subject field.

Click the icon to see all available variables, and select one to insert it.

The available variables depend on the email you're editing. For example, payment failure emails include the reason the payment failed, and the payment reminder includes the payment number and the last 4 digits of the card.

Variables for the next payment

The confirmation emails have {{next_payment_date}} and {{next_payment_amount}}. They show when the customer's next payment is due and how much it will be. When there is no next payment, for example because the customer paid in full, the lines that use them are left out.

Variables in payment reminders

In the payment reminder and card expiring emails, {{payment_date}} is the day the upcoming payment will be charged, and {{card_expiry_date}} is the last day of the card's expiry month.

In the payment reminder, a paragraph that uses {{payment_count}}, {{card_last4}} or {{card_expiry_date}} is left out when that detail doesn't apply. A plan that runs until cancelled has no payment count, and a customer paying by bank debit has no card. When the card expires before the payment, the paragraph with {{card_last4}} is replaced by a warning asking the customer to update their card.

Related articles

Email notifications