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

# paymentTransactionsExport

> HSA/FSA payment transactions as a CSV, the same file the merchant app exports, with shopper emails. Errors with PAYMENTS_NOT_ENABLED when payments are not enabled for this store.

**Required scopes:** [`payments_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-payments_read)

## Arguments

**dateFrom** `[Date](/docs/api-reference/v3/reference/common/date)`

Inclusive first order date, as a US Eastern (America/New\_York) calendar day. Rejected when it is after `dateTo`.

**dateTo** `[Date](/docs/api-reference/v3/reference/common/date)`

Inclusive last order date, as a US Eastern (America/New\_York) calendar day.

## Returns

**paymentTransactionsExport** `[PaymentTransactionsExport!](/docs/api-reference/v3/reference/payments/payment-transactions-export)` *required*

HSA/FSA payment transactions as one CSV: the same file the merchant app's Transactions export downloads. It holds shopper emails.

**fields**

**csv** `String!` *required*

The CSV as the provider produces it, one row per order, including each shopper's email. Left out of the developer log.

**fileName** `String!` *required*

Suggested file name: the provider's when it sends one, otherwise `transactions_<dateFrom>_to_<dateTo>.csv`, or `transactions.csv` with no dates.

**truncated** `Boolean!` *required*

True when the provider capped the file, so `csv` does not hold every transaction in the range. Narrow the date range and export again.

## Example

```graphql theme={null}
query {
  paymentTransactionsExport(dateFrom: "...", dateTo: "...") {
    csv
    fileName
    truncated
  }
}
```


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