> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/marketing/emails/email-variables/invoice.md).

# Invoice

Use the variables in the list below to customize the **Invoice** shopper email according to your needs.&#x20;

{% hint style="info" %}
Check the **Mandatory** column to see the variables that are required in your customized version of the e-mail.
{% endhint %}

<table><thead><tr><th width="261">Variable name</th><th width="328">Description &#x26; Test values</th><th>Mandatory</th></tr></thead><tbody><tr><td><code>AVANGATE_LOGO</code></td><td>Avangate logo URL.<br><strong>Test value</strong>: https://secure.avangate.com/images/email/vendor_logo.png</td><td>Yes</td></tr><tr><td><code>AVANGATE_ACTED_AS_RESELLER</code></td><td>This is mandatory content you need to keep in your emails, given Avangate acts as Reseller / Merchant of Record for online purchases on your website.<br><strong>Test value</strong>: Avangate has processed your order as the authorized reseller of #merchant commercial name.</td><td>Yes</td></tr><tr><td><code>AVANGATE_SUPPORT_EMAIL</code></td><td>Avangate support email address.<br><strong>Test value</strong>: mailto:support@avangate.com</td><td>No</td></tr><tr><td><code>AVANGATE_SUPPORT_PHONE</code></td><td>Avangate support phone.<br><strong>Test value</strong>: +31 88 0000008</td><td>No</td></tr><tr><td><code>AVANGATE_WEBSITE</code></td><td>Avangate website.<br><strong>Test value</strong>: http://www.avangate.com/</td><td>Yes</td></tr><tr><td><code>BASE_URL</code></td><td>Merchant's full host.<br><strong>Test value</strong>: https://secure.avangate.com/</td><td>No</td></tr><tr><td><code>BOLETO_SLIP_URL</code></td><td>URL pointing to Boleto slip.<br><strong>Test value</strong>: 1</td><td>No</td></tr><tr><td><code>BUSINESS_COMPANY</code></td><td>Avangate company name.<br><strong>Test value</strong>: Avangate</td><td>No</td></tr><tr><td><code>BUSINESS_HOTLINE</code></td><td>Avangate support phone.<br><strong>Test value</strong>: +31 88 0000008</td><td>No</td></tr><tr><td><code>BUSINESS_SUPEMAIL</code></td><td>Avangate support email address.<br><strong>Test value</strong>: mailto:support@avangate.com</td><td>No</td></tr><tr><td><code>BUSINESS_WEBSITE</code></td><td>Avangate website.<br><strong>Test value</strong>: http://www.avangate.com</td><td>No</td></tr><tr><td><code>COMMERCIALNAME</code></td><td>Merchant's commercial name.<br><strong>Test value</strong>: [Software Company Name]</td><td>No</td></tr><tr><td><code>CURRENCY</code></td><td>Order billing currency.<br><strong>Test value</strong>: 0</td><td>Yes</td></tr><tr><td><code>CURRENCY_ORIGINAL</code></td><td>Original order currency (applicable to refunds).<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>DISPLAY_MY_ACCOUNT_INFO</code></td><td>Include or exclude myAccount information in the email body.<br><strong>Test value</strong>: 1</td><td>No</td></tr><tr><td><code>ENCRYPTED_MERCHANT_CODE</code></td><td>Encrypted merchant code.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>FIRSTNAME</code></td><td>Shopper's first name used on the billing information.<br><strong>Test value</strong>: [John</td><td>No</td></tr><tr><td><code>FIRST_NAME_BILLING</code></td><td>Shopper's first name used on the billing information.<br><strong>Test value</strong>: John</td><td>No</td></tr><tr><td><code>GATEWAY_ERROR_CODE</code></td><td>Gateway error code.<br><strong>Test value</strong>: GW_PROCESSING_ERROR — See the full <a href="https://docs.2checkout.com/marketing/emails/email-variables/gateway-error-codes.md">list of Possible Values</a></td><td>No</td></tr><tr><td><code>GATEWAY_ERROR_MESSAGE</code></td><td>Reason why the transaction failed. (e.g. Invalid card, insufficient funds).<br><strong>Test value</strong>: Error processing the card transaction. The card account has not been debited. Card data is invalid or incomplete.</td><td>No</td></tr><tr><td><code>GENERALTOTAL</code></td><td>Total order price.<br><strong>Test value</strong>: 135.2</td><td>No</td></tr><tr><td><code>HAS_RENEWAL_PRODUCTS</code></td><td>Flag that indicates whether at least one product has renewal settings.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>IS_RENEWAL</code></td><td>Flag that indicates whether at least one product has renewal settings.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>LANGUAGE</code></td><td>Order language (abbreviated) selected by shopper.<br><strong>Test value</strong>: en</td><td>No</td></tr><tr><td><code>LASTNAME</code></td><td>Shopper's last name used on the billing information.<br><strong>Test value</strong>: Doe]</td><td>No</td></tr><tr><td><code>LAST_NAME_BILLING</code></td><td>Shopper's last name used on the billing information.<br><strong>Test value</strong>: Doe</td><td>No</td></tr><tr><td><code>MERCHANT_COMMERCIAL_NAME</code></td><td>Merchant's commercial name.<br><strong>Test value</strong>: [Software Company Name]</td><td>No</td></tr><tr><td><code>MERCHANT_SUPPORT_EMAIL</code></td><td>Merchant support email address.<br><strong>Test value</strong>: mailto:support@software-company-website.com</td><td>No</td></tr><tr><td><code>MERCHANT_SUPPORT_PHONE</code></td><td>Merchant support phone number.<br><strong>Test value</strong>: [888-xxx-xxxx]</td><td>No</td></tr><tr><td><code>MY_ACCOUNT_LOGIN_EMAIL</code></td><td>Email address used by shopper to login/signup to myAccount.<br><strong>Test value</strong>: mailto:example@customer-email.com</td><td>No</td></tr><tr><td><code>MY_ACCOUNT_LOGIN_TOKEN</code></td><td>Token assigned to the shopper in order to access myAccount.<br><strong>Test value</strong>: xxxxxxxxxxxx</td><td>No</td></tr><tr><td><code>MY_ACCOUNT_LOGIN_URL</code></td><td>Avangate myAccount login/sign-up URL.<br><strong>Test value</strong>: secure.sofware-company-website.com/myaccount/?lang=en</td><td>Yes</td></tr><tr><td><code>NAMES_OF_PRODUCTS</code></td><td>Names of all products in the order, comma separated.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>ORDERDATE</code></td><td>Order placement date.<br><strong>Test value</strong>: 10/2/2018</td><td>No</td></tr><tr><td><code>ORDER_AMOUNT</code></td><td>Total order price.<br><strong>Test value</strong>: 0</td><td>Yes</td></tr><tr><td><code>ORDER_AMOUNT_ORIGINAL</code></td><td>Original order value (applicable to refunds).<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>ORDER_DATE</code></td><td>Order placement date.<br><strong>Test value</strong>: 10/2/2018</td><td>Yes</td></tr><tr><td><code>ORDER_DATE_STANDARD_FORMAT</code></td><td>Standard format used for the order placement date.<br><strong>Test value</strong>: 10/2/2018</td><td>No</td></tr><tr><td><code>ORDER_FLOW</code></td><td>Purchase flow used to place the order.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>ORDER_REFERENCE_NUMBER</code></td><td>Order reference number.<br><strong>Test value</strong>: [9xxxxxx]</td><td>Yes</td></tr><tr><td><code>ORDER_STATUS</code></td><td>Order status.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>ORDER_WEBSITE</code></td><td>Website where the shopper placed the order.<br><strong>Test value</strong>: http://www.software-company-website.com/</td><td>Yes</td></tr><tr><td><code>PAYABLE_TO</code></td><td>Payee name (applicable to wire transfer).<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>PAYMENT_METHOD</code></td><td>English name for the payment method used.<br><strong>Test value</strong>: Visa/MasterCard/Eurocard</td><td>No</td></tr><tr><td><code>PAYMENT_TYPE_INFO</code></td><td>English payment method name. Includes last four card digits (if applicable).<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>PAYTYPESTR</code></td><td>English name for the payment method used.<br><strong>Test value</strong>: [Visa/MasterCard/Eurocard]</td><td>No</td></tr><tr><td><code>PRODUCTS[index1].LICENSE_TYPE</code></td><td>Type of purchased subscription.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>PRODUCTS[index1].SHORT_DESCRIPTION</code></td><td>Short product description.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>PRODUCTS_DATA[index1].IdProduct</code></td><td>Product ID number.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>PRODUCTS_DATA[index1].PRODUCT_SHORT_DESCRIPTION</code></td><td>Short product description.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>PRODUCTS_NO</code></td><td>Number of products in cart.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>PURCHASE_ORDER_MAX_DATE</code></td><td>Purchase Order due date.<br><strong>Test value</strong>: 10/2/2018</td><td>No</td></tr><tr><td><code>REFNO</code></td><td>Order reference number.<br><strong>Test value</strong>: [9xxxxxx]</td><td>No</td></tr><tr><td><code>RETRYLINK</code></td><td>Payment retry link.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>RETRY_LINK</code></td><td>Payment retry link.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>UPLOADLINK</code></td><td>File upload link.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>UPLOAD_LINK</code></td><td>File upload link.<br><strong>Test value</strong>: 0</td><td>No</td></tr><tr><td><code>USER_EMAIL</code></td><td>Email address used by shopper to login/signup to myAccount.<br><strong>Test value</strong>: mailto:example@customer-email.com</td><td>No</td></tr><tr><td><code>USER_TOKEN</code></td><td>Shopper token for Avangate myAccount access.<br><strong>Test value</strong>: xxxxxxxxxxxx</td><td>No</td></tr><tr><td><code>WEBSITE</code></td><td>Website where the shopper placed the order.<br><strong>Test value</strong>: 0</td><td>No</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.2checkout.com/marketing/emails/email-variables/invoice.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
