> ## 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.

# Download invoice

> Download an invoice PDF or resend the invoice email to your customer.

Download a finalized invoice as a PDF to share with your customer or keep for your records. You can also resend the invoice email through the API.

## Download an invoice PDF

> [tab] Dashboard
>
> 1. Click **Customers**.
> 2. Select a customer.
> 3. Open the **Invoices** tab.
> 4. Click the invoice’s **ellipsis icon**.
> 5. Click **Download invoice**.

> [tab] API
>
> Request the PDF with `POST /invoices/{lago_id}/download_pdf`. The invoice must be finalized.
>
> ```bash Download an invoice PDF theme={"dark"}
> LAGO_URL="https://api.getlago.com"
> API_KEY="__YOUR_API_KEY__"
> INVOICE_ID="__YOUR_INVOICE_ID__"
>
> curl --location --request POST "$LAGO_URL/api/v2/invoices/$INVOICE_ID/download_pdf" \
>   --header "Authorization: Bearer $API_KEY"
> ```
>
> If the PDF is ready, the request returns `200` with the invoice and its `pdf_url`. Use this URL to download the file.
>
> If Lago needs to generate the PDF, the request returns `202` with an empty body. [Retrieve the invoice](https://getlago.com/docs/v2/api-reference/invoices/retrieve.md) later and use `pdf_url` when it becomes available.

## Resend an invoice email

Resend a finalized invoice when your customer needs another copy. Email delivery must be configured on the [billing entity](https://getlago.com/docs/v2/guide/billing-entities.md), and this action requires a premium license.

Check the recipients before sending. If `to` is omitted or empty, Lago uses the customer’s email address.

Send `POST /invoices/{lago_id}/resend_email` with any of these optional fields:

| Field | Meaning |
| - | - |
| `to` | Recipients. When omitted or empty, Lago uses the customer email. |
| `cc` | Additional recipients. |
| `bcc` | Additional recipients. |

```bash Resend an invoice email theme={"dark"}
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
INVOICE_ID="__YOUR_INVOICE_ID__"

curl --location --request POST "$LAGO_URL/api/v2/invoices/$INVOICE_ID/resend_email" \
  --header "Authorization: Bearer $API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "to": ["billing@example.com"],
    "cc": ["finance@example.com"]
  }'
```

A successful request queues the email. It does not confirm delivery.

## Next steps

> [card] [Invoicing settings](https://getlago.com/docs/v2/guide/invoicing/invoicing-settings/overview.md)
>
> Logo, footer, language and custom sections on the PDF.

> [card] [Invoices](https://getlago.com/docs/v2/guide/invoicing/overview.md)
>
> Statuses and available actions.

> [card] [Download an invoice PDF (API)](https://getlago.com/docs/v2/api-reference/invoices/download-pdf.md)
>
> Request and response schema.

> [card] [Resend an invoice email (API)](https://getlago.com/docs/v2/api-reference/invoices/resend-email.md)
>
> Request and response schema.


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