You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Table of Contents

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.

Supported Tags

The tags described in Blesta are only a list of commonly-used tags, for brevity.

The tags below are all of those available for this email template. For other email and tag customizations, see Customizing Emails.

TagDescriptionNotes
{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 IDe.g. 1500
{invoice.id_code}The invoice IDe.g. 1000
{invoice.date_due}The date that the invoice is dueThe formatting is "YYYY-MM-DD HH:MM:SS"
{invoice.date_due_formatted}A formatted version of the {invoice.date_due} tagThe 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.account_type}The name of the payment account typee.g. "Checking", or "Visa", if the account is ACH or CC, respectively
{payment_account.last4}The last four digits of the card number or account number 
{client_url}The URI to Blesta's client interfacee.g. domain.com/billing/client/
{payment_url}The unique URI for the client to make a payment for this invoicee.g. domain.com/billing/client/pay/method/1000/?sid=abc1234567890
{autodebit_date}The formatted date that the invoice should be auto-debitedThe formatting is in the company's Date Time Format
{amount}The amount due on the invoicee.g. 15.00
{amount_formatted}The formatted amount due on the invoice in the invoice's currency

e.g. $15.00

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.

The {contact} object
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
)
The {invoice} object
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
)
The {payment_account} object
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
    [account_type] => Visa
)


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
    [account_type] => Checking
)

 

 

 

 

  • No labels