Bite Apps/SafeCAMT

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

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

CodeRecordHow oftenWhat it holds
01File headerOnce, first recordSender, receiver, creation date and time, file number, version.
02Group headerOnce per groupOriginating bank, as-of date and time, currency. A group is one bank and one business date.
03Account identifier and summary statusOnce per accountAccount number, currency, then any number of status and summary amounts.
16Transaction detailAny number per accountOne transaction: type code, amount, funds type, two references, text.
88ContinuationAfter any recordCarries on with the fields of the record above when one line is not enough.
49Account trailerOnce per accountAccount control total and number of records.
98Group trailerOnce per groupGroup control total, number of accounts, number of records.
99File trailerOnce, last recordFile 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/

FieldStatusContents
Sender identificationRequiredWho sends the file — usually the bank’s routing number or an ID agreed with the bank.
Receiver identificationRequiredWho receives it — your company ID at the bank.
File creation dateRequiredYYMMDD.
File creation timeRequiredHHMM, 0000–2400 in the sender’s time zone. Some banks write 9999 for end of day.
File identification numberRequiredDistinguishes files created on the same date.
Physical record lengthOptionalFixed line length, for example 80. Empty means variable length.
Block sizeOptionalLines per block. Almost always empty.
Version numberRequiredAlways 2 for BAI2. BTRS files carry 3.

02,EXAMPLECORP,EXAMPLEBANK,1,261110,2359,USD,2/

FieldStatusContents
Ultimate receiver identificationOptionalFinal receiver of this group.
Originator identificationRequiredThe bank the accounts are held with.
Group statusRequired1 update, 2 deletion, 3 correction, 4 test only.
As-of dateRequiredYYMMDD — the business date the balances and transactions belong to.
As-of timeOptionalHHMM.
Currency codeOptionalISO 4217. Empty means USD.
As-of-date modifierOptional1 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,,/

FieldStatusContents
Customer account numberRequiredThe account at the bank. Leading zeros count. No comma or slash.
Currency codeOptionalEmpty means the group currency.
Type codeOptional, repeatingA status code (001–099) or a summary code. See the type code tables below.
AmountOptional, repeatingNo decimal point. Status amounts may be signed (+ or −); summary amounts are unsigned.
Item countOptional, repeatingNumber of items behind a summary amount. Must stay empty after a status code.
Funds typeOptional, repeatingAvailability 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

FieldStatusContents
Type codeRequiredA detail code: 100–399 credit, 400–699 debit, 890 for a text-only message.
AmountOptionalNo decimal point and never a sign. Empty for type 890.
Funds typeOptionalOne letter or digit, followed by extra fields for S, V and D — see below.
Bank reference numberOptionalThe bank’s reference. No comma or slash.
Customer reference numberOptionalYour reference. For check types 474, 475 and 395 it is the check number.
TextOptionalFree 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:

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 typeMeaningFields that follow
ZUnknown (the default when the field is empty)—
0Immediate availability—
1One-day availability—
2Two-or-more-day availability—
SDistributed availability, three bucketsImmediate amount, one-day amount, two-or-more-day amount
VValue datedValue date YYMMDD, value time HHMM (may be empty)
DDistributed availability, any number of daysNumber 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:

RecordControl totalCounts
49Sum 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.
98Sum of the account control totals in the group.Number of accounts (03 records); records in the group from the 02 to the 98.
99Sum 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:

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:

RangeUsed for
001–099Account status
100Total credits (summary)
101–399Credit summary and detail
400Total debits (summary)
401–699Debit summary and detail
700–799Loan summary and detail
890Non-monetary information
900–919Bank-specific status codes
920–959Bank-specific credit codes
960–999Bank-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:

