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

Compare with Current View Page History

Version 1 Next »

Table of Contents

This email template is sent based on the values configured for payment reminders and late notices in the Company > Billing settings. Each of the clients' billing contacts will receive this email if any are set, otherwise the primary contact will receive the email.

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 contact's first name 
{contact.last_name}The contact's last name 
{contact.email}The contact's email address 
{contact.id_code}The client's IDe.g. 1500
{invoice.id_code}The invoice IDe.g. 1000
{invoice.date_due_formatted}A formatted version of the {invoice.date_due} tagThe formatting is in the company's Date 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_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}Whether or not autodebit is enabled for this clienti.e. 1 or 0, denoting yes or no, respectively
{autodebit_date}The date the invoice is scheduled to be autodebitedIf not scheduled, the value may be blank or 0
{autodebit_date_formatted}The formatted version of the {autodebit_date} tagThe formatting is in the company's Date Format
{client_url}The URI to Blesta's client interfacee.g. domain.com/billing/client/

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] => 2
    [client_id] => 2
    [user_id] =>
    [contact_type] => primary
    [contact_type_id] => 
    [first_name] => First
    [last_name] => Last
    [title] => 
    [company] => Company Co.
    [email] => first.last@domain.com
    [address1] => 123 Main St.
    [address2] => 
    [city] => City
    [state] => CA
    [zip] => 90001
    [country] => US
)
The {invoice} object
stdClass Object
(
    [id] => 703
    [id_format] => PROFORMA-{num}
    [id_value] => 4
    [client_id] => 2
    [date_billed] => 2014-11-03 21:16:50
    [date_due] => 2014-11-04 23:35:45
    [date_closed] => 
    [date_autodebit] => 
    [status] => proforma
    [subtotal] => 3.6334
    [total] => 3.6834
    [paid] => 0.0000
    [previous_due] => 150.6815
    [currency] => USD
    [note_public] => 
    [note_private] => 
    [id_code] => PROFORMA-4
    [delivery_date_sent] => 
    [client_id_code] => 1501
    [client_first_name] => First
    [client_last_name] => Last
    [client_company] => Company Co.
    [client_address1] => 123 Main St.
    [client_email] => first.last@domain.com
    [due] => 3.6834
    [date_due_formatted] => Nov 04, 2014
    [date_billed_formatted] => Nov 03, 2014
    [date_closed_formatted] => Nov 03, 2014
    [date_autodebit_formatted] => Nov 03, 2014
)
The {payment_account} object
stdClass Object
(
    [id] => 3
    [contact_id] => 2
    [first_name] => First
    [last_name] => Last
    [address1] => 123 Main St.
    [address2] => 
    [city] => City
    [state] => CA
    [zip] => 90001
    [country] => US
    [account] => Jr4dD36GePeFsAEsxn0Qs4oQ46YCKsvnxhLjLbxH6aAqdr3ITYm3V67R3mpSi4Hmkpw1EI3+eJjv6NNewC/9POYify/GXXelEiKMmuZ6s19SLQ2pdMvwdbDOh60UQCyT9ecB554GldiDOsDpDYo1YTiCDn2fogE1bgbfUgW3lTql1fIM/+tbFAyLL/7TWoFXO2SvBv9ssPw0WJBvo4JuKu4UwjLrlcIzH5nBgKTyEgaKN43LhbEgphvwFvp8wMUgBeY/JdC3/SU464fGGSe2A7uQ68YM4Zvz4rkfXidx4KJ7uE3o/++E9d81gRnxdhrJ86/DTXUz/pECrFyyOdcAPbxDe6uPwnjSMoWQj7RFWk8rh3d/Td4DZ5xfkB3450bRpkeLKrrYtykRyNKOj3FzvyjTrtOJqILZ0wfk74zXdojPL68Pzactg5uca1jx/Oyk0E3ZlwPKwPR8cwWJw3hDT1sCQYe/SrKXtOElZrgJkjlc4IFG6ruXM4IzdUm5YmoN
    [routing] => EHW0KhGCWXzMbMS6V7gIoYZ81zfp0GFyunA4IXMzmL5RTt7XaZD48jKazlzJLhCuwH/FKeFsL1wBMc2kbFcSn3/T+DW5hoqr3TkbAulJe8jlp40QU2w4uWJub2PNZcWHPBTScgRow4r/J2pS1SlX/qtqtB0JRBRd5i6BIKBmCc3A0FXD02j4AwidxeocdDzL4rzXbO3+A4wfyioJJbv3Vz+uFm4eyCe6hBjWMNpKJG8rD+v5jlZFk6UrE45CImni8dS2ETVN53KUea5iKJBBxJX5k1EObk5T+Mmkg8zIeZ1wDNV5bbkaQHThLmo38Qx8fxw3D9Fc+cv/wblkZ5cQdLnO1LpU0YSrA6KkV4kApQBz0dBbkCFN95f3c+955wm7sO+IesQtsGPU9qA4botQFRkDRV3VpUrjRzBf7pm8jVE2+tNQK13EkGXfsSjka/rhRtzfOhRjEQwKQZtRf9yitPK1GXQ/Cc8pmaiBnmP4W5YmS+2Sq4MLdVTIqH1ONske
    [last4] => 1111
    [type] => checking
    [gateway_id] => 
    [client_reference_id] => 
    [reference_id] => 
    [status] => active
    [client_id] => 2
    [account_type] => ach
)
  • No labels