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

# Daily Reports

> The Core Balance and Core Transaction Reports Lead delivers over SFTP every bank day: what's in them, where they arrive, and how they're named.

Lead delivers two reports over SFTP for every bank day. The Core Balance Report gives the ending posted balance of each of your accounts. The Core Transaction Report lists every transaction that posted to those accounts. Each row matches a record in the [Core Balances](https://docs.lead.bank/products/core-balance/overview.md) or [Core Transactions](https://docs.lead.bank/products/core-transaction/overview.md) API, with the same ID, type, and amount.

The two reports:

| Report | What it contains | Replaces |
| :- | :- | :- |
| [Core Balance](https://docs.lead.bank/v2/guides/reports/core-balance-report.md) | The ending posted balance of each account at the bank-day cutoff | Daily Balance |
| [Core Transaction](https://docs.lead.bank/v2/guides/reports/core-transaction-report.md) | Every transaction that posted during the bank day | Daily Activity |

The Daily Balance and Daily Activity reports end on March 20, 2027. For the timeline, see [Daily Bank Reports V2 Migration](https://docs.lead.bank/upcoming-changes.md#daily-bank-reports-v2-migration-and-new-transaction-codes).

## Reports or APIs

The reports and the Core APIs carry the same balances and transactions. With the APIs, you can read them whenever your reconciliation runs, instead of waiting for the daily file:

* [Core Accounts](https://docs.lead.bank/products/core-account/overview.md)
* [Core Balances](https://docs.lead.bank/products/core-balance/overview.md)
* [Core Transactions](https://docs.lead.bank/products/core-transaction/overview.md)

The reports suit loading a full bank day into your own systems in one pass. If you're moving off the Daily Balance and Daily Activity reports, you can move to the V2 reports or to the Core APIs.

## Where Files Arrive

Files arrive in the `bank-reports/` folder on your SFTP connection. Each report has its own folder, and a folder holds only that report's files:

```text theme={null}
/
└── bank-reports/
    ├── core-balance/
    └── core-transaction/
```

To set up an SFTP connection, see [SFTP Setup](https://docs.lead.bank/file-reference/sftp-setup.md).

## File Names

Every file name follows this pattern:

```text theme={null}
DATE_REPORT_EPOCH_MS.csv
```

The placeholders in the pattern:

| Placeholder | What it is | Example |
| :- | :- | :- |
| `DATE` | The bank day the file covers, `YYYY-MM-DD` | `2027-01-19` |
| `REPORT` | The report name, which matches its folder | `core-balance` |
| `EPOCH_MS` | When Lead generated the file, in milliseconds since the Unix epoch, in UTC | `1800419832000` |

For example, `2027-01-19_core-balance_1800419832000.csv` is the Core Balance file for the January 19, 2027 bank day.

Files for the same `DATE` and `EPOCH_MS` belong to one delivery. Every row in a file has a `generated_at` column with the same instant as `EPOCH_MS`, rounded down to the second. To order files, use `EPOCH_MS` from the file name.

## Bank Days and the Cutoff

A *bank day* is the period one file covers. Each bank day closes at the cutoff, 10:00 PM CT. Every calendar day is a bank day, including weekends and bank holidays.

Do not hardcode the cutoff time. The Core Balance file gives the cutoff for each bank day in `cutoff_at`, as an RFC 3339 timestamp in UTC. Convert it to America/Chicago to get the bank day.

Lead delivers one file per report for every bank day. A bank day with no rows gets a file with only the header row.

A transaction is in a bank day's file when its `created_at` is at or before that day's cutoff. A transaction that posts after the cutoff is in the next bank day's file, including interest that posts shortly after midnight. A back-dated entry appears in the file for the bank day it posts, and earlier files do not change.

## Replacement Files

Lead does not change a file after delivering it. If a delivered file needs a fix, Lead sends a replacement for the same report and `DATE` with a higher `EPOCH_MS`. The replacement covers the whole bank day, so for each report and `DATE`, use the file with the highest `EPOCH_MS`. See [Load Daily Reports](https://docs.lead.bank/v2/guides/reports/load-daily-reports.md#if-a-file-is-replaced-or-missing).

## Breaking Changes

Lead announces a breaking change on [Upcoming Changes](https://docs.lead.bank/upcoming-changes.md) before it takes effect. These changes are breaking:

* removing or renaming a column
* changing the column order
* changing a column's type, format, or meaning
* changing the delimiter
* changing the file name or how often files arrive

Adding a column, or adding a value to a column like `type`, is not a breaking change. Lead lists these on the [Changelog](https://docs.lead.bank/changelog.md) after they ship.

## Retention

Files stay on SFTP for 180 days from delivery. Copy them to your own storage.

## Related

* [Load Daily Reports](https://docs.lead.bank/v2/guides/reports/load-daily-reports.md)
* [Core Balances](https://docs.lead.bank/products/core-balance/overview.md)
* [Core Transactions](https://docs.lead.bank/products/core-transaction/overview.md)
