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

> Collect a customer’s overdue invoices in one payment request.

A payment request groups a customer’s overdue invoices into one collection request. Use it to follow up on an outstanding balance.

> [!NOTE]
>
> Payment requests require a premium license.

## Before you start

* The selected invoices must belong to the customer, be overdue and be ready for payment processing.
* All selected invoices must share the same currency and billing entity.
* Payment collection and email delivery are asynchronous.

## Example

`customer_example` has two overdue USD invoices from `contract_example`: $144.00 and $132.00. One payment request asks for USD 276 in total:

| Field | Value |
| - | - |
| `lago_invoice_ids` | both invoice IDs |
| `amount_cents` | `27600` |
| `currency` | `USD` |
| `payment_status` | `pending` while the request is being processed |

## Create a payment request

> [!WARNING]
>
> A payment request can start collection and email delivery. Check the invoices, recipient and payment method before confirming.

> [tab] Dashboard
>
> 1. Open the customer.
> 2. Click **Request payment** on the overdue balance.
> 3. Review the invoices.
> 4. Review the email preview.
> 5. Confirm.

> [tab] API
>
> | Field | Meaning |
> | - | - |
> | `external_customer_id` | The customer to collect from. |
> | `lago_invoice_ids` | The invoices to include. |
> | `email` | Recipient email. Defaults to the customer email. |
> | `payment_method` | Optional. `payment_method_type` (`provider` or `manual`) and `payment_method_id`. Omit to use the default. See [Payment methods](https://getlago.com/docs/v2/guide/payments/payment-methods.md). |
>
> The response returns `amount_cents`, `currency`, `payment_status` (`pending`, `succeeded`, `failed`) and `lago_invoice_ids`.
>
> ```bash Create a payment request theme={"dark"}
> LAGO_URL="https://api.getlago.com"
> API_KEY="__YOUR_API_KEY__"
>
> curl --location --request POST "$LAGO_URL/api/v2/payment_requests" \
>   --header "Authorization: Bearer $API_KEY" \
>   --header 'Content-Type: application/json' \
>   --data-raw '{
>     "payment_request": {
>       "external_customer_id": "customer_example",
>       "lago_invoice_ids": ["__LAGO_INVOICE_ID_1__", "__LAGO_INVOICE_ID_2__"],
>       "email": "billing@example.com"
>     }
>   }'
> ```

## List and retrieve payment requests

Find requests by customer, payment status or date. See the [List API reference](https://getlago.com/docs/v2/api-reference/payment-requests/list.md) for all filters.

```bash List pending payment requests of a customer theme={"dark"}
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request GET "$LAGO_URL/api/v2/payment_requests?external_customer_id=customer_example&payment_status=pending" \
  --header "Authorization: Bearer $API_KEY"
```

To list one customer's payment requests, you can also call [`GET /customers/{customer_external_id}/payment_requests`](https://getlago.com/docs/v2/api-reference/customers/list-payment-requests). Payments made through a request appear in `GET /payments` with `payable_type: "PaymentRequest"`.

## Next steps

> [card] [Payment retries](https://getlago.com/docs/v2/guide/payments/payment-retries.md)
>
> Retry a single invoice instead.

> [card] [Payment methods](https://getlago.com/docs/v2/guide/payments/payment-methods.md)
>
> Choose which method to charge.

> [card] [Create a payment request (API)](https://getlago.com/docs/v2/api-reference/payment-requests/create.md)
>
> Request and response schema.

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


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