> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hellonear.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Payments CSV

> A file of every payment a Mind made or tried, with who approved it and the transaction link, that an accountant can open without asking.

**Track:** `realworld`.

The Wallet page has **Download CSV** and **Excel** beside Recent activity. The file has one row per payment attempt: date, status in words, amount, counterparty, purpose, who approved, tx hash and NearBlocks link.

## Try it

After a payment in the app, open **Wallet** and click **Download CSV**.

Through the API (owner only, with the session cookie):

```sh theme={null}
curl -s -b jar $B/v1/minds/$MIND/payments.csv
curl -s -b jar -o payments.xlsx $B/v1/minds/$MIND/payments.xlsx
```

## Details

* "Who approved" is read from the run's own events: `owner`, or `your rule` when the owner's rule skipped the card.

* Refused payments are listed too, with their reason and no tx hash, because a payment the policy refuses has no transaction.

* Cells that start like a spreadsheet formula get a leading `'`, so opening the file cannot run a formula.

* **Excel** has the same rows as an `.xlsx` with typed cells: the date is a date, the amount a number, the NearBlocks link a hyperlink. Excel on a locale whose list separator is `;` (Indonesian, most of Europe) opens a comma CSV in one column; the Excel file opens in columns everywhere.

Source: `paymentsCsv` and `paymentsXlsx` in `apps/be/src/payments.ts`.


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