NewMaxio Metering is now available — usage-based billing for Advanced Billing.Learn more
/

Dunning Email Parameters Reference

··

Last updated on Aug 27, 2026

Each Dunning Schedule step's email editor, including the final step's email, accepts keywords that Advanced Billing replaces with real values before sending. Look up the available parameters below, and see how to use them conditionally in your email content. Custom parameters (also known as dynamic variables or liquid variables) are wrapped in double curly braces, like this: {{custom_parameter}}.

Parameter reference

The following parameters can be used in any dunning email.

ParameterDescription
failure_subjectThe reason the transaction failed. e.g. 'Failed Credit Card Transaction', or 'No Credit Card On File' depending on whether or not the client has a Credit Card on file.
from_addressThe "from address" defined for your dunning emails.
nameThe customer's first name. e.g. Sue
full_nameThe customer's full name. e.g. Sue Smith
product_priceThe recurring price of the Subscription's current Plan.
product_nameThe name of the Plan. e.g. Basic Plan
product_family_and_nameThe Plan's name, qualified with its Plan Family. e.g. Acme Online - Free
balance_in_centsThe amount, if any, they still owe. e.g. 0 (for $0.00) or 23100 (for $231.00). Useful for conditionally adding a reminder.
balanceThe amount, if any, they still owe in dollars. e.g. $0.00 or $2.31
merchant_nameYour merchant name. e.g. Acme Corp.
update_urlThe URL that the customer can use to update their payment method.
masked_card_numberThe customer's credit card, obscured to only show the last 4 digits, e.g. XXXX-XXXX-XXXX-1. Blank for a bank account payment profile; use payment_profile.payment_method_masked_number instead for ACH or Direct Debit dunning emails.
reason_for_declineThe reason a transaction was declined at the gateway. Returns "None" when there's no failed payment to reference.
payment_profile_existsThis returns true or false depending on whether or not the client has a payment profile on file. It can be used to conditionally display text, based on its value.
days_until_card_expirationThe number of days until the customer's card on file expires. Blank when there's no card on file.

Show conditional content with payment_profile_exists

Use payment_profile_exists in an if statement to check whether a payment profile is attached to the Subscription:

liquid
{% if payment_profile_exists %}
  Update your card on file to avoid a lapse in service.
{% else %}
  Add a payment method to avoid a lapse in service.
{% endif %}

This is useful when the same email has to serve both cases. A subscriber whose card was declined and one who has no card on file at all need different wording, since what makes sense for one is wrong for the other.

To add these parameters to a Credit Card dunning email, see Configure Credit Card Dunning.

To add these parameters to an ACH dunning email, see Configure ACH Dunning.

To add these parameters to a Direct Debit dunning email, see Configure Direct Debit Dunning.

To add these parameters to a Manual Remittance dunning email, see Configure Manual Remittance Dunning.

Still need help?
Reach out and our support team will take it from here.

Contact support