Skip to content
Sign in

State Bank of India statement parser API

SBI account statements print seven columns in a fixed order: Txn Date, Value Date, Description, Ref No./Cheque No., Debit, Credit and Balance. On a PDF the parser takes them by position from every table row that opens with a date. In CSV and Excel downloads it finds each column by its heading, so the older and the current online layouts both work.

Formats and columns

How the API recognises it

The PDF parser looks for STATE BANK OF INDIA with @sbi.co.in, CIF Number, Branch Email ID or STATEMENT OF ACCOUNT. CSV and Excel files score on CIF No., Account Name and IFS (Indian Financial System) Code, and Excel also on an SBIN0 code.

Dates and amounts

The PDF takes DD/MM/YYYY only. The CSV and Excel parsers also accept two-digit years, DD-Mon-YYYY and real spreadsheet dates, and drop a time that follows the date. Debit and Credit are separate columns; a dash or a blank cell means no amount.

Account details

The account number from the Account Number line. The IFSC from IFSC Code on a PDF, falling back to any SBIN code on page one, or from the IFS (Indian Financial System) Code row in CSV and Excel. Each row keeps its Ref No./Cheque No. as cheque_no.

Opening and closing balances

No printed opening or closing figure is read from an SBI statement. The period and both balances are worked out from the first and last rows. On a PDF, a balance printed with DR comes out negative; CSV and Excel balances keep their figure without the DR sign.

What the parser handles

An SBI .xls saved as XML Spreadsheet is not read. Upload the .xlsx, the CSV or the PDF instead.

Sample State Bank of India result

One made-up State Bank of India row, as printed:

01/04/2025  01/04/2025  BY TRANSFER-NEFT*SAMPLE TRADERS  TRF00042  -  15,000.00  1,23,450.75

And its result file:

{
  "document_kind": "bank_statement",
  "result": {
    "meta": {
      "account_number": "XXXXXXX9056",
      "bank_name": "STATE BANK OF INDIA",
      "closing_balance": "120250.75",
      "detected_currency": "INR",
      "ifsc_code": "SBIN0XXXXXX",
      "opening_balance": "108450.75",
      "parser_name": "state-bank-of-india",
      "parser_version": "0.1.0",
      "period": {
        "end": "2025-04-04",
        "start": "2025-04-01"
      },
      "source": "file_upload"
    },
    "schema_version": "2.0",
    "transactions": [
      {
        "amount": "15000.00",
        "date": "2025-04-01",
        "description": "BY TRANSFER-NEFT*SAMPLE TRADERS",
        "metadata": {
          "balance_after": "123450.75",
          "cheque_no": "TRF00042"
        }
      },
      {
        "amount": "-3200.00",
        "date": "2025-04-04",
        "description": "TO CLEARING-CHQ PAID-DEMO LANDLORD",
        "metadata": {
          "balance_after": "120250.75",
          "cheque_no": "000917"
        }
      }
    ]
  },
  "schema_version": "2.0"
}

Protected PDF, .xls and .xlsx files open with the password you send with the job. See which password SBI uses. JSON only: no Excel, CSV or Tally export. Result fields · API docs · Pricing · Console