CodeLevelDirectionName
010Status—Opening Ledger
015Status—Closing Ledger
030Status—Current Ledger
040Status—Opening Available
045Status—Closing Available
060Status—Current Available
072Status—1-Day Float
074Status—2 or More Days Float
100SummaryCreditTotal Credits
400SummaryDebitTotal Debits
108DetailCreditCredit (Any Type)
115DetailCreditLockbox Deposit
142DetailCreditACH Credit Received
165DetailCreditPreauthorized ACH Credit
169DetailCreditMiscellaneous ACH Credit
175DetailCreditCheck Deposit Package
195DetailCreditIncoming Money Transfer
275DetailCreditZBA Credit
301DetailCreditCommercial Deposit
354DetailCreditInterest Credit
409DetailDebitDebit (Any Type)
451DetailDebitACH Debit Received
455DetailDebitPreauthorized ACH Debit
469DetailDebitMiscellaneous ACH Debit
475DetailDebitCheck Paid
495DetailDebitOutgoing Money Transfer
555DetailDebitDeposited Item Returned
575DetailDebitZBA Debit
698DetailDebitMiscellaneous Fees
699DetailDebitMiscellaneous 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)

Balances and float. Used only in 03 records (and their 88 continuations); the amount may carry a sign.

CodeLevelDirectionName
010Status—Opening Ledger
011Status—Average Opening Ledger MTD
012Status—Average Opening Ledger YTD
015Status—Closing Ledger
020Status—Average Closing Ledger MTD
021Status—Average Closing Ledger - Previous Month
022Status—Aggregate Balance Adjustments
024Status—Average Closing Ledger YTD - Previous Month
025Status—Average Closing Ledger YTD
030Status—Current Ledger
037Status—ACH Net Position
039Status—Opening Available + Total Same-Day ACH DTC Deposit
040Status—Opening Available
041Status—Average Opening Available MTD
042Status—Average Opening Available YTD
043Status—Average Available - Previous Month
044Status—Disbursing Opening Available Balance
045Status—Closing Available
050Status—Average Closing Available MTD
051Status—Average Closing Available - Last Month
054Status—Average Closing Available YTD - Last Month
055Status—Average Closing Available YTD
056Status—Loan Balance
057Status—Total Investment Position
059Status—Current Available (CRS Supressed)
060Status—Current Available
061Status—Average Current Available MTD
062Status—Average Current Available YTD
063Status—Total Float
065Status—Target Balance
066Status—Adjusted Balance
067Status—Adjusted Balance MTD
068Status—Adjusted Balance YTD
070Status—0-Day Float
072Status—1-Day Float
073Status—Float Adjustment
074Status—2 or More Days Float
075Status—3 or More Days Float
076Status—Adjustment to Balances
077Status—Average Adjustment to Balances MTD
078Status—Average Adjustment to Balances YTD
079Status—4-Day Float
080Status—5-Day Float
081Status—6-Day Float
082Status—Average 1-Day Float MTD
083Status—Average 1-Day Float YTD
084Status—Average 2-Day Float MTD
085Status—Average 2-Day Float YTD
086Status—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.

