# The payments ledger as a CSV for the books

`GET /payments/ledger.csv` · Rivier · shop

The payments ledger as a CSV for the books; any cell a spreadsheet could run as a formula is written as text.

- Scope: shop:read
- Sdk: shop.paymentLedger.csv
- Cli: shop payment ledger csv

## Parameters

- `from` (query), string
- `to` (query), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X GET 'https://api.rivier.ai/payments/ledger.csv' \
  -H 'Authorization: Bearer $KEY'
```
