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

# Export invoices

> Filter invoices and credit notes, then export them as a CSV file per invoice or per fee, including Contract invoices.

## Invoice filtering options

Filter the invoice list before you export it. The export uses the filters you applied.

1. Go to the **Invoices** section.
2. **Use quick filters** for fast, predefined filtering.
3. Select the **Filters options** for more advanced filtering criteria.
4. Click **Reset filters** to remove all active filters when needed.

![Quick filters and filter options above the invoice list](https://mintcdn.com/lago-docs/x0ux42rCkjpwz1jk/guide/invoicing/images/filters-and-quick-filters.png?fit=max\&auto=format\&n=x0ux42rCkjpwz1jk\&q=85\&s=ff67baaca7861289030ad5d3c3351e11)

Invoices filtering options

| Filter | What it keeps |
| - | - |
| Amount | Invoices in an amount range |
| Currency | Invoices issued in one currency |
| Customer | Invoices of one customer |
| Disputed | Disputed or undisputed invoices |
| Issuing dates | Invoices issued in a date range |
| Overdue | Overdue invoices only |
| Payment status | Invoices in one payment status |
| Status | Invoices in one status |
| Type | Invoices of one type. Contract invoices have the type `contract` |
| Billing entity | Invoices of one [billing entity](https://getlago.com/docs/v2/guide/billing-entities.md) |
| Metadata | Invoices with given metadata. API only |

## Basic invoices export

The basic export generates a CSV file with one row per invoice, based on the filters you applied. Lago sends it to the email address of the user who requested the export. The download link stays valid for 7 days.

![Basic invoice export, one row per invoice in a CSV file](https://mintcdn.com/lago-docs/x0ux42rCkjpwz1jk/guide/invoicing/images/invoices-export.png?fit=max\&auto=format\&n=x0ux42rCkjpwz1jk\&q=85\&s=6f3dcad44d362255649459cec8df155c)

Basic invoices export in CSV

## Detailed invoice fees export

The detailed export generates a CSV file with one row per fee, the line items of your invoices. A Contract invoice has one fee per billed Rate Card. Lago sends it by email, and the download link stays valid for 7 days.

![Detailed invoice fees export, one row per fee in a CSV file](https://mintcdn.com/lago-docs/x0ux42rCkjpwz1jk/guide/invoicing/images/fees-export.png?fit=max\&auto=format\&n=x0ux42rCkjpwz1jk\&q=85\&s=17666e52179aa39408bc5fb75759efc1)

Advanced invoice fees export in CSV

> [!WARNING]
>
> **Some fee columns stay empty for Contract fees.** The file has no Contract or Rate Card columns yet, and columns such as `fee_from_date` and `fee_to_date` are empty for Contract fees. To tie a fee to its Contract, take its `fee_lago_id` and [retrieve the fee](https://getlago.com/docs/v2/api-reference/fees/retrieve.md). The response includes its Contract, product and Rate Card.

## Filter and export credit notes

The **Credit notes** list can be filtered and exported too. The behavior matches the invoice export described above, using the [credit note](https://getlago.com/docs/v2/guide/invoicing/credit-notes/overview.md) fields.

## Review a billing period for finance

Start with a single billing entity, currency and issuing-date range so the files cover the same population.

1. Export **invoices** for one row per invoice and **invoice fees** for the underlying line items. Export **credit notes** for the same period if you issued any corrections.
2. Check each Contract's fees against its applied Rate Cards and phases. A phase change or an [override](https://getlago.com/docs/v2/guide/contracts/overrides.md) during the period changes the amount billed. Review the actual invoice rather than assuming a full-period price.
3. Check any [spending minimum](https://getlago.com/docs/v2/guide/rate-cards/spending-minimums.md) true-up against the minimum set on the Rate Card.
4. Review the invoice **payment status** separately from the billed amount. A partial payment can leave an invoice pending until it is fully settled. See [Record manual payments](https://getlago.com/docs/v2/guide/payments/record-manual-payments.md) if payments were recorded outside a connected provider.

These exports explain what was billed and corrected. They are not, by themselves, a revenue-recognition close or a complete payment reconciliation. For the totals behind them, see [Analytics](https://getlago.com/docs/v2/guide/analytics/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.