> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getenso.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoice Template Variables

> Reference for the {{variables}} available in a custom invoice template.

## Overview

Invoice templates are custom HTML, editable under **Settings > Invoice Templates**, filled in using [Handlebars](https://handlebarsjs.com/) `{{variable}}` placeholders. The variables below are the ones documented and validated for the invoice template scope — writing a placeholder that isn't on this list is rejected when you save the template.

Seller and Purchaser contact fields (email, CC, BCC, phone) are resolved from [Contact groups](/docs/core-concepts/contact-groups), not from the entity directly — see that page for how a contact is chosen when more than one could apply.

***

## Invoice Details

| Variable            | Description              | Example                            |
| ------------------- | ------------------------ | ---------------------------------- |
| `{{number}}`        | Invoice number           | `INV-1001`                         |
| `{{invoiceDate}}`   | Formatted invoice date   | `22 Jul 2026`                      |
| `{{dueDate}}`       | Formatted due date       | `05 Aug 2026`                      |
| `{{paymentLink}}`   | Hosted payment link URL  | `https://pay.enso.co/inv/INV-1001` |
| `{{purchaserName}}` | Purchaser's display name | `Jane Doe`                         |

***

## Seller Details

| Variable                                               | Description                      | Example             |
| ------------------------------------------------------ | -------------------------------- | ------------------- |
| `{{ContractPlan.Contract.Seller.legalName}}`           | Legal name of the selling entity | `Enso Inc.`         |
| `{{ContractPlan.Contract.Seller.email}}`               | Seller contact email             | `billing@enso.co`   |
| `{{ContractPlan.Contract.Seller.cc}}`                  | Seller contact CC email(s)       | `finance@enso.co`   |
| `{{ContractPlan.Contract.Seller.bcc}}`                 | Seller contact BCC email(s)      | `audit@enso.co`     |
| `{{ContractPlan.Contract.Seller.phoneNumber}}`         | Seller contact phone number      | `+14155550100`      |
| `{{ContractPlan.Contract.Seller.Addresses.0.address}}` | Seller street address            | `123 Market Street` |
| `{{ContractPlan.Contract.Seller.Addresses.0.city}}`    | Seller city                      | `San Francisco`     |
| `{{ContractPlan.Contract.Seller.Addresses.0.zip}}`     | Seller postal code               | `94105`             |

***

## Purchaser Details

| Variable                                                  | Description                         | Example                 |
| --------------------------------------------------------- | ----------------------------------- | ----------------------- |
| `{{ContractPlan.Contract.Purchaser.legalName}}`           | Legal name of the purchasing entity | `Acme Corp`             |
| `{{ContractPlan.Contract.Purchaser.email}}`               | Purchaser contact email             | `accounts@acmecorp.com` |
| `{{ContractPlan.Contract.Purchaser.cc}}`                  | Purchaser contact CC email(s)       | `ap@acmecorp.com`       |
| `{{ContractPlan.Contract.Purchaser.bcc}}`                 | Purchaser contact BCC email(s)      | `audit@acmecorp.com`    |
| `{{ContractPlan.Contract.Purchaser.phoneNumber}}`         | Purchaser contact phone number      | `+15125550100`          |
| `{{ContractPlan.Contract.Purchaser.Addresses.0.address}}` | Purchaser street address            | `456 Industrial Ave`    |
| `{{ContractPlan.Contract.Purchaser.Addresses.0.city}}`    | Purchaser city                      | `Austin`                |
| `{{ContractPlan.Contract.Purchaser.Addresses.0.zip}}`     | Purchaser postal code               | `73301`                 |

***

## Previewing a Template

The template editor's preview fills every variable above with its example value, so you can check formatting before a real invoice exists. A **test send** uses the same sample data as the preview.
