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

# Core Transaction Report

> Fields in the Core Transaction Report, which lists every transaction that posted to your accounts during the bank day.

The Core Transaction Report lists every transaction that posted to your accounts during the bank day. Each row matches a [Core Transaction](https://docs.lead.bank/products/core-transaction/core-transaction-object.md) in the Core Transactions API.

* **Folder:** `bank-reports/core-transaction/`
* **File name:** `DATE_core-transaction_EPOCH_MS.csv`

For file names, the cutoff, and replacement files, see [Daily Reports](https://docs.lead.bank/v2/guides/reports/overview.md).

## Fields

The columns in the file, in order:

| Field | Type | Description | Example |
| :- | :- | :- | :- |
| `core_transaction_id` | string | ID of the Core Transaction, prefixed `core_transaction_`. One row per transaction. Matches `id` in the Core Transactions API. | `core_transaction_3JpKd8vN2wQxT5mRz7bYaL4cE9f` |
| `core_balance_id` | string | The Core Balance the transaction changed, prefixed `core_balance_`. Use it to join to the [Core Balance Report](https://docs.lead.bank/v2/guides/reports/core-balance-report.md). | `core_balance_2xYw9Lp4Kq8RvT3mZ6nBcD1eF7g` |
| `generated_at` | timestamp | When Lead generated this file, as an RFC 3339 timestamp in UTC. Every row has the same value. It's the instant in `EPOCH_MS` in the file name, rounded down to the second. | `2027-01-20T04:37:12Z` |
| `created_at` | timestamp | When the transaction posted to the ledger, as an RFC 3339 timestamp in UTC. A back-dated entry appears in the file for the bank day it posts. | `2027-01-19T18:42:07Z` |
| `description` | string | Memo for the transaction. Up to 120 characters. | `ACH CREDIT PAYROLL` |
| `amount` | integer | Amount of the transaction, as a signed integer in minor units. Positive is a credit to the balance, and negative is a debit. | `-2500` is -\$25.00 |
| `type` | enum | The payment rail or process that created the transaction. See [Transaction types](#transaction-types). | `ach` |
| `currency` | string | ISO 4217 currency code, in capital letters. | `USD` |

Every field has a value in every row.

## Transaction Types

`type` uses the same values as the [type enum](https://docs.lead.bank/products/core-transaction/core-transaction-object.md#the-type-enum) on the Core Transaction object. When `type` names a Lead platform object, such as `ach` or `domestic_wires`, the transaction has a matching payment record you can retrieve. Lead posts the other types, and they have no payment object.

The values of `type`:

| `type` | What it covers |
| :- | :- |
| `ach` | An ACH origination, return, or reversal |
| `checks` | A check deposited, paid, or returned |
| `domestic_wires` | A domestic wire sent or received, or the return of one |
| `international_wires` | An international wire sent or received, or the return of one |
| `instant_payments` | An RTP or FedNow payment sent or received, or the return of one |
| `blockchain_payments` | A blockchain payment or its refund |
| `internal_transfers` | A book transfer between two Lead accounts |
| `fundings` | A loan disbursement |
| `receivable_sales` | The settlement of a receivable sale |
| `interest` | Interest accrued, credited, or adjusted on the balance |
| `fees` | A fee Lead charged to the balance, or a refund of one |
| `sweeps` | Funds moved into or out of a sweep position |
| `lead_generated` | An entry Lead creates outside of a program's own activity, such as network settlement entries, charge-offs, corrections, and manual adjustments |
| `legacy_banking` | Activity from Lead's banking systems outside the platform, such as card, cash, and ATM activity |

Lead can add a value to `type` at any time, and adding one is not a breaking change. Route a value you do not recognize to a default or flag it for review. Do not reject the file.

## Map V1 Transaction Codes to Type

Each `type` replaces a group of `TRANSACTION_CODE` values from the Daily Activity report. Use this table to move logic that reads codes over to `type`:

| `type` | V1 `TRANSACTION_CODE` values |
| :- | :- |
| `ach` | `1014`, `1026`, `1027`, `1028`, `1029`, `1030`, `1031`, `1032`, `1035`, `1047`, `1060`, `1070` |
| `checks` | `1012`, `1013`, `1015`, `1050`, `1051`, `1052`, `1074` |
| `domestic_wires` | `1017`, `1038`, `1054`, `1055` |
| `international_wires` | `1064`, `1071`, `1072`, `1073` |
| `instant_payments` | `1250`, `1251`, `1252`, `1253`, `1254`, `1255` |
| `blockchain_payments` | `1080`, `1081` |
| `internal_transfers` | `1016`, `1075` |
| `fundings` | `900` |
| `receivable_sales` | `945` |
| `interest` | `22`, `23`, `24`, `171`, `172`, `214`, `379`, `380`, `381`, `386`, `755`, `777`, `789`, `790`, `804`, `820`, `824`, `911` |
| `fees` | `012`, `029`, `48`, `49`, `53`, `56`, `58`, `65`, `66`, `68`, `69`, `77`, `80`, `89`, `101`, `102`, `103`, `104`, `105`, `106`, `108`, `109`, `112`, `113`, `116`, `119`, `122`, `123`, `124`, `127`, `128`, `130`, `131`, `132`, `133`, `134`, `135`, `136`, `139`, `140`, `141`, `142`, `143`, `144`, `145`, `146`, `147`, `148`, `153`, `154`, `156`, `157`, `158`, `159`, `160`, `161`, `259`, `260`, `341`, `342`, `343`, `344`, `345`, `346`, `350`, `351`, `352`, `353`, `354`, `355`, `360`, `361`, `362`, `363`, `675`, `775`, `776`, `910` |
| `sweeps` | `822`, `823`, `912` |
| `lead_generated` | `3`, `4`, `5`, `6`, `7`, `82`, `83`, `84`, `85`, `149`, `205`, `206`, `207`, `208`, `209`, `210`, `211`, `212`, `213`, `219`, `234`, `304`, `305`, `310`, `311`, `312`, `313`, `314`, `315`, `316`, `317`, `318`, `319`, `320`, `321`, `322`, `326`, `337`, `338`, `339`, `373`, `377`, `382`, `385`, `435`, `601`, `670`, `701`, `773`, `783`, `787`, `788`, `797`, `800`, `805`, `913`, `937`, `940`, `1075`, `escrowDisbmt`, `escrowInternalAlloc` |
| `legacy_banking` | `8`, `9`, `10`, `12`, `13`, `14`, `16`, `17`, `26`, `27`, `28`, `29`, `30`, `31`, `32`, `35`, `37`, `38`, `40`, `45`, `46`, `47`, `50`, `51`, `52`, `54`, `55`, `59`, `60`, `62`, `64`, `70`, `71`, `72`, `73`, `75`, `79`, `86`, `87`, `90`, `94`, `95`, `96`, `97`, `99`, `107`, `125`, `129`, `137`, `138`, `181`, `186`, `187`, `217`, `218`, `256`, `257`, `258`, `261`, `262`, `263`, `264`, `265`, `266`, `267`, `268`, `269`, `270`, `271`, `272`, `400`, `405`, `407`, `410`, `411`, `412`, `413`, `420`, `421`, `422`, `423`, `424`, `425`, `426`, `427`, `428`, `429`, `430`, `431`, `432`, `433`, `487`, `497`, `498`, `499`, `500`, `501`, `505`, `520`, `521`, `522`, `523`, `524`, `525`, `526`, `527`, `528`, `529`, `530`, `531`, `532`, `533`, `587`, `597`, `600`, `614`, `628`, `629`, `647`, `671`, `672`, `681`, `682`, `683`, `684`, `686`, `687`, `688`, `689`, `700` |

Code `1075` is `internal_transfers` when the entry belongs to an internal transfer created through the API. Otherwise it's `lead_generated`. From January 20, 2027, internal transfers created through the API post under `1016` instead.

Codes are text, not numbers. `012` and `029` are fee codes, and they're different from `12` and `29`.

## Example

A Core Transaction file for the January 19, 2027 bank day, with two transactions on one account:

```csv 2027-01-19_core-transaction_1800419832000.csv theme={null}
core_transaction_id,core_balance_id,generated_at,created_at,description,amount,type,currency
core_transaction_3JpKd8vN2wQxT5mRz7bYaL4cE9f,core_balance_2xYw9Lp4Kq8RvT3mZ6nBcD1eF7g,2027-01-20T04:37:12Z,2027-01-19T18:42:07Z,ACH CREDIT PAYROLL,2150000,ach,USD
core_transaction_7Hn2Lp5Qr8Tv1Wx4Za6Bd9Cf3Gk,core_balance_2xYw9Lp4Kq8RvT3mZ6nBcD1eF7g,2027-01-20T04:37:12Z,2027-01-19T21:10:55Z,Monthly account fee,-2500,fees,USD
```

The first row is a $21,500 ACH credit. The second is a $25.00 fee, so its `amount` is `-2500`.
