---
title: Invoices
related:
  - https://docs.kentico.com/k8/e-commerce-features/configuring-and-managing-your-store/orders.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Invoices (receipts) are commercial documents that you issue to the [customers](https://docs.kentico.com/k8/e-commerce-features/configuring-and-managing-your-store/customers.md) to indicate purchase-related details:

- [products](https://docs.kentico.com/k8/e-commerce-features/configuring-and-managing-your-store/products.md)
- quantities
- prices
- other purchase-related details

The Kentico E-commerce Solution allows you to customize the invoice (receipt) design and use a whole range of pre-defined and data macro expressions.

You can generate and print the invoice (receipt) while editing the respective order on the **Invoice** tab.

![Editing an order - Invoice tab](https://docs.kentico.com/docsassets/k8/invoices/editing_order_invoice_tab.png "Editing an order - Invoice tab")

## Configuring invoices

You can configure the invoice (receipt) template in the **Store configuration** application on the **Invoice** tab (or in **Multistore configuration -> Invoice**; [global](https://docs.kentico.com/k8/e-commerce-features/configuring-and-managing-your-store/multisite-store.md) invoice template only).

> **Info:** This configuration sets only the invoice which is displayed in the administration user interface and which you can print. If you want to send the invoice via email, configure the desired [e-mail template](https://docs.kentico.com/k8/configuring-kentico/managing-e-mail-templates.md) (likely you will choose the _E-commerce - Order payment notification to customer_ template).

The system allows you to further modify the invoice design by:

- using the built-in [editor](https://docs.kentico.com/k8/managing-website-content/working-with-documents-and-pages/editing-documents-and-pages/using-the-editor.md) to edit HTML code representing your invoice
- using special expressions, i.e. [macros](https://docs.kentico.com/k8/macro-expressions.md), to insert dynamic parts of the invoice

For example, you can use the _{%Order.OrderInvoiceNumber#%}_ expression to insert invoice number.

## Viewing available macro examples

If you **Click here for invoice macro examples**, the system displays a complete list of available dynamic expressions:

![Viewing available macro examples](https://docs.kentico.com/docsassets/k8/invoices/viewing_available_macro_examples.png "Viewing available macro examples")

## Adding attachments to invoices

Here you can attach files to the invoice. For example, you can upload an image and insert it into the invoice. The system allows users to perform the following actions on uploaded files:

- **Edit** () - if the file is an image, the system opens the image in the built-in [image editor](https://docs.kentico.com/k8/managing-website-content/working-with-files/editing-images.md). If the file is not an image, the system opens the file in the [metadata editor](https://docs.kentico.com/k8/configuring-kentico/managing-files/editing-file-metadata.md).
- **Delete** () - removes a selected attachment.
- **Update** () - use the action if you want to update the attached file, or replace it with a different file.

> **Info:** The **Attachments** section is available only if you are using [site-specific settings](https://docs.kentico.com/k8/e-commerce-features/configuring-and-managing-your-store/multisite-store/using-site-and-global-e-commerce-settings.md) for your invoice.

![Adding an attachment to the invoice](https://docs.kentico.com/docsassets/k8/invoices/adding_attachment.png "Adding an attachment to the invoice")

## Printing invoices

When printing the invoice, the Kentico E-commerce Solution allows you to split it into several pages. If you experience any issues with the printed design of the invoice in the Internet Explorer browser, try to print out the invoice in a different browser (Firefox, Chrome, etc.).