CodeLevelDirectionName
100SummaryCreditTotal Credits
101SummaryCreditTotal Credit Amount MTD
105SummaryCreditCredits Not Detailed
106SummaryCreditDeposits Subject to Float
107SummaryCreditTotal Adjustment Credits YTD
108DetailCreditCredit (Any Type)
109SummaryCreditCurrent Day Total Lockbox Deposits
110SummaryCreditTotal Lockbox Deposits
115DetailCreditLockbox Deposit
116DetailCreditItem in Lockbox Deposit
118DetailCreditLockbox Adjustment Credit
120SummaryCreditEDI Transaction Credit
121DetailCreditEDI Transaction Credit
122DetailCreditEDIBANX Credit Received
123DetailCreditEDIBANX Credit Return
130SummaryCreditTotal Concentration Credits
131SummaryCreditTotal DTC Credits
135DetailCreditDTC Concentration Credit
136DetailCreditItem in DTC Deposit
140SummaryCreditTotal ACH Credits
142DetailCreditACH Credit Received
143DetailCreditItem in ACH Deposit
145DetailCreditACH Concentration Credit
146SummaryCreditTotal Bank Card Deposits
147DetailCreditIndividual Bank Card Deposit
150SummaryCreditTotal Preauthorized Payment Credits
155DetailCreditPreauthorized Draft Credit
156DetailCreditItem in PAC Deposit
160SummaryCreditTotal ACH Disbursing Funding Credits
162SummaryCreditCorporate Trade Payment Settlement
163SummaryCreditCorporate Trade Payment Credits
164DetailCreditCorporate Trade Payment Credit
165DetailCreditPreauthorized ACH Credit
166DetailCreditACH Settlement
167SummaryCreditACH Settlement Credits
168DetailCreditACH Return Item or Adjustment Settlement
169DetailCreditMiscellaneous ACH Credit
170SummaryCreditTotal Other Check Deposits
171DetailCreditIndividual Loan Deposit
172DetailCreditDeposit Correction
173DetailCreditBank-Prepared Deposit
174DetailCreditOther Deposit
175DetailCreditCheck Deposit Package
176DetailCreditRe-presented Check Deposit
178SummaryCreditList Post Credits
180SummaryCreditTotal Loan Proceeds
182SummaryCreditTotal Bank-Prepared Deposits
184DetailCreditDraft Deposit
185SummaryCreditTotal Miscellaneous Deposits
186SummaryCreditTotal Cash Letter Credits
187DetailCreditCash Letter Credit
188SummaryCreditTotal Cash Letter Adjustments
189DetailCreditCash Letter Adjustment
190SummaryCreditTotal Incoming Money Transfers
191DetailCreditIndividual Incoming Internal Money Transfer
195DetailCreditIncoming Money Transfer
196DetailCreditMoney Transfer Adjustment
198DetailCreditCompensation
200SummaryCreditTotal Automatic Transfer Credits
201DetailCreditIndividual Automatic Transfer Credit
202DetailCreditBond Operations Credit
205SummaryCreditTotal Book Transfer Credits
206DetailCreditBook Transfer Credit
207SummaryCreditTotal International Money Transfer Credits
208DetailCreditIndividual International Money Transfer Credit
210SummaryCreditTotal International Credits
212DetailCreditForeign Letter of Credit
213DetailCreditLetter of Credit
214DetailCreditForeign Exchange of Credit
215SummaryCreditTotal Letters of Credit
216DetailCreditForeign Remittance Credit
218DetailCreditForeign Collection Credit
221DetailCreditForeign Check Purchase
222DetailCreditForeign Checks Deposited
224DetailCreditCommission
226DetailCreditInternational Money Market Trading
227DetailCreditStanding Order
229DetailCreditMiscellaneous International Credit
230SummaryCreditTotal Security Credits
231SummaryCreditTotal Collection Credits
232DetailCreditSale of Debt Security
233DetailCreditSecurities Sold
234DetailCreditSale of Equity Security
235DetailCreditMatured Reverse Repurchase Order
236DetailCreditMaturity of Debt Security
237DetailCreditIndividual Collection Credit
238DetailCreditCollection of Dividends
239SummaryCreditTotal Bankers' Acceptance Credits
240DetailCreditCoupon Collections - Banks
241DetailCreditBankers' Acceptances
242DetailCreditCollection of Interest Income
243DetailCreditMatured Fed Funds Purchased
244DetailCreditInterest/Matured Principal Payment
245SummaryCreditMonthly Dividends
246DetailCreditCommercial Paper
247DetailCreditCapital Change
248DetailCreditSavings Bonds Sales Adjustment
249DetailCreditMiscellaneous Security Credit
250SummaryCreditTotal Checks Posted and Returned
251SummaryCreditTotal Debit Reversals
252DetailCreditDebit Reversal
254DetailCreditPosting Error Correction Credit
255DetailCreditCheck Posted and Returned
256SummaryCreditTotal ACH Return Items
257DetailCreditIndividual ACH Return Item
258DetailCreditACH Reversal Credit
260SummaryCreditTotal Rejected Credits
261DetailCreditIndividual Rejected Credit
263DetailCreditOverdraft
266DetailCreditReturn Item
268DetailCreditReturn Item Adjustment
270SummaryCreditTotal ZBA Credits
271SummaryCreditNet Zero-Balance Amount
274DetailCreditCumulative ZBA or Disbursement Credits
275DetailCreditZBA Credit
276DetailCreditZBA Float Adjustment
277DetailCreditZBA Credit Transfer
278DetailCreditZBA Credit Adjustment
280SummaryCreditTotal Controlled Disbursing Credits
281DetailCreditIndividual Controlled Disbursing Credit
285SummaryCreditTotal DTC Disbursing Credits
286DetailCreditIndividual DTC Disbursing Credit
294SummaryCreditTotal ATM Credits
295DetailCreditATM Credit
301DetailCreditCommercial Deposit
302SummaryCreditCorrespondent Bank Deposit
303SummaryCreditTotal Wire Transfers In - FF
304SummaryCreditTotal Wire Transfers In - CHF
305SummaryCreditTotal Fed Funds Sold
306DetailCreditFed Funds Sold
307SummaryCreditTotal Trust Credits
308DetailCreditTrust Credit
309SummaryCreditTotal Value-Dated Funds
310SummaryCreditTotal Commercial Deposits
315SummaryCreditTotal International Credits - FF
316SummaryCreditTotal International Credits - CHF
318SummaryCreditTotal Foreign Check Purchased
319SummaryCreditLate Deposit
320SummaryCreditTotal Securities Sold - FF
321SummaryCreditTotal Securities Sold - CHF
324SummaryCreditTotal Securities Matured - FF
325SummaryCreditTotal Securities Matured - CHF
326SummaryCreditTotal Securities Interest
327SummaryCreditTotal Securities Matured
328SummaryCreditTotal Securities Interest - FF
329SummaryCreditTotal Securities Interest - CHF
330SummaryCreditTotal Escrow Credits
331DetailCreditIndividual Escrow Credit
332SummaryCreditTotal Miscellaneous Securities Credits - FF
336SummaryCreditTotal Miscellaneous Securities Credits - CHF
338SummaryCreditTotal Securities Sold
340SummaryCreditTotal Broker Deposits
341SummaryCreditTotal Broker Deposits - FF
342DetailCreditBroker Deposit
343SummaryCreditTotal Broker Deposits - CHF
344DetailCreditIndividual Back Value Credit
345DetailCreditItem in Brokers Deposit
346DetailCreditSweep Interest Income
347DetailCreditSweep Principal Sell
348DetailCreditFutures Credit
349DetailCreditPrincipal Payments Credit
350SummaryCreditInvestment Sold
351DetailCreditIndividual Investment Sold
352SummaryCreditTotal Cash Center Credits
353DetailCreditCash Center Credit
354DetailCreditInterest Credit
355SummaryCreditInvestment Interest
356SummaryCreditTotal Credit Adjustment
357DetailCreditCredit Adjustment
358DetailCreditYTD Adjustment Credit
359DetailCreditInterest Adjustment Credit
360SummaryCreditTotal Credits Less Wire Transfer and Returned Checks
361SummaryCreditGrand Total Credits Less Grand Total Debits
362DetailCreditCorrespondent Collection
363DetailCreditCorrespondent Collection Adjustment
364DetailCreditLoan Participation
366DetailCreditCurrency and Coin Deposited
367DetailCreditFood Stamp Letter
368DetailCreditFood Stamp Adjustment
369DetailCreditClearing Settlement Credit
370SummaryCreditTotal Back Value Credits
372DetailCreditBack Value Adjustment
373DetailCreditCustomer Payroll
374DetailCreditFRB Statement Recap
376DetailCreditSavings Bond Letter or Adjustment
377DetailCreditTreasury Tax and Loan Credit
378DetailCreditTransfer of Treasury Credit
379DetailCreditFRB Government Checks Cash Letter Credit
381DetailCreditFRB Government Check Adjustment
382DetailCreditFRB Postal Money Order Credit
383DetailCreditFRB Postal Money Order Adjustment
384DetailCreditFRB Cash Letter Auto Charge Credit
385SummaryCreditTotal Universal Credits
386DetailCreditFRB Cash Letter Auto Charge Adjustment
387DetailCreditFRB Fine-Sort Cash Letter Credit
388DetailCreditFRB Fine-Sort Adjustment
389SummaryCreditTotal Freight Payment Credits
390SummaryCreditTotal Miscellaneous Credits
391DetailCreditUniversal Credit
392DetailCreditFreight Payment Credit
393DetailCreditItemized Credit Over $10,000
394DetailCreditCumulative Credits
395DetailCreditCheck Reversal
397DetailCreditFloat Adjustment
398DetailCreditMiscellaneous Fee Refund
399DetailCreditMiscellaneous 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.

