---
title: Preview Emails with Test Data
url: https://docs.maxio.com/configuration/advanced-billing/email-settings/preview-emails-with-test-data
applies_to: Advanced Billing
updated: 2026-09-19
---

# Preview Emails with Test Data

The email editor renders your templates against a set of sample subscriber data, so you can see exactly how a message resolves before it reaches anyone real. You can edit that sample data to match the scenarios you actually care about, and send yourself a preview of the result.

## What the editor gives you

Four capabilities sit behind the preview pane.

- A live preview of any subscriber email.
- Editable sample data behind that preview.
- The ability to send a preview to the email address on file for your account.
- A WYSIWYG editor for changing the email as you go.

## Preview a subscriber email

Opening the editor for any of your <a href="https://docs.maxio.com/configuration/advanced-billing/settings/configure-email-settings" target="_blank" rel="noopener noreferrer">subscriber emails</a> gives you a starting template. Use it as a base and customize it to carry whatever your subscribers need to know.

The screen has two panes: the email body editor on the left, and the preview on the right.

### An example edit

The example below adds a mailing address and a link to a fictitious account update URL, using variables from the <a href="https://docs.maxio.com/configuration/advanced-billing/email-settings/email-templates" target="_blank" rel="noopener noreferrer">Customize Email Templates</a> help article.

