Table of Contents |
---|
Table of Contents |
---|
maxLevel | 4 |
---|
minLevel | 2 |
---|
outline | true |
---|
class | toc |
---|
|
|
Description
This email template is a reminder for clients that have invoices pending that will be auto-debited soon using their auto-debit payment account. The number of days this email is sent in advance of the auto-debit is configurable under the Payment Due Notices' settings.
...
The tags described in Blesta are only a list of commonly-used tags, for brevity.
Image RemovedImage Added
The tags below are all of those available for this email template. For other email and tag customizations, see Customizing Emails.
Tag | Description | Notes | Version |
---|
{contact.first_name} | The client's first name |
|
|
|
{contact.last_name} | The client's last name |
|
|
|
{contact.email} | The client's email address |
|
|
|
{contact.id_code} | The client's ID | e.g. 1500 |
|
{invoice.id_code} | The invoice ID | e.g. 1000 |
|
{invoice.date_due} | The date that the invoice is due | The formatting is "YYYY-MM-DD HH:MM:SS" |
|
{invoice.date_due_formatted} | A formatted version of the {invoice.date_due} tag | The formatting is in the company's Date Time Format |
|
{payment_account.first_name} | The first name of the payment account holder |
|
|
|
{payment_account.last_name} | The last name of the payment account holder |
|
|
|
{payment_account.type} | The payment account type | e.g. "checking" for an ACH account, or "amex" for a CC account |
|
{payment_account.type_name} | The name of the payment account type | e.g. "Checking" for an ACH account, or " |
Visa", if the account is ACH or CC, respectivelyAmerican Express" for a CC account | 4.1 |
{payment_account.account_type} | The category of payment account given | "cc" or "ach" |
|
{payment_account.last4} | The last four digits of the card number or account number |
|
|
|
{client_url} | The URI to Blesta's client interface | e.g. domain.com/billing/client/ |
|
{payment_url} | The unique URI for the client to make a payment for this invoice | e.g. domain.com/billing/client/pay/method/1000/?sid=abc1234567890 |
|
{autodebit_date} | The formatted date that the invoice should be auto-debited | The formatting is in the company's Date Time Format |
|
{amount} | The amount due on the invoice | e.g. 15.00 |
|
{amount_formatted} | The formatted amount due on the invoice in the invoice's currency | e.g. $15.00 |
|
Expand |
---|
|
Due to the nature of tag objects containing several fields, many of which are likely irrelevant for use in email templates, but may be useful to you in certain circumstances, an example dump of the tag objects are shown below. Code Block |
---|
language | php |
---|
title | The {contact} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1500
[user_id] => 2
[client_group_id] => 1
[primary_account_id] =>
[primary_account_type] =>
[status] => active
[id_code] => 1500
[contact_id] => 1
[first_name] => First
[last_name] => Last
[company] => Company Co.
[email] => first.last@domain.com
[address1] => 123 Main St.
[address2] =>
[city] => City
[state] => CA
[zip] => 90001
[country] => US
[group_name] => General
[company_id] => 1
[username] => first.last@domain.com
[two_factor_mode] => none
[two_factor_key] =>
[two_factor_pin] =>
[date_added] => 2014-06-25 18:05:34
) |
Code Block |
---|
language | php |
---|
title | The {invoice} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[id_format] => {num}
[id_value] => 1
[client_id] => 1
[date_billed] => 2014-06-25 00:00:00
[date_billed_formatted] => June 25, 2014 12:00:00 AM
[date_due] => 2014-07-01 00:00:00
[date_due_formatted] => July 1, 2014 12:00:00 AM
[date_closed] =>
[date_closed_formatted] =>
[date_autodebit] => 2014-06-29 00:00:00
[date_autodebit_formatted] => June 29, 2014 12:00:00 AM
[status] => active
[subtotal] => 10.0000
[total] => 10.0000
[paid] => 0.0000
[previous_due] => 0.0000
[currency] => USD
[note_public] =>
[note_private] =>
[id_code] => 1000
[delivery_date_sent] => 2014-06-25 23:15:00
[client_id_code] => 1500
[client_first_name] => First
[client_last_name] => Last
[client_company] => Company Co.
[client_address1] => 123 Main St.
[client_email] => first.last@domain.com
[due] => 10.0000
) |
Code Block |
---|
language | php |
---|
title | The {payment_account} object |
---|
collapse | true |
---|
| stdClass Object
(
[id] => 1
[contact_id] => 1
[first_name] => First
[last_name] => Last
[address1] => 123 Main St.
[address2] =>
[city] => City
[state] => CA
[zip] => 90001
[country] => US
[gateway_id] => 1
[client_reference_id] =>
[reference_id] =>
[status] => active
[client_id] => 1
)
If the payment account is a credit card account, the following fields will be available as well:
stdClass Object (
[number] => 4111111111111111
[expiration] => 201712
[last4] => 1111
[type] => visa
[type_name] => Visa
[account_type] => Visacc
)
If the payment account is an ACH account, the following fields will be available as well:
stdClass Object (
[account] => 12345678901
[routing] => 1234567890
[last4] => 8901
[type] => checking
[type_name] => Checking
[account_type] => Checkingach
) |
|
...