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

# Payments

> Record payments, request payment of overdue invoices, and read receipts with lago v2.

| Command | Description |
| - | - |
| `v2 payments create` | Record a manual payment against an invoice. |
| `v2 payments get <lago_id>` | Retrieve a payment. |
| `v2 payments list` | List payments. Filters: `--external-customer-id`, `--invoice-id`. |
| `v2 payment-requests create` | Request payment of overdue invoices. Requires a premium license. |
| `v2 payment-requests get <lago_id>` | Retrieve a payment request. |
| `v2 payment-requests list` | List payment requests. Filters: `--external-customer-id`, `--payment-status`, `--currency`, `--billing-entity-codes`. |
| `v2 payment-receipts get <lago_id>` | Retrieve a receipt. `--expands payment` includes the payment. |
| `v2 payment-receipts list` | List receipts. Filter: `--invoice-id`. |
| `v2 payment-receipts resend-email <lago_id>` | Queue the receipt email. `--to`, `--cc`, `--bcc`. |

Customer payment methods live under [customers](https://getlago.com/docs/v2/guide/lago-cli/commands/customers.md): `payment-methods`, `set-default-payment-method` and `delete-payment-method`.

## payments create

`--invoice-id`, `--amount-cents` (a positive integer) and `--reference` are required. `--paid-at` defaults to now.

## payment-requests create

`--external-customer-id` and `--lago-invoice-ids` (JSON array) select the invoices. They must be overdue, ready for payment processing, and share one currency and billing entity. `--email` defaults to the customer email. `--payment-method-payment-method-type` is `provider` or `manual`. Collection and email delivery are asynchronous.

See [record manual payments](https://getlago.com/docs/v2/guide/payments/record-manual-payments.md), [payment requests](https://getlago.com/docs/v2/guide/payments/payment-requests.md) and [receipts](https://getlago.com/docs/v2/guide/payments/receipts.md).

```bash record a payment theme={"dark"}
lago v2 payments create --invoice-id 1a901a90-1a90-1a90-1a90-1a901a901a90 \
  --amount-cents 12000 --reference "WIRE-2027-0142"
```

```bash request payment theme={"dark"}
lago v2 payment-requests create --external-customer-id acme \
  --lago-invoice-ids '["1a901a90-1a90-1a90-1a90-1a901a901a90"]'
```

```bash receipts theme={"dark"}
lago v2 payment-receipts list --invoice-id 1a901a90-1a90-1a90-1a90-1a901a901a90
lago v2 payment-receipts resend-email 1a901a90-1a90-1a90-1a90-1a901a901a93 \
  --to '["billing@acme.example"]'
```

```text record a payment theme={"dark"}
LAGO_ID  1a901a90-1a90-1a90-1a90-1a901a901a94
STATUS   succeeded
```


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