![An email template edited to include the subscriber's mailing address](https://docs.maxio.com/content-images/configuration/advanced-billing/email-settings/preview-emails-with-test-data/29539182230669_Screenshot_2024-08-07_at_13.29.56.png)

*A template edited to include the subscriber's mailing address*

```text
We see that your current mailing address is:<br>
{{customer.address}}<br>
{{customer.city}}, {{customer.state}} {{customer.zip}}
```

> **Important:** A plain `<br>` is fine here, because template bodies aren't validated as XML. In a *layout* it isn't, and a bare `<br>` will be rejected. See the <a href="https://docs.maxio.com/configuration/advanced-billing/email-settings/html-emails" target="_blank" rel="noopener noreferrer">Build HTML Email Layouts</a> help article.

## Change the test data

Advanced Billing pre-populates the test data with a full set of sample values. When those values don't fit the scenario you're testing, edit them.

> **WARNING:** Once you change a test data value, there's no way to restore the original. Note the default before you overwrite it if you might want it back.

**To change a test data value**

1. Select **Test Data** in the upper right of the editor window.
2. Change the field contents to your new value.
3. Select **Save**, then **Back**.

In the example below, the email field changes from `sue.smith@example.com` to `joe.smith@example.com`.

The preview updates to match.

![The preview pane reflecting the changed test data](https://docs.maxio.com/content-images/configuration/advanced-billing/email-settings/preview-emails-with-test-data/29539182234637_Screenshot_2024-08-07_at_13.28.11.png)

*The preview reflecting the changed value*

## Send yourself a preview

Once the email looks right, send a copy to the address on file for your user. Select **Send Preview**.

![The preview email as received](https://docs.maxio.com/content-images/configuration/advanced-billing/email-settings/preview-emails-with-test-data/24266163687437_send_preview2.png)

*The preview email as it arrives*

## Test Liquid conditions

Because the sample data is editable, you can use it to exercise Liquid conditionals rather than just check wording. Set a value that makes a branch true, preview it, then set one that makes it false. See the <a href="https://docs.maxio.com/configuration/advanced-billing/email-settings/liquid-examples" target="_blank" rel="noopener noreferrer">Customize Emails with Liquid Examples</a> help article for the conditionals worth testing this way.

## Things to know

Keep the following in mind while testing:

- Test data values are used only for previewing. They're never used in a real email.
- You can produce scenarios in test data that Advanced Billing would never generate in practice, so a preview that renders isn't proof the same combination can occur.
- Not every editable field appears in email templates. Some exist only to populate other fields. See the <a href="https://docs.maxio.com/configuration/advanced-billing/email-settings/email-templates" target="_blank" rel="noopener noreferrer">Customize Email Templates</a> help article for the variables you can actually use.

## Test data reference

Every value you can configure in the email editor, with its default.

| Email field | Default value | Description |
| customer.address | 123 Market St | Customer street address |
| customer.address\_2 | Unit 4 | Customer street address, second line |
| customer.billing\_portal? | No | Is the billing portal enabled for the subscriber? yes/no |
| customer.city | Boston | Customer city |
| customer.country | US | Customer country |
| customer.created\_at | Current day | Timestamp of when the customer was created |
| customer.email | `sue.smith@example.com` | Email address of customer |
| customer.first\_name | Sue | Customer first name |
| customer.id | 1 | ID of the customer |
| customer.last\_name | Smith | Customer last name |
| customer.organization | Initrode | Organization of the customer |
| customer.phone | 1-555-555-1234 | Phone number of the customer |
| customer.reference | Sue 222 | Reference value for the customer |
| customer.state | MA | Customer state |
| customer.zip | 02116 | Customer zip |
| billing\_portal.invite\_url | `http://billing-portal.example.com/management/123132132` | The URL inviting this customer into the Billing Portal |
| billing\_portal.seller\_name | Acme, Inc. | Your seller name, as shown in the Billing Portal invitation |
| direct\_debit.creditor\_name | Creditor Inc. | Creditor’s name |
| direct\_debit.scheme\_identifier\_reference | 1234567 | Scheme identifier reference |
| direct\_debit.scheme\_identifier\_name | GoCardless | Scheme identifier name |
| direct\_debit.bank\_name | ABC Bank | Bank name |
| direct\_debit.masked\_bank\_branch\_code | XXXX9 | Masked bank branch code |
| direct\_debit.mandate\_url | `http://acme-inc.test-chargifypay.com/go_cardless_mandate_pdfs?links%5Bmandate%5D=1234567` | URL to the GoCardless mandate in the PDF form |
| payment\_profile.bank\_account\_holder\_type | personal | Type of bank account. Personal or business. |
| payment\_profile.bank\_account\_type | checking | Type of bank account. Checking or savings. |
| payment\_profile.bank\_name | Chase | Name of bank where ACH information originates |
| payment\_profile.billing\_address | 123 Market St | Billing street address |
| payment\_profile.billing\_address\_2 | Unit 4 | Billing street address, line 2 |
| payment\_profile.billing\_city | Boston | Billing city |
| payment\_profile.billing\_country | US | Billing country |
| payment\_profile.billing\_state | MA | Billing state |
| payment\_profile.billing\_zip | 02116 | Billing zip code |
| payment\_profile.brand | Visa | Card type/brand |
| payment\_profile.card\_type | visa | Card type/brand |
| payment\_profile.current\_vault | stripe\_connect | The vault storing the payment method |
| payment\_profile.expiration\_month | 02 | Card expiration month |
| payment\_profile.expiration\_year | 2021 | Card expiration year |
| payment\_profile.first\_name | Sue | Payment profile first name |
| payment\_profile.gateway\_handle | stripe-handle | The handle of the gateway the payment method is stored against |
| payment\_profile.id | 2 | Payment profile ID |
| payment\_profile.last\_name | XXXXXXX1111 | Payment profile last name |
| payment\_profile.masked\_bank\_account\_number | XXXX XXXX XXXX 1 | Masked bank account number |
| payment\_profile.masked\_bank\_routing\_number | XXXX XXXX XXXX 1 | Masked bank routing number |
| payment\_profile.masked\_card\_number | XXXX XXXX XXXX 1 | Masked card number |
| payment\_profile.method\_masked\_number | XXXX XXXX XXXX 1 | Masked card number |
| payment\_profile.method\_type | card | Payment profile method |
| payment\_profile.verification\_url | `https://123.com/verify/123/456` | URL to verify ACH account |
| payment\_profile.verified? | No | Is the ACH account verified? |
| payment.amount | $10.89 | Payment amount |
| payment.amount\_in\_cents | 1089 | Payment amount in cents |
| payment.card\_number | XXXX XXXX XXXX 1 | Card number used for current payment |
| payment.card\_type | visa | Card type used for current payment |
| payment.component\_proration? | No | Was the payment a component proration charge? |
| payment.gateway\_transaction\_id | transaction-123 | Gateway transaction ID, generated by the gateway |
| payment.memo | Payment of $10.89 | Payment memo |
| payment.success | No | Was the payment successful? |
| payment.test | No | Was the payment made when the site was in test mode? |
| product\_family.name | Acme Online | Product family name |
| product.accounting\_code | AC 1111 | Account code of the product |
| product.archived\_at | 31 December, 1969 | Timestamp when the product was archived |
| product.archived? | No | Is the product archived? |
| product.currency | USD | The current currency of the site |
| product.description | A delightful free product | Description of the product |
| product.expiration\_duration | 1 month | Product expiration duration |
| product.expires? | No | Does the product expire? |
| product.handle | free | Product API handle |
| product.id | 2 | Product ID |
| product.initial\_charge | $0.00 | Initial setup charge for the current product |
| product.initial\_charge\_in\_cents | 0 | Initial setup charge for the product in cents |
| product.initial\_charge? | No | Is there an initial charge associated with the product |
| product.interval | 1 | Product renewal interval |
| product.interval\_unit | month | Product renewal interval unit |
| product.name | Free | Product name |
| product.offers\_trial? | Yes | Does the product offer a trial? |
| product.price | $10.99 | Current price of the product |
| product.price\_in\_cents | 1099 | Current price of the product in cents |
| product.qualified\_name | Acme Online - Free | Qualified name of the product |
| product.recurring\_duration | 1 month | Product recurring duration |
| product.request\_credit\_card? | Yes | Does the product purchase request a credit card? |
| product.require\_credit\_card? | Yes | Does the product purchase require a credit card? |
| product.trial\_duration | 1 month | Duration of the trial of the product |
| product.trial\_interval | 30 | Duration of the trial of the product |
| product.trial\_interval\_unit | day | Unit of measure for the trial period |
| product.trial\_price | $2.99 | Product trial price |
| product.trial\_price\_in\_cents | 299 | Product trial price in cents |
| product.update\_return\_params | return=true | The parameters string used to construct the return URL |
| product.update\_return\_url | `https://yoursite.example.com?update=true&return=true` | URL provided to the subscriber after successful update via self-service page |
| subscription.activated\_at | Current day | Timestamp in which the subscription was activated at |
| subscription.agreement\_terms | by accepting this you agree that Acme Inc may charge your account | Agreement terms associated with the subscription, as provided on the Public Signup Page |
| subscription.authorizer\_first\_name | Jane | First name of authorizing party for the ACH/bank account on file |
| subscription.authorizer\_last\_name | Doe | Last name of authorizing party for the ACH/bank account on file |
| subscription.balance\_in\_cents | 1001 | Subscription’s current balance in cents. If a subscription is canceled, the balance in cents it had when being canceled. |
| subscription.bank\_account\_on\_file? | No | Is there a bank account / ACH information on file for the subscription currently? |
| subscription.billing\_portal\_management\_url | `http://billing-portal.example.com/management/1231321321` | Billing portal management URL |
| subscription.billing\_portal? | No | Is the billing portal currently enabled for the subscriber? |
| subscription.cancel\_at\_end\_of\_period | Yes | Is the subscription configured to cancel at the end of the billing period? |
| subscription.canceled\_at | Current day | Timestamp in which the subscription was canceled at |
| subscription.cancellation\_message |  | Cancellation message associated with the cancellation |
| subscription.card\_on\_file? | Yes | Is there a credit card on file for the subscription? |
| subscription.coupon\_code | FREESTUFF | Current coupon code applied to the subscription |
| subscription.currency | USD | The current currency of the subscription |
| subscription.current\_account\_balance | $47.50 | The current account balance, formatted in the subscription's currency |
| subscription.current\_billing\_amount | $10.99 | Current amount due as per the “next billing amount” |
| subscription.current\_billing\_amount\_in\_cents | 1099 | Current amount due as per the “next billing amount” in cents |
| subscription.current\_period\_ends\_at | Current day | Timestamp of when the current billing period ends at |
| subscription.current\_period\_starts\_at | Current day | Timestamp of when the current billing period starts at |
| subscription.dunning\_final\_step\_at | Current day | The date and time of the final step of the active dunning schedule |
| subscription.estimated\_renewal\_amount | $10.99 | Estimated renewal amount formatted in currency |
| subscription.estimated\_renewal\_amount\_in\_cents | 1099 | Estimated renewal amount in cents |
| subscription.expires\_at | Current day | Timestamp of the subscription’s expiration |
| subscription.expires\_at\_end\_of\_period? | Yes | Does the subscription expire at the end of the current period? |
| subscription.id | 1 | ID of the subscription |
| subscription.payment\_collection\_method | automatic | Payment collection method of the subscription. Sites using invoice-centric billing can see automatic, remittance, or prepaid; other sites can see automatic or invoice instead. |
| subscription.payment\_method\_on\_file? | Yes | Is there a valid payment method on file |
| subscription.reference | Custom identifier | The unique identifier used within your application for this subscription |
| subscription.referral\_code | REFCODE123 | Subscription’s referral code |
| subscription.state | active | Subscriber’s current subscription state |
| subscription.subscriber\_name | Sue Smith | Subscriber’s full name |
| subscription.total\_revenue | $100.99 | Total revenue of the subscription, formatted in its currency |
| subscription.total\_revenue\_in\_cents | 10099 | Total revenue of the subscription in cents |
| subscription.trial\_ended\_at | Current day | Timestamp when the subscription’s trial ended at in the past (if any) |
| subscription.trial\_ends\_at | Current day | Timestamp when the subscription’s trial ends in the future (if any) |
| subscription.trial\_started\_at | Current day | Timestamp when the subscription’s trial began (if any) |
| subscription.require\_trial\_information? | Yes | Is the Subscription currently on an Introductory Offer Trial Period? |
| subscription.introductory\_offer\_period\_length | 1 month | Length of the Introductory Offer Trial Period |
| subscription.introductory\_offer\_ends\_at | Current day + 1 month | Estimated day on which the Subscription will end its Introductory Offer Trial Period |
| subscription.introductory\_offer\_estimated\_renewal\_amount | $10.00 | Estimated amount of the first subsequent transaction at the end of Subscription’s Introductory Offer Trial Period |
| subscription.update\_url | `http://example.com/update/subscription` | URL for the self-service page associated with the customer |
