Bite Apps › SafeCAMT › BAI2 format
BAI2 file format explained — records, control totals and type codes
How a BAI2 balance report is built: the eight record types field by field, continuation lines, implied decimals, funds availability, the arithmetic behind the control totals in the 49, 98 and 99 records, and the full list of 469 uniform type codes.
Have a BAI2 file that will not load, or need it in Excel? SafeCAMT checks every control total, names every type code and exports the transactions — in your browser, nothing uploaded.
Open SafeCAMT — free, in your browser- A complete BAI2 file
- The eight record types
- 01 and 02: file and group header
- 03: account, status and summary
- 16: transaction detail
- 88: continuation
- Amounts and implied decimals
- Funds type
- Control totals and record counts
- Type codes
- BAI2, BTRS and camt.053
- FAQ
A complete BAI2 file
01,EXAMPLEBANK,EXAMPLECORP,261111,0530,1,80,,2/ 02,EXAMPLECORP,EXAMPLEBANK,1,261110,2359,USD,2/ 03,4520001234,USD,010,+125043210,,,015,+133618210,,/ 88,100,9825000,2,,400,1250000,1,/ 16,165,8450000,0,ACH26314000123,INV-20261104,NORTHWIND RETAIL INC 88,ENTRY DESCR:PAYMENT 16,301,1375000,S,875000,300000,200000,DEP0001177,,BRANCH DEPOSIT 0417 16,475,1250000,0,CHK0010482,10482,CHECK PAID 49,+280811420,7/ 98,+280811420,1,9/ 99,+280811420,1,11/
Read from the top: Example Bank sends a file created on 11 November 2026 at 05:30. It holds one group — final previous-day data for 10 November, in US dollars — and one account, 4520001234. The account opened with a ledger balance of 1,250,432.10 (type 010) and closed at 1,336,182.10 (type 015). The continuation line adds two summaries: total credits 98,250.00 in 2 items (type 100) and total debits 12,500.00 in 1 item (type 400). Three transactions follow: an ACH credit of 84,500.00, a deposit of 13,750.00 of which 8,750.00 is available at once, 3,000.00 after one day and 2,000.00 later, and check 10482 for 12,500.00. 1,250,432.10 + 98,250.00 − 12,500.00 = 1,336,182.10, so the account reconciles.
The eight record types
Every line starts with a two-digit record code. Fields are separated by commas, and a slash ends the record. An empty field keeps its comma: ,, means “not given”.
| Code | Record | How often | What it holds |
|---|---|---|---|
| 01 | File header | Once, first record | Sender, receiver, creation date and time, file number, version. |
| 02 | Group header | Once per group | Originating bank, as-of date and time, currency. A group is one bank and one business date. |
| 03 | Account identifier and summary status | Once per account | Account number, currency, then any number of status and summary amounts. |
| 16 | Transaction detail | Any number per account | One transaction: type code, amount, funds type, two references, text. |
| 88 | Continuation | After any record | Carries on with the fields of the record above when one line is not enough. |
| 49 | Account trailer | Once per account | Account control total and number of records. |
| 98 | Group trailer | Once per group | Group control total, number of accounts, number of records. |
| 99 | File trailer | Once, last record | File control total, number of groups, number of records. |
The nesting is strict: a file contains groups, a group contains accounts, an account contains its transactions. A 49 always closes the last 03, a 98 the last 02, and the 99 the 01.
01 and 02: file and group header
01,EXAMPLEBANK,EXAMPLECORP,261111,0530,1,80,,2/
| Field | Status | Contents |
|---|---|---|
| Sender identification | Required | Who sends the file — usually the bank’s routing number or an ID agreed with the bank. |
| Receiver identification | Required | Who receives it — your company ID at the bank. |
| File creation date | Required | YYMMDD. |
| File creation time | Required | HHMM, 0000–2400 in the sender’s time zone. Some banks write 9999 for end of day. |
| File identification number | Required | Distinguishes files created on the same date. |
| Physical record length | Optional | Fixed line length, for example 80. Empty means variable length. |
| Block size | Optional | Lines per block. Almost always empty. |
| Version number | Required | Always 2 for BAI2. BTRS files carry 3. |
02,EXAMPLECORP,EXAMPLEBANK,1,261110,2359,USD,2/
| Field | Status | Contents |
|---|---|---|
| Ultimate receiver identification | Optional | Final receiver of this group. |
| Originator identification | Required | The bank the accounts are held with. |
| Group status | Required | 1 update, 2 deletion, 3 correction, 4 test only. |
| As-of date | Required | YYMMDD — the business date the balances and transactions belong to. |
| As-of time | Optional | HHMM. |
| Currency code | Optional | ISO 4217. Empty means USD. |
| As-of-date modifier | Optional | 1 interim previous-day, 2 final previous-day, 3 interim same-day, 4 final same-day. |
03: account identifier, status and summary
03,4520001234,USD,010,+125043210,,,015,+133618210,,/
| Field | Status | Contents |
|---|---|---|
| Customer account number | Required | The account at the bank. Leading zeros count. No comma or slash. |
| Currency code | Optional | Empty means the group currency. |
| Type code | Optional, repeating | A status code (001–099) or a summary code. See the type code tables below. |
| Amount | Optional, repeating | No decimal point. Status amounts may be signed (+ or −); summary amounts are unsigned. |
| Item count | Optional, repeating | Number of items behind a summary amount. Must stay empty after a status code. |
| Funds type | Optional, repeating | Availability of a summary amount. Must stay empty after a status code. |
After the account number and currency, the record repeats the same four fields — type code, amount, item count, funds type — once for every balance or total the bank reports. In the example, 010,+125043210,, is the opening ledger with its two empty fields, and 015,+133618210,, the closing ledger. An account that only identifies itself is written 03,4520001234,,,,,/.
16: transaction detail
16,475,1250000,0,CHK0010482,10482,CHECK PAID
| Field | Status | Contents |
|---|---|---|
| Type code | Required | A detail code: 100–399 credit, 400–699 debit, 890 for a text-only message. |
| Amount | Optional | No decimal point and never a sign. Empty for type 890. |
| Funds type | Optional | One letter or digit, followed by extra fields for S, V and D — see below. |
| Bank reference number | Optional | The bank’s reference. No comma or slash. |
| Customer reference number | Optional | Your reference. For check types 474, 475 and 395 it is the check number. |
| Text | Optional | Free text to the end of the line. It may contain commas and slashes but must not start with a slash. A record with text has no closing slash; a record without text ends with ,/. |
Whether a 16 record is a credit or a debit is not written anywhere in the record — it follows from the type code. That is why a parser needs the type code table.
88: continuation
An 88 record continues the record directly above it, in the same format. There are two cases:
- More fields. The line above ends with a slash after a complete field, and the 88 goes on with the next field:
88,100,9825000,2,,400,1250000,1,/adds two more type codes to the 03 record. - More text. The line above ends inside the text of a 16 record, without a slash, and the 88 carries on the text:
88,ENTRY DESCR:PAYMENT.
A field other than text is never split across two lines. Continuation lines count as records in the 49, 98 and 99 counts.
Amounts and implied decimals
Amounts have no decimal point. The currency decides how many of the digits are decimals: 1250000 is 12,500.00 in USD, 1,250,000 in JPY and 1,250.000 in KWD. The currency is the one in the 03 record; if that is empty, the one in the 02 record; if that is empty too, USD.
Only status amounts (types 001–099) may carry a sign — an overdrawn ledger balance is written 010,-2500000. Summary and detail amounts are always unsigned.
Funds type
The funds type says when the money is available. It is a single character, and three of the values are followed by extra fields:
| Funds type | Meaning | Fields that follow |
|---|---|---|
| Z | Unknown (the default when the field is empty) | — |
| 0 | Immediate availability | — |
| 1 | One-day availability | — |
| 2 | Two-or-more-day availability | — |
| S | Distributed availability, three buckets | Immediate amount, one-day amount, two-or-more-day amount |
| V | Value dated | Value date YYMMDD, value time HHMM (may be empty) |
| D | Distributed availability, any number of days | Number of distributions, then that many pairs of days and amount |
Examples: …,S,875000,300000,200000,… splits 13,750.00 into 8,750.00 immediate, 3,000.00 one-day and 2,000.00 later. …,V,261112,,… is value dated 12 November 2026 with no time. …,D,2,0,875000,3,500000,… gives two distributions: 8,750.00 immediate and 5,000.00 after three days. Because S, V and D add fields, the bank reference of a 16 record is not always the fifth field — count from the funds type.
Control totals and record counts
Each trailer lets the receiver prove that nothing was lost or changed:
| Record | Control total | Counts |
|---|---|---|
| 49 | Sum of every amount in the 03 record, its 88 continuations and all 16 records of the account. Status amounts count with their sign. | Records in the account: the 03, every 16 and 88, and the 49 itself. |
| 98 | Sum of the account control totals in the group. | Number of accounts (03 records); records in the group from the 02 to the 98. |
| 99 | Sum of the group control totals in the file. | Number of groups (02 records); every record in the file from the 01 to the 99. |
In the example the account control total is 280811420 = 125043210 + 133618210 (the two balances) + 9825000 + 1250000 (the two summaries) + 8450000 + 1375000 + 1250000 (the three transactions). Three things trip people up:
- The total is a plain sum of the digits as written — a hash, not a balance. Credits and debits are both added, and so are balances.
- The availability amounts after a funds type S or D (875000, 300000 and 200000 above) are not part of the total. Item counts are not either.
- Record counts include the 88 lines. The example account has 7 records: one 03, two 88, three 16 and the 49.
Delete or add a single line by hand and the 49, 98 and 99 records are all wrong. SafeCAMT checks every total and count and can write a copy of the file with them recalculated.
Type codes
A three-digit type code names every amount. The number range tells you what kind of amount it is:
| Range | Used for |
|---|---|
| 001–099 | Account status |
| 100 | Total credits (summary) |
| 101–399 | Credit summary and detail |
| 400 | Total debits (summary) |
| 401–699 | Debit summary and detail |
| 700–799 | Loan summary and detail |
| 890 | Non-monetary information |
| 900–919 | Bank-specific status codes |
| 920–959 | Bank-specific credit codes |
| 960–999 | Bank-specific debit codes |
Codes 900–999 are not standardised: each bank assigns its own, so ask your bank for its list. The ones you will meet in almost every file:
| Code | Level | Direction | Name |
|---|---|---|---|
| 010 | Status | — | Opening Ledger |
| 015 | Status | — | Closing Ledger |
| 030 | Status | — | Current Ledger |
| 040 | Status | — | Opening Available |
| 045 | Status | — | Closing Available |
| 060 | Status | — | Current Available |
| 072 | Status | — | 1-Day Float |
| 074 | Status | — | 2 or More Days Float |
| 100 | Summary | Credit | Total Credits |
| 400 | Summary | Debit | Total Debits |
| 108 | Detail | Credit | Credit (Any Type) |
| 115 | Detail | Credit | Lockbox Deposit |
| 142 | Detail | Credit | ACH Credit Received |
| 165 | Detail | Credit | Preauthorized ACH Credit |
| 169 | Detail | Credit | Miscellaneous ACH Credit |
| 175 | Detail | Credit | Check Deposit Package |
| 195 | Detail | Credit | Incoming Money Transfer |
| 275 | Detail | Credit | ZBA Credit |
| 301 | Detail | Credit | Commercial Deposit |
| 354 | Detail | Credit | Interest Credit |
| 409 | Detail | Debit | Debit (Any Type) |
| 451 | Detail | Debit | ACH Debit Received |
| 455 | Detail | Debit | Preauthorized ACH Debit |
| 469 | Detail | Debit | Miscellaneous ACH Debit |
| 475 | Detail | Debit | Check Paid |
| 495 | Detail | Debit | Outgoing Money Transfer |
| 555 | Detail | Debit | Deposited Item Returned |
| 575 | Detail | Debit | ZBA Debit |
| 698 | Detail | Debit | Miscellaneous Fees |
| 699 | Detail | Debit | Miscellaneous Debit |
The full uniform list — 469 codes — follows. “Level” says where a code belongs: status and summary codes in the 03 record, detail codes in 16 records.
- Account status codes (001–099)
- Credit codes (100–399)
- Debit codes (400–699)
- Loan codes (700–799)
- Non-monetary information (890)
Account status codes (001–099)
Balances and float. Used only in 03 records (and their 88 continuations); the amount may carry a sign.
| Code | Level | Direction | Name |
|---|---|---|---|
| 010 | Status | — | Opening Ledger |
| 011 | Status | — | Average Opening Ledger MTD |
| 012 | Status | — | Average Opening Ledger YTD |
| 015 | Status | — | Closing Ledger |
| 020 | Status | — | Average Closing Ledger MTD |
| 021 | Status | — | Average Closing Ledger - Previous Month |
| 022 | Status | — | Aggregate Balance Adjustments |
| 024 | Status | — | Average Closing Ledger YTD - Previous Month |
| 025 | Status | — | Average Closing Ledger YTD |
| 030 | Status | — | Current Ledger |
| 037 | Status | — | ACH Net Position |
| 039 | Status | — | Opening Available + Total Same-Day ACH DTC Deposit |
| 040 | Status | — | Opening Available |
| 041 | Status | — | Average Opening Available MTD |
| 042 | Status | — | Average Opening Available YTD |
| 043 | Status | — | Average Available - Previous Month |
| 044 | Status | — | Disbursing Opening Available Balance |
| 045 | Status | — | Closing Available |
| 050 | Status | — | Average Closing Available MTD |
| 051 | Status | — | Average Closing Available - Last Month |
| 054 | Status | — | Average Closing Available YTD - Last Month |
| 055 | Status | — | Average Closing Available YTD |
| 056 | Status | — | Loan Balance |
| 057 | Status | — | Total Investment Position |
| 059 | Status | — | Current Available (CRS Supressed) |
| 060 | Status | — | Current Available |
| 061 | Status | — | Average Current Available MTD |
| 062 | Status | — | Average Current Available YTD |
| 063 | Status | — | Total Float |
| 065 | Status | — | Target Balance |
| 066 | Status | — | Adjusted Balance |
| 067 | Status | — | Adjusted Balance MTD |
| 068 | Status | — | Adjusted Balance YTD |
| 070 | Status | — | 0-Day Float |
| 072 | Status | — | 1-Day Float |
| 073 | Status | — | Float Adjustment |
| 074 | Status | — | 2 or More Days Float |
| 075 | Status | — | 3 or More Days Float |
| 076 | Status | — | Adjustment to Balances |
| 077 | Status | — | Average Adjustment to Balances MTD |
| 078 | Status | — | Average Adjustment to Balances YTD |
| 079 | Status | — | 4-Day Float |
| 080 | Status | — | 5-Day Float |
| 081 | Status | — | 6-Day Float |
| 082 | Status | — | Average 1-Day Float MTD |
| 083 | Status | — | Average 1-Day Float YTD |
| 084 | Status | — | Average 2-Day Float MTD |
| 085 | Status | — | Average 2-Day Float YTD |
| 086 | Status | — | Transfer Calculation |
Credit codes (100–399)
Summary codes report a total and go in the 03 record; detail codes report one transaction and go in a 16 record.
| Code | Level | Direction | Name |
|---|---|---|---|
| 100 | Summary | Credit | Total Credits |
| 101 | Summary | Credit | Total Credit Amount MTD |
| 105 | Summary | Credit | Credits Not Detailed |
| 106 | Summary | Credit | Deposits Subject to Float |
| 107 | Summary | Credit | Total Adjustment Credits YTD |
| 108 | Detail | Credit | Credit (Any Type) |
| 109 | Summary | Credit | Current Day Total Lockbox Deposits |
| 110 | Summary | Credit | Total Lockbox Deposits |
| 115 | Detail | Credit | Lockbox Deposit |
| 116 | Detail | Credit | Item in Lockbox Deposit |
| 118 | Detail | Credit | Lockbox Adjustment Credit |
| 120 | Summary | Credit | EDI Transaction Credit |
| 121 | Detail | Credit | EDI Transaction Credit |
| 122 | Detail | Credit | EDIBANX Credit Received |
| 123 | Detail | Credit | EDIBANX Credit Return |
| 130 | Summary | Credit | Total Concentration Credits |
| 131 | Summary | Credit | Total DTC Credits |
| 135 | Detail | Credit | DTC Concentration Credit |
| 136 | Detail | Credit | Item in DTC Deposit |
| 140 | Summary | Credit | Total ACH Credits |
| 142 | Detail | Credit | ACH Credit Received |
| 143 | Detail | Credit | Item in ACH Deposit |
| 145 | Detail | Credit | ACH Concentration Credit |
| 146 | Summary | Credit | Total Bank Card Deposits |
| 147 | Detail | Credit | Individual Bank Card Deposit |
| 150 | Summary | Credit | Total Preauthorized Payment Credits |
| 155 | Detail | Credit | Preauthorized Draft Credit |
| 156 | Detail | Credit | Item in PAC Deposit |
| 160 | Summary | Credit | Total ACH Disbursing Funding Credits |
| 162 | Summary | Credit | Corporate Trade Payment Settlement |
| 163 | Summary | Credit | Corporate Trade Payment Credits |
| 164 | Detail | Credit | Corporate Trade Payment Credit |
| 165 | Detail | Credit | Preauthorized ACH Credit |
| 166 | Detail | Credit | ACH Settlement |
| 167 | Summary | Credit | ACH Settlement Credits |
| 168 | Detail | Credit | ACH Return Item or Adjustment Settlement |
| 169 | Detail | Credit | Miscellaneous ACH Credit |
| 170 | Summary | Credit | Total Other Check Deposits |
| 171 | Detail | Credit | Individual Loan Deposit |
| 172 | Detail | Credit | Deposit Correction |
| 173 | Detail | Credit | Bank-Prepared Deposit |
| 174 | Detail | Credit | Other Deposit |
| 175 | Detail | Credit | Check Deposit Package |
| 176 | Detail | Credit | Re-presented Check Deposit |
| 178 | Summary | Credit | List Post Credits |
| 180 | Summary | Credit | Total Loan Proceeds |
| 182 | Summary | Credit | Total Bank-Prepared Deposits |
| 184 | Detail | Credit | Draft Deposit |
| 185 | Summary | Credit | Total Miscellaneous Deposits |
| 186 | Summary | Credit | Total Cash Letter Credits |
| 187 | Detail | Credit | Cash Letter Credit |
| 188 | Summary | Credit | Total Cash Letter Adjustments |
| 189 | Detail | Credit | Cash Letter Adjustment |
| 190 | Summary | Credit | Total Incoming Money Transfers |
| 191 | Detail | Credit | Individual Incoming Internal Money Transfer |
| 195 | Detail | Credit | Incoming Money Transfer |
| 196 | Detail | Credit | Money Transfer Adjustment |
| 198 | Detail | Credit | Compensation |
| 200 | Summary | Credit | Total Automatic Transfer Credits |
| 201 | Detail | Credit | Individual Automatic Transfer Credit |
| 202 | Detail | Credit | Bond Operations Credit |
| 205 | Summary | Credit | Total Book Transfer Credits |
| 206 | Detail | Credit | Book Transfer Credit |
| 207 | Summary | Credit | Total International Money Transfer Credits |
| 208 | Detail | Credit | Individual International Money Transfer Credit |
| 210 | Summary | Credit | Total International Credits |
| 212 | Detail | Credit | Foreign Letter of Credit |
| 213 | Detail | Credit | Letter of Credit |
| 214 | Detail | Credit | Foreign Exchange of Credit |
| 215 | Summary | Credit | Total Letters of Credit |
| 216 | Detail | Credit | Foreign Remittance Credit |
| 218 | Detail | Credit | Foreign Collection Credit |
| 221 | Detail | Credit | Foreign Check Purchase |
| 222 | Detail | Credit | Foreign Checks Deposited |
| 224 | Detail | Credit | Commission |
| 226 | Detail | Credit | International Money Market Trading |
| 227 | Detail | Credit | Standing Order |
| 229 | Detail | Credit | Miscellaneous International Credit |
| 230 | Summary | Credit | Total Security Credits |
| 231 | Summary | Credit | Total Collection Credits |
| 232 | Detail | Credit | Sale of Debt Security |
| 233 | Detail | Credit | Securities Sold |
| 234 | Detail | Credit | Sale of Equity Security |
| 235 | Detail | Credit | Matured Reverse Repurchase Order |
| 236 | Detail | Credit | Maturity of Debt Security |
| 237 | Detail | Credit | Individual Collection Credit |
| 238 | Detail | Credit | Collection of Dividends |
| 239 | Summary | Credit | Total Bankers' Acceptance Credits |
| 240 | Detail | Credit | Coupon Collections - Banks |
| 241 | Detail | Credit | Bankers' Acceptances |
| 242 | Detail | Credit | Collection of Interest Income |
| 243 | Detail | Credit | Matured Fed Funds Purchased |
| 244 | Detail | Credit | Interest/Matured Principal Payment |
| 245 | Summary | Credit | Monthly Dividends |
| 246 | Detail | Credit | Commercial Paper |
| 247 | Detail | Credit | Capital Change |
| 248 | Detail | Credit | Savings Bonds Sales Adjustment |
| 249 | Detail | Credit | Miscellaneous Security Credit |
| 250 | Summary | Credit | Total Checks Posted and Returned |
| 251 | Summary | Credit | Total Debit Reversals |
| 252 | Detail | Credit | Debit Reversal |
| 254 | Detail | Credit | Posting Error Correction Credit |
| 255 | Detail | Credit | Check Posted and Returned |
| 256 | Summary | Credit | Total ACH Return Items |
| 257 | Detail | Credit | Individual ACH Return Item |
| 258 | Detail | Credit | ACH Reversal Credit |
| 260 | Summary | Credit | Total Rejected Credits |
| 261 | Detail | Credit | Individual Rejected Credit |
| 263 | Detail | Credit | Overdraft |
| 266 | Detail | Credit | Return Item |
| 268 | Detail | Credit | Return Item Adjustment |
| 270 | Summary | Credit | Total ZBA Credits |
| 271 | Summary | Credit | Net Zero-Balance Amount |
| 274 | Detail | Credit | Cumulative ZBA or Disbursement Credits |
| 275 | Detail | Credit | ZBA Credit |
| 276 | Detail | Credit | ZBA Float Adjustment |
| 277 | Detail | Credit | ZBA Credit Transfer |
| 278 | Detail | Credit | ZBA Credit Adjustment |
| 280 | Summary | Credit | Total Controlled Disbursing Credits |
| 281 | Detail | Credit | Individual Controlled Disbursing Credit |
| 285 | Summary | Credit | Total DTC Disbursing Credits |
| 286 | Detail | Credit | Individual DTC Disbursing Credit |
| 294 | Summary | Credit | Total ATM Credits |
| 295 | Detail | Credit | ATM Credit |
| 301 | Detail | Credit | Commercial Deposit |
| 302 | Summary | Credit | Correspondent Bank Deposit |
| 303 | Summary | Credit | Total Wire Transfers In - FF |
| 304 | Summary | Credit | Total Wire Transfers In - CHF |
| 305 | Summary | Credit | Total Fed Funds Sold |
| 306 | Detail | Credit | Fed Funds Sold |
| 307 | Summary | Credit | Total Trust Credits |
| 308 | Detail | Credit | Trust Credit |
| 309 | Summary | Credit | Total Value-Dated Funds |
| 310 | Summary | Credit | Total Commercial Deposits |
| 315 | Summary | Credit | Total International Credits - FF |
| 316 | Summary | Credit | Total International Credits - CHF |
| 318 | Summary | Credit | Total Foreign Check Purchased |
| 319 | Summary | Credit | Late Deposit |
| 320 | Summary | Credit | Total Securities Sold - FF |
| 321 | Summary | Credit | Total Securities Sold - CHF |
| 324 | Summary | Credit | Total Securities Matured - FF |
| 325 | Summary | Credit | Total Securities Matured - CHF |
| 326 | Summary | Credit | Total Securities Interest |
| 327 | Summary | Credit | Total Securities Matured |
| 328 | Summary | Credit | Total Securities Interest - FF |
| 329 | Summary | Credit | Total Securities Interest - CHF |
| 330 | Summary | Credit | Total Escrow Credits |
| 331 | Detail | Credit | Individual Escrow Credit |
| 332 | Summary | Credit | Total Miscellaneous Securities Credits - FF |
| 336 | Summary | Credit | Total Miscellaneous Securities Credits - CHF |
| 338 | Summary | Credit | Total Securities Sold |
| 340 | Summary | Credit | Total Broker Deposits |
| 341 | Summary | Credit | Total Broker Deposits - FF |
| 342 | Detail | Credit | Broker Deposit |
| 343 | Summary | Credit | Total Broker Deposits - CHF |
| 344 | Detail | Credit | Individual Back Value Credit |
| 345 | Detail | Credit | Item in Brokers Deposit |
| 346 | Detail | Credit | Sweep Interest Income |
| 347 | Detail | Credit | Sweep Principal Sell |
| 348 | Detail | Credit | Futures Credit |
| 349 | Detail | Credit | Principal Payments Credit |
| 350 | Summary | Credit | Investment Sold |
| 351 | Detail | Credit | Individual Investment Sold |
| 352 | Summary | Credit | Total Cash Center Credits |
| 353 | Detail | Credit | Cash Center Credit |
| 354 | Detail | Credit | Interest Credit |
| 355 | Summary | Credit | Investment Interest |
| 356 | Summary | Credit | Total Credit Adjustment |
| 357 | Detail | Credit | Credit Adjustment |
| 358 | Detail | Credit | YTD Adjustment Credit |
| 359 | Detail | Credit | Interest Adjustment Credit |
| 360 | Summary | Credit | Total Credits Less Wire Transfer and Returned Checks |
| 361 | Summary | Credit | Grand Total Credits Less Grand Total Debits |
| 362 | Detail | Credit | Correspondent Collection |
| 363 | Detail | Credit | Correspondent Collection Adjustment |
| 364 | Detail | Credit | Loan Participation |
| 366 | Detail | Credit | Currency and Coin Deposited |
| 367 | Detail | Credit | Food Stamp Letter |
| 368 | Detail | Credit | Food Stamp Adjustment |
| 369 | Detail | Credit | Clearing Settlement Credit |
| 370 | Summary | Credit | Total Back Value Credits |
| 372 | Detail | Credit | Back Value Adjustment |
| 373 | Detail | Credit | Customer Payroll |
| 374 | Detail | Credit | FRB Statement Recap |
| 376 | Detail | Credit | Savings Bond Letter or Adjustment |
| 377 | Detail | Credit | Treasury Tax and Loan Credit |
| 378 | Detail | Credit | Transfer of Treasury Credit |
| 379 | Detail | Credit | FRB Government Checks Cash Letter Credit |
| 381 | Detail | Credit | FRB Government Check Adjustment |
| 382 | Detail | Credit | FRB Postal Money Order Credit |
| 383 | Detail | Credit | FRB Postal Money Order Adjustment |
| 384 | Detail | Credit | FRB Cash Letter Auto Charge Credit |
| 385 | Summary | Credit | Total Universal Credits |
| 386 | Detail | Credit | FRB Cash Letter Auto Charge Adjustment |
| 387 | Detail | Credit | FRB Fine-Sort Cash Letter Credit |
| 388 | Detail | Credit | FRB Fine-Sort Adjustment |
| 389 | Summary | Credit | Total Freight Payment Credits |
| 390 | Summary | Credit | Total Miscellaneous Credits |
| 391 | Detail | Credit | Universal Credit |
| 392 | Detail | Credit | Freight Payment Credit |
| 393 | Detail | Credit | Itemized Credit Over $10,000 |
| 394 | Detail | Credit | Cumulative Credits |
| 395 | Detail | Credit | Check Reversal |
| 397 | Detail | Credit | Float Adjustment |
| 398 | Detail | Credit | Miscellaneous Fee Refund |
| 399 | Detail | Credit | Miscellaneous Credit |
Debit codes (400–699)
The same split as for credits. Detail amounts are unsigned: the type code alone says that the entry is a debit.
| Code | Level | Direction | Name |
|---|---|---|---|
| 400 | Summary | Debit | Total Debits |
| 401 | Summary | Debit | Total Debit Amount MTD |
| 403 | Summary | Debit | Today's Total Debits |
| 405 | Summary | Debit | Total Debit Less Wire Transfers and Charge-Backs |
| 406 | Summary | Debit | Debits not Detailed |
| 408 | Detail | Debit | Float Adjustment |
| 409 | Detail | Debit | Debit (Any Type) |
| 410 | Summary | Debit | Total YTD Adjustment |
| 412 | Summary | Debit | Total Debits (Excluding Returned Items) |
| 415 | Detail | Debit | Lockbox Debit |
| 416 | Summary | Debit | Total Lockbox Debits |
| 420 | Summary | Debit | EDI Transaction Debits |
| 421 | Detail | Debit | EDI Transaction Debit |
| 422 | Detail | Debit | EDIBANX Settlement Debit |
| 423 | Detail | Debit | EDIBANX Return Item Debit |
| 430 | Summary | Debit | Total Payable-Through Drafts |
| 435 | Detail | Debit | Payable-Through Draft |
| 445 | Detail | Debit | ACH Concentration Debit |
| 446 | Summary | Debit | Total ACH Disbursement Funding Debits |
| 447 | Detail | Debit | ACH Disbursement Funding Debit |
| 450 | Summary | Debit | Total ACH Debits |
| 451 | Detail | Debit | ACH Debit Received |
| 452 | Detail | Debit | Item in ACH Disbursement or Debit |
| 455 | Detail | Debit | Preauthorized ACH Debit |
| 462 | Detail | Debit | Account Holder Initiated ACH Debit |
| 463 | Summary | Debit | Corporate Trade Payment Debits |
| 464 | Detail | Debit | Corporate Trade Payment Debit |
| 465 | Summary | Debit | Corporate Trade Payment Settlement |
| 466 | Detail | Debit | ACH Settlement |
| 467 | Summary | Debit | ACH Settlement Debits |
| 468 | Detail | Debit | ACH Return Item or Adjustment Settlement |
| 469 | Detail | Debit | Miscellaneous ACH Debit |
| 470 | Summary | Debit | Total Check Paid |
| 471 | Summary | Debit | Total Check Paid - Cumulative MTD |
| 472 | Detail | Debit | Cumulative Checks Paid |
| 474 | Detail | Debit | Certified Check Debit |
| 475 | Detail | Debit | Check Paid |
| 476 | Detail | Debit | Federal Reserve Bank Letter Debit |
| 477 | Detail | Debit | Bank Originated Debit |
| 478 | Summary | Debit | List Post Debits |
| 479 | Detail | Debit | List Post Debit |
| 480 | Summary | Debit | Total Loan Payments |
| 481 | Detail | Debit | Individual Loan Payment |
| 482 | Summary | Debit | Total Bank-Originated Debits |
| 484 | Detail | Debit | Draft |
| 485 | Detail | Debit | DTC Debit |
| 486 | Summary | Debit | Total Cash Letter Debits |
| 487 | Detail | Debit | Cash Letter Debit |
| 489 | Detail | Debit | Cash Letter Adjustment |
| 490 | Summary | Debit | Total Outgoing Money Transfers |
| 491 | Detail | Debit | Individual Outgoing Internal Money Transfer |
| 493 | Detail | Debit | Customer Terminal Initiated Money Transfer |
| 495 | Detail | Debit | Outgoing Money Transfer |
| 496 | Detail | Debit | Money Transfer Adjustment |
| 498 | Detail | Debit | Compensation |
| 500 | Summary | Debit | Total Automatic Transfer Debits |
| 501 | Detail | Debit | Individual Automatic Transfer Debit |
| 502 | Detail | Debit | Bond Operations Debit |
| 505 | Summary | Debit | Total Book Transfer Debits |
| 506 | Detail | Debit | Book Transfer Debit |
| 507 | Summary | Debit | Total International Money Transfer Debits |
| 508 | Detail | Debit | Individual International Money Transfer Debits |
| 510 | Summary | Debit | Total International Debits |
| 512 | Detail | Debit | Letter of Credit Debit |
| 513 | Detail | Debit | Letter of Credit |
| 514 | Detail | Debit | Foreign Exchange Debit |
| 515 | Summary | Debit | Total Letters of Credit |
| 516 | Detail | Debit | Foreign Remittance Debit |
| 518 | Detail | Debit | Foreign Collection Debit |
| 522 | Detail | Debit | Foreign Checks Paid |
| 524 | Detail | Debit | Commission |
| 526 | Detail | Debit | International Money Market Trading |
| 527 | Detail | Debit | Standing Order |
| 529 | Detail | Debit | Miscellaneous International Debit |
| 530 | Summary | Debit | Total Security Debits |
| 531 | Detail | Debit | Securities Purchased |
| 532 | Summary | Debit | Total Amount of Securities Purchased |
| 533 | Detail | Debit | Security Collection Debit |
| 534 | Summary | Debit | Total Miscellaneous Securities DB - FF |
| 535 | Detail | Debit | Purchase of Equity Securities |
| 536 | Summary | Debit | Total Miscellaneous Securities Debit - CHF |
| 537 | Summary | Debit | Total Collection Debit |
| 538 | Detail | Debit | Matured Repurchase Order |
| 539 | Summary | Debit | Total Bankers' Acceptances Debit |
| 540 | Detail | Debit | Coupon Collection Debit |
| 541 | Detail | Debit | Bankers' Acceptances |
| 542 | Detail | Debit | Purchase of Debt Securities |
| 543 | Detail | Debit | Domestic Collection |
| 544 | Detail | Debit | Interest/Matured Principal Payment |
| 546 | Detail | Debit | Commercial paper |
| 547 | Detail | Debit | Capital Change |
| 548 | Detail | Debit | Savings Bonds Sales Adjustment |
| 549 | Detail | Debit | Miscellaneous Security Debit |
| 550 | Summary | Debit | Total Deposited Items Returned |
| 551 | Summary | Debit | Total Credit Reversals |
| 552 | Detail | Debit | Credit Reversal |
| 554 | Detail | Debit | Posting Error Correction Debit |
| 555 | Detail | Debit | Deposited Item Returned |
| 556 | Summary | Debit | Total ACH Return Items |
| 557 | Detail | Debit | Individual ACH Return Item |
| 558 | Detail | Debit | ACH Reversal Debit |
| 560 | Summary | Debit | Total Rejected Debits |
| 561 | Detail | Debit | Individual Rejected Debit |
| 563 | Detail | Debit | Overdraft |
| 564 | Detail | Debit | Overdraft Fee |
| 566 | Detail | Debit | Return Item |
| 567 | Detail | Debit | Return Item Fee |
| 568 | Detail | Debit | Return Item Adjustment |
| 570 | Summary | Debit | Total ZBA Debits |
| 574 | Detail | Debit | Cumulative ZBA Debits |
| 575 | Detail | Debit | ZBA Debit |
| 577 | Detail | Debit | ZBA Debit Transfer |
| 578 | Detail | Debit | ZBA Debit Adjustment |
| 580 | Summary | Debit | Total Controlled Disbursing Debits |
| 581 | Detail | Debit | Individual Controlled Disbursing Debit |
| 583 | Summary | Debit | Total Disbursing Checks Paid - Early Amount |
| 584 | Summary | Debit | Total Disbursing Checks Paid - Later Amount |
| 585 | Summary | Debit | Disbursing Funding Requirement |
| 586 | Summary | Debit | FRB Presentment Estimate (Fed Estimate) |
| 587 | Summary | Debit | Late Debits (After Notification) |
| 588 | Summary | Debit | Total Disbursing Checks Paid - Last Amount |
| 590 | Summary | Debit | Total DTC Debits |
| 594 | Summary | Debit | Total ATM Debits |
| 595 | Detail | Debit | ATM Debit |
| 596 | Summary | Debit | Total ARP Debits |
| 597 | Detail | Debit | ARP Debit |
| 601 | Summary | Debit | Estimated Total Disbursement |
| 602 | Summary | Debit | Adjusted Total Disbursement |
| 610 | Summary | Debit | Total Funds Required |
| 611 | Summary | Debit | Total Wire Transfers Out - CHF |
| 612 | Summary | Debit | Total Wire Transfers Out - FF |
| 613 | Summary | Debit | Total International Debit - CHF |
| 614 | Summary | Debit | Total International Debit - FF |
| 615 | Summary | Debit | Total Federal Reserve Bank - Commercial Bank Debit |
| 616 | Detail | Debit | Federal Reserve Bank - Commercial Bank Debit |
| 617 | Summary | Debit | Total Securities Purchased - CHF |
| 618 | Summary | Debit | Total Securities Purchased - FF |
| 621 | Summary | Debit | Total Broker Debits - CHF |
| 622 | Detail | Debit | Broker Debit |
| 623 | Summary | Debit | Total Broker Debits - FF |
| 625 | Summary | Debit | Total Broker Debits |
| 626 | Summary | Debit | Total Fed Funds Purchased |
| 627 | Detail | Debit | Fed Funds Purchased |
| 628 | Summary | Debit | Total Cash Center Debits |
| 629 | Detail | Debit | Cash Center Debit |
| 630 | Summary | Debit | Total Debit Adjustments |
| 631 | Detail | Debit | Debit Adjustment |
| 632 | Summary | Debit | Total Trust Debits |
| 633 | Detail | Debit | Trust Debit |
| 634 | Detail | Debit | YTD Adjustment Debit |
| 640 | Summary | Debit | Total Escrow Debits |
| 641 | Detail | Debit | Individual Escrow Debit |
| 644 | Detail | Debit | Individual Back Value Debit |
| 646 | Summary | Debit | Transfer Calculation Debit |
| 650 | Summary | Debit | Investments Purchased |
| 651 | Detail | Debit | Individual Investment purchased |
| 654 | Detail | Debit | Interest Debit |
| 655 | Summary | Debit | Total Investment Interest Debits |
| 656 | Detail | Debit | Sweep Principal Buy |
| 657 | Detail | Debit | Futures Debit |
| 658 | Detail | Debit | Principal Payments Debit |
| 659 | Detail | Debit | Interest Adjustment Debit |
| 661 | Detail | Debit | Account Analysis Fee |
| 662 | Detail | Debit | Correspondent Collection Debit |
| 663 | Detail | Debit | Correspondent Collection Adjustment |
| 664 | Detail | Debit | Loan Participation |
| 665 | Summary | Debit | Intercept Debits |
| 666 | Detail | Debit | Currency and Coin Shipped |
| 667 | Detail | Debit | Food Stamp Letter |
| 668 | Detail | Debit | Food Stamp Adjustment |
| 669 | Detail | Debit | Clearing Settlement Debit |
| 670 | Summary | Debit | Total Back Value Debits |
| 672 | Detail | Debit | Back Value Adjustment |
| 673 | Detail | Debit | Customer Payroll |
| 674 | Detail | Debit | FRB Statement Recap |
| 676 | Detail | Debit | Savings Bond Letter or Adjustment |
| 677 | Detail | Debit | Treasury Tax and Loan Debit |
| 678 | Detail | Debit | Transfer of Treasury Debit |
| 679 | Detail | Debit | FRB Government Checks Cash Letter Debit |
| 681 | Detail | Debit | FRB Government Check Adjustment |
| 682 | Detail | Debit | FRB Postal Money Order Debit |
| 683 | Detail | Debit | FRB Postal Money Order Adjustment |
| 684 | Detail | Debit | FRB Cash Letter Auto Charge Debit |
| 685 | Summary | Debit | Total Universal Debits |
| 686 | Detail | Debit | FRB Cash Letter Auto Charge Adjustment |
| 687 | Detail | Debit | FRB Fine-Sort Cash Letter Debit |
| 688 | Detail | Debit | FRB Fine-Sort Adjustment |
| 689 | Summary | Debit | FRB Freight Payment Debits |
| 690 | Summary | Debit | Total Miscellaneous Debits |
| 691 | Detail | Debit | Universal Debit |
| 692 | Detail | Debit | Freight Payment Debit |
| 693 | Detail | Debit | Itemized Debit Over $10,000 |
| 694 | Detail | Debit | Deposit Reversal |
| 695 | Detail | Debit | Deposit Correction Debit |
| 696 | Detail | Debit | Regular Collection Debit |
| 697 | Detail | Debit | Cumulative Debits |
| 698 | Detail | Debit | Miscellaneous Fees |
| 699 | Detail | Debit | Miscellaneous Debit |
Loan codes (700–799)
Loan balances, payments and disbursements.
| Code | Level | Direction | Name |
|---|---|---|---|
| 701 | Status | — | Principal Loan Balance |
| 703 | Status | — | Available Commitment Amount |
| 705 | Status | — | Payment Amount Due |
| 707 | Status | — | Principal Amount Past Due |
| 709 | Status | — | Interest Amount Past Due |
| 720 | Summary | Credit | Total Loan Payment |
| 721 | Detail | Credit | Amount Applied to Interest |
| 722 | Detail | Credit | Amount Applied to Principal |
| 723 | Detail | Credit | Amount Applied to Escrow |
| 724 | Detail | Credit | Amount Applied to Late Charges |
| 725 | Detail | Credit | Amount Applied to Buydown |
| 726 | Detail | Credit | Amount Applied to Misc. Fees |
| 727 | Detail | Credit | Amount Applied to Deferred Interest Detail |
| 728 | Detail | Credit | Amount Applied to Service Charge |
| 760 | Summary | Debit | Loan Disbursement |
Non-monetary information (890)
A 16 record that carries only a text message.
| Code | Level | Direction | Name |
|---|---|---|---|
| 890 | Detail | — | Non-monetary Information |
BAI2, BTRS and camt.053
BAI2 dates from 1987 and was handed over to the standards committee ASC X9, which published its successor as ANSI X9.121, the Balance and Transaction Reporting Standard (BTRS, sometimes called BAI3). BTRS keeps the same records and adds more type codes; its files carry version 3 in the 01 record. Many banks still deliver plain BAI2.
The ISO 20022 counterpart is camt.053 for end-of-day statements and camt.052 for intraday reports. The data maps across directly — opening and closing ledger (010, 015) become the OPBD and CLBD balances, each 16 record becomes an entry — but camt.053 gives the counterparty, account and remittance their own elements where BAI2 has one text field. SafeCAMT converts a BAI2 file to camt.053; the correspondences are in the BAI2 to camt.053 table.
Where this comes from
The record layouts and type codes follow the Cash Management Balance Reporting Specifications, Version 2 technical reference manual published by BAI (Bank Administration Institute); the standard is now maintained by ASC X9. The code names are those of the uniform type code list, with a few misprints corrected; the explanations are our own. Banks implement subsets and add their own codes and conventions, so your bank’s BAI2 guide has the last word for its files.
FAQ
What is a BAI2 file?
A BAI2 file is a comma-delimited text file in which a bank reports account balances and transactions to a corporate customer, following version 2 of the BAI Cash Management Balance Reporting Specifications. It is the standard statement format for treasury systems and ERPs in the United States and Canada.
How do I open a BAI2 file?
It is plain text, so any editor shows it, but the amounts have no decimal point and the type codes are numbers. SafeCAMT opens it in the browser without uploading it and shows the transactions with real amounts, code names, references and text, and exports them to CSV or Excel.
How is the BAI2 account control total calculated?
Add every amount in the 03 record, its 88 continuation records and all 16 records of the account. Status amounts count with their sign; summary and detail amounts are unsigned. Availability amounts that follow a funds type S or D, and item counts, are left out. The result goes in the 49 record.
What do the record codes 01, 02, 03, 16, 49, 88, 98 and 99 mean?
01 is the file header, 02 the group header, 03 the account identifier with status and summary amounts, 16 a transaction detail, 88 a continuation of the record above, 49 the account trailer, 98 the group trailer and 99 the file trailer.
How can I tell credits from debits in a BAI2 file?
By the type code of the 16 record: 100 to 399 are credits and 400 to 699 are debits. The amount itself is never signed. Bank-specific codes 920 to 959 are credits and 960 to 999 debits.
What is the difference between BAI2 and BTRS?
BTRS (Balance and Transaction Reporting Standard, ANSI X9.121) is the successor of BAI2 maintained by ASC X9. It uses the same record structure with version 3 in the file header and an extended list of type codes.
Last updated 2026-11-11. Something wrong or missing? Email support@biteapps.cc.