ICICI Bank statement parser API
ICICI Bank prints its statements in more shapes than most: five PDF renderings across savings, current-account, compact and tabular statements, plus CSV and Excel downloads. Three PDF parsers share the work and the API scores each file against all of them, so every ICICI statement is uploaded the same way.
Formats and columns
- PDF: savings (DATE, MODE, PARTICULARS, DEPOSITS, WITHDRAWALS, BALANCE); current account, whose balance ends in Cr or Dr; the compact grid (S No., Transaction Date, Cheque Number, Transaction Remarks, Withdrawal, Deposit, Balance); and ruled tables in the Sl No / Tran Id rendering or the Sr No rendering used for PPF accounts.
- CSV: Transactions List export with Transaction Date, Value Date, Cheque Number, Transaction Remarks, Withdrawal Amount (INR), Deposit Amount (INR) and Balance (INR).
- Excel: .xls or .xlsx Transactions List with the same headings; the header row is the first naming Balance and Withdrawal.
How the API recognises it
All three PDF parsers look for ICIC0, ICICI BANK or www.icici.bank.in. The savings and current parser then scores on Statement of transactions in and Summary of Accounts held; the compact one on S No. Cheque Number Transaction Remarks; the tabular one on Tran Id, Posted Ref No and Transactions List. Inside the first, a page that names DEPOSITS, WITHDRAWALS and BALANCE selects the savings layout.
Dates and amounts
Each layout has its own date style: DD-MM-YYYY on savings and current statements, DD.MM.YYYY on the compact grid, DD/Mon/YYYY or DD/MM/YYYY in the ruled tables. The current-account statement prints one unsigned amount per row; the parser makes it a debit when the balance fell and a credit when it rose, and a balance marked Dr comes out negative.
Account details
The account number and the printed period (for example for the period April 1, 2025 - April 30, 2025), plus the IFSC: matched by its ICIC0 prefix on most PDFs and read after IFSC Code: on the ruled tables. The CSV and Excel exports carry no IFSC, so ifsc_code is empty there: take it from a PDF. CSV and Excel rows add the cheque number; PDF rows carry the running balance.
Opening and closing balances
Opening and closing balances are worked out for every ICICI format: the closing balance is the last row's balance, and the opening is the first row's balance with its own amount reversed. A period that a PDF does not print stays empty; for CSV and Excel it runs from the first to the last row.
What the parser handles
- Savings statements centre the date and amounts in tall cells, so a wrapped description line is attached to the nearest dated line, above or below it.
- B/F rows are skipped and reading stops at the Total: line.
- On current-account statements, page numbers, page totals, repeated headings, sweep notes and legends end the row in progress instead of joining its narration.
- On the compact grid each figure goes to the column whose heading it sits under, and closing lines such as Sincerely and Legends are ignored.
- In the ruled tables, a figure split over two lines inside a cell is joined back together, and carried-forward and closing rows are dropped.
On the compact layout, ICICI can print a same-day running balance that lags the rows, so balance_after may not step with every amount on those dates.
Sample ICICI Bank result
One made-up ICICI Bank row, as printed:
05-04-2025 UPI UPI/512300000001/DEMO CAFE/Payment 2,400.00 73,540.00 And its result file:
{
"document_kind": "bank_statement",
"result": {
"meta": {
"account_number": "XXXXXXXX7302",
"bank_name": "ICICI BANK",
"closing_balance": "138540.00",
"detected_currency": "INR",
"ifsc_code": "ICIC0XXXXXX",
"opening_balance": "75940.00",
"parser_name": "icici-bank",
"parser_version": "0.1.0",
"period": {
"end": "2025-04-11",
"start": "2025-04-05"
},
"source": "file_upload"
},
"schema_version": "2.0",
"transactions": [
{
"amount": "-2400.00",
"date": "2025-04-05",
"description": "UPI/512300000001/DEMO CAFE/Payment",
"metadata": {
"balance_after": "73540.00"
}
},
{
"amount": "65000.00",
"date": "2025-04-11",
"description": "NEFT-SAMPLE PAYROLL LTD-SALARY APR",
"metadata": {
"balance_after": "138540.00"
}
}
]
},
"schema_version": "2.0"
} Protected PDF, .xls and .xlsx files open with the password you send with the job. JSON only: no Excel, CSV or Tally export. Result fields · API docs · Pricing · Console