CodeLevelDirectionName
400SummaryDebitTotal Debits
401SummaryDebitTotal Debit Amount MTD
403SummaryDebitToday's Total Debits
405SummaryDebitTotal Debit Less Wire Transfers and Charge-Backs
406SummaryDebitDebits not Detailed
408DetailDebitFloat Adjustment
409DetailDebitDebit (Any Type)
410SummaryDebitTotal YTD Adjustment
412SummaryDebitTotal Debits (Excluding Returned Items)
415DetailDebitLockbox Debit
416SummaryDebitTotal Lockbox Debits
420SummaryDebitEDI Transaction Debits
421DetailDebitEDI Transaction Debit
422DetailDebitEDIBANX Settlement Debit
423DetailDebitEDIBANX Return Item Debit
430SummaryDebitTotal Payable-Through Drafts
435DetailDebitPayable-Through Draft
445DetailDebitACH Concentration Debit
446SummaryDebitTotal ACH Disbursement Funding Debits
447DetailDebitACH Disbursement Funding Debit
450SummaryDebitTotal ACH Debits
451DetailDebitACH Debit Received
452DetailDebitItem in ACH Disbursement or Debit
455DetailDebitPreauthorized ACH Debit
462DetailDebitAccount Holder Initiated ACH Debit
463SummaryDebitCorporate Trade Payment Debits
464DetailDebitCorporate Trade Payment Debit
465SummaryDebitCorporate Trade Payment Settlement
466DetailDebitACH Settlement
467SummaryDebitACH Settlement Debits
468DetailDebitACH Return Item or Adjustment Settlement
469DetailDebitMiscellaneous ACH Debit
470SummaryDebitTotal Check Paid
471SummaryDebitTotal Check Paid - Cumulative MTD
472DetailDebitCumulative Checks Paid
474DetailDebitCertified Check Debit
475DetailDebitCheck Paid
476DetailDebitFederal Reserve Bank Letter Debit
477DetailDebitBank Originated Debit
478SummaryDebitList Post Debits
479DetailDebitList Post Debit
480SummaryDebitTotal Loan Payments
481DetailDebitIndividual Loan Payment
482SummaryDebitTotal Bank-Originated Debits
484DetailDebitDraft
485DetailDebitDTC Debit
486SummaryDebitTotal Cash Letter Debits
487DetailDebitCash Letter Debit
489DetailDebitCash Letter Adjustment
490SummaryDebitTotal Outgoing Money Transfers
491DetailDebitIndividual Outgoing Internal Money Transfer
493DetailDebitCustomer Terminal Initiated Money Transfer
495DetailDebitOutgoing Money Transfer
496DetailDebitMoney Transfer Adjustment
498DetailDebitCompensation
500SummaryDebitTotal Automatic Transfer Debits
501DetailDebitIndividual Automatic Transfer Debit
502DetailDebitBond Operations Debit
505SummaryDebitTotal Book Transfer Debits
506DetailDebitBook Transfer Debit
507SummaryDebitTotal International Money Transfer Debits
508DetailDebitIndividual International Money Transfer Debits
510SummaryDebitTotal International Debits
512DetailDebitLetter of Credit Debit
513DetailDebitLetter of Credit
514DetailDebitForeign Exchange Debit
515SummaryDebitTotal Letters of Credit
516DetailDebitForeign Remittance Debit
518DetailDebitForeign Collection Debit
522DetailDebitForeign Checks Paid
524DetailDebitCommission
526DetailDebitInternational Money Market Trading
527DetailDebitStanding Order
529DetailDebitMiscellaneous International Debit
530SummaryDebitTotal Security Debits
531DetailDebitSecurities Purchased
532SummaryDebitTotal Amount of Securities Purchased
533DetailDebitSecurity Collection Debit
534SummaryDebitTotal Miscellaneous Securities DB - FF
535DetailDebitPurchase of Equity Securities
536SummaryDebitTotal Miscellaneous Securities Debit - CHF
537SummaryDebitTotal Collection Debit
538DetailDebitMatured Repurchase Order
539SummaryDebitTotal Bankers' Acceptances Debit
540DetailDebitCoupon Collection Debit
541DetailDebitBankers' Acceptances
542DetailDebitPurchase of Debt Securities
543DetailDebitDomestic Collection
544DetailDebitInterest/Matured Principal Payment
546DetailDebitCommercial paper
547DetailDebitCapital Change
548DetailDebitSavings Bonds Sales Adjustment
549DetailDebitMiscellaneous Security Debit
550SummaryDebitTotal Deposited Items Returned
551SummaryDebitTotal Credit Reversals
552DetailDebitCredit Reversal
554DetailDebitPosting Error Correction Debit
555DetailDebitDeposited Item Returned
556SummaryDebitTotal ACH Return Items
557DetailDebitIndividual ACH Return Item
558DetailDebitACH Reversal Debit
560SummaryDebitTotal Rejected Debits
561DetailDebitIndividual Rejected Debit
563DetailDebitOverdraft
564DetailDebitOverdraft Fee
566DetailDebitReturn Item
567DetailDebitReturn Item Fee
568DetailDebitReturn Item Adjustment
570SummaryDebitTotal ZBA Debits
574DetailDebitCumulative ZBA Debits
575DetailDebitZBA Debit
577DetailDebitZBA Debit Transfer
578DetailDebitZBA Debit Adjustment
580SummaryDebitTotal Controlled Disbursing Debits
581DetailDebitIndividual Controlled Disbursing Debit
583SummaryDebitTotal Disbursing Checks Paid - Early Amount
584SummaryDebitTotal Disbursing Checks Paid - Later Amount
585SummaryDebitDisbursing Funding Requirement
586SummaryDebitFRB Presentment Estimate (Fed Estimate)
587SummaryDebitLate Debits (After Notification)
588SummaryDebitTotal Disbursing Checks Paid - Last Amount
590SummaryDebitTotal DTC Debits
594SummaryDebitTotal ATM Debits
595DetailDebitATM Debit
596SummaryDebitTotal ARP Debits
597DetailDebitARP Debit
601SummaryDebitEstimated Total Disbursement
602SummaryDebitAdjusted Total Disbursement
610SummaryDebitTotal Funds Required
611SummaryDebitTotal Wire Transfers Out - CHF
612SummaryDebitTotal Wire Transfers Out - FF
613SummaryDebitTotal International Debit - CHF
614SummaryDebitTotal International Debit - FF
615SummaryDebitTotal Federal Reserve Bank - Commercial Bank Debit
616DetailDebitFederal Reserve Bank - Commercial Bank Debit
617SummaryDebitTotal Securities Purchased - CHF
618SummaryDebitTotal Securities Purchased - FF
621SummaryDebitTotal Broker Debits - CHF
622DetailDebitBroker Debit
623SummaryDebitTotal Broker Debits - FF
625SummaryDebitTotal Broker Debits
626SummaryDebitTotal Fed Funds Purchased
627DetailDebitFed Funds Purchased
628SummaryDebitTotal Cash Center Debits
629DetailDebitCash Center Debit
630SummaryDebitTotal Debit Adjustments
631DetailDebitDebit Adjustment
632SummaryDebitTotal Trust Debits
633DetailDebitTrust Debit
634DetailDebitYTD Adjustment Debit
640SummaryDebitTotal Escrow Debits
641DetailDebitIndividual Escrow Debit
644DetailDebitIndividual Back Value Debit
646SummaryDebitTransfer Calculation Debit
650SummaryDebitInvestments Purchased
651DetailDebitIndividual Investment purchased
654DetailDebitInterest Debit
655SummaryDebitTotal Investment Interest Debits
656DetailDebitSweep Principal Buy
657DetailDebitFutures Debit
658DetailDebitPrincipal Payments Debit
659DetailDebitInterest Adjustment Debit
661DetailDebitAccount Analysis Fee
662DetailDebitCorrespondent Collection Debit
663DetailDebitCorrespondent Collection Adjustment
664DetailDebitLoan Participation
665SummaryDebitIntercept Debits
666DetailDebitCurrency and Coin Shipped
667DetailDebitFood Stamp Letter
668DetailDebitFood Stamp Adjustment
669DetailDebitClearing Settlement Debit
670SummaryDebitTotal Back Value Debits
672DetailDebitBack Value Adjustment
673DetailDebitCustomer Payroll
674DetailDebitFRB Statement Recap
676DetailDebitSavings Bond Letter or Adjustment
677DetailDebitTreasury Tax and Loan Debit
678DetailDebitTransfer of Treasury Debit
679DetailDebitFRB Government Checks Cash Letter Debit
681DetailDebitFRB Government Check Adjustment
682DetailDebitFRB Postal Money Order Debit
683DetailDebitFRB Postal Money Order Adjustment
684DetailDebitFRB Cash Letter Auto Charge Debit
685SummaryDebitTotal Universal Debits
686DetailDebitFRB Cash Letter Auto Charge Adjustment
687DetailDebitFRB Fine-Sort Cash Letter Debit
688DetailDebitFRB Fine-Sort Adjustment
689SummaryDebitFRB Freight Payment Debits
690SummaryDebitTotal Miscellaneous Debits
691DetailDebitUniversal Debit
692DetailDebitFreight Payment Debit
693DetailDebitItemized Debit Over $10,000
694DetailDebitDeposit Reversal
695DetailDebitDeposit Correction Debit
696DetailDebitRegular Collection Debit
697DetailDebitCumulative Debits
698DetailDebitMiscellaneous Fees
699DetailDebitMiscellaneous Debit

Loan codes (700–799)

Loan balances, payments and disbursements.

CodeLevelDirectionName
701Status—Principal Loan Balance
703Status—Available Commitment Amount
705Status—Payment Amount Due
707Status—Principal Amount Past Due
709Status—Interest Amount Past Due
720SummaryCreditTotal Loan Payment
721DetailCreditAmount Applied to Interest
722DetailCreditAmount Applied to Principal
723DetailCreditAmount Applied to Escrow
724DetailCreditAmount Applied to Late Charges
725DetailCreditAmount Applied to Buydown
726DetailCreditAmount Applied to Misc. Fees
727DetailCreditAmount Applied to Deferred Interest Detail
728DetailCreditAmount Applied to Service Charge
760SummaryDebitLoan Disbursement

Non-monetary information (890)

A 16 record that carries only a text message.

CodeLevelDirectionName
890Detail—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.