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

# Payment receipts

> Find a payment receipt, download it or resend it to your customer.

A payment receipt documents a payment recorded in Lago. Use it to share proof of payment with your customer.

> [!NOTE]
>
> Payment receipts are a premium add-on, available on request.

An invoice records what is billed. A receipt documents a payment against that balance. Use the payment linked to each receipt to reconcile partial payments.

## Find a receipt

The list returns every receipt of the organization, newest first. Filter with `invoice_id`, `created_at_from` and `created_at_to`. `invoice_id` also returns receipts for payments made through a payment request covering that invoice. An unknown invoice returns an empty list.

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

curl --location --request GET "$LAGO_URL/api/v2/payment_receipts?invoice_id=$INVOICE_ID" \
  --header "Authorization: Bearer $API_KEY"
```

```bash Retrieve a receipt with its payment theme={"dark"}
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
RECEIPT_ID="__YOUR_RECEIPT_ID__"

curl --globoff --location --request GET "$LAGO_URL/api/v2/payment_receipts/$RECEIPT_ID?expands[]=payment" \
  --header "Authorization: Bearer $API_KEY"
```

Receipt read access uses the invoice read permission on the API key.

## Download a receipt

1. Open the payment details page.
2. Download the receipt.

Through the API, retrieve the receipt and use `pdf_url` or `xml_url` to download the document. A URL is `null` while the document is unavailable. `pdf_url_expires_at` and `xml_url_expires_at` indicate when the links expire.

## Resend a receipt email

> [!NOTE]
>
> Resending requires a premium license, valid recipients and an email configuration on the billing entity.

The body accepts optional `to`, `cc` and `bcc` arrays. When `to` is omitted or empty, Lago uses the customer email. A successful response has an empty body and does not confirm email delivery.

> [!WARNING]
>
> Check the recipients before resending the receipt.

```bash Resend a receipt email theme={"dark"}
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
RECEIPT_ID="__YOUR_RECEIPT_ID__"

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

## Next steps

> [card] [Record manual payments](https://getlago.com/docs/v2/guide/payments/record-manual-payments.md)
>
> Payments that generate receipts.

> [card] [Payment requests](https://getlago.com/docs/v2/guide/payments/payment-requests.md)
>
> Collect several invoices at once.

> [card] [List payment receipts (API)](https://getlago.com/docs/v2/api-reference/payment-receipts/list.md)
>
> Filters and response schema.

> [card] [Resend a receipt email (API)](https://getlago.com/docs/v2/api-reference/payment-receipts/resend-email.md)
>
> Request schema.


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