Yes Bank statement parser API
Yes Bank's Excel download is an XML Spreadsheet saved with a .xls name, not a binary workbook. The parser reads that XML directly, including the summary row with the opening and closing balances, and reads the PDF statement from its tables.
Formats and columns
- PDF: statement tables with Transaction Date, Value Date, Cheque/Reference No, Description, Withdrawals, Deposits and Running Balance; only tables whose first row names Withdrawals and Deposits are read.
- Excel: .xls in XML Spreadsheet format (the bank's own Excel download), with the same columns under a header row naming Transaction Date and Running Balance.
How the API recognises it
A PDF scores on YES BANK or the YESB code with Statement of account and Running Balance. The Excel parser runs only on a file that begins with the XML Spreadsheet marker and mentions YES BANK.
Dates and amounts
Transactions are dated DD Mon YYYY in both formats, while the Excel download prints its period as DD/MM/YYYY. Withdrawals and Deposits are separate columns; commas are removed and anything that is not a number counts as empty.
Account details
Account number, IFSC and period from both formats: Statement of account : and IFSC Code : on the PDF; the Account No : cell and the RTGS/NEFT/ IFSC row in the Excel file, whose currency label also becomes detected_currency. The cheque or reference number goes on each row.
Opening and closing balances
The Excel download's opening and closing balances are read from its printed summary: the row after the Opening Balance label, with the closing figure under the Closing Balance heading. The PDF parser does not report them, so they are 0.00 for a PDF; every row still carries its running balance.
What the parser handles
- Descriptions that wrap inside a PDF cell are joined into one line.
- Opening and total rows without a leading date are dropped.
- The XML is read with a hardened parser, and reading stops at STATEMENT SUMMARY.
Only the XML Spreadsheet download is read for Yes Bank Excel; a copy re-saved as a binary .xls or .xlsx is not.
Sample Yes Bank result
One made-up Yes Bank row, as printed:
02 Apr 2025 02 Apr 2025 NEFT0042 NEFT CR SAMPLE EXPORTS - 40,000.00 1,12,000.00 And its result file:
{
"document_kind": "bank_statement",
"result": {
"meta": {
"account_number": "XXXXXXXXXX3344",
"bank_name": "YES BANK",
"closing_balance": "0.00",
"detected_currency": "INR",
"ifsc_code": "YESB0XXXXXX",
"opening_balance": "0.00",
"parser_name": "yes-bank",
"parser_version": "0.1.0",
"period": {
"end": "2025-04-06",
"start": "2025-04-02"
},
"source": "file_upload"
},
"schema_version": "2.0",
"transactions": [
{
"amount": "40000.00",
"date": "2025-04-02",
"description": "NEFT CR SAMPLE EXPORTS",
"metadata": {
"balance_after": "112000.00",
"cheque_no": "NEFT0042"
}
},
{
"amount": "-12500.00",
"date": "2025-04-06",
"description": "RTGS DR DEMO SUPPLIERS",
"metadata": {
"balance_after": "99500.00",
"cheque_no": "RTGS0007"
}
}
]
},
"schema_version": "2.0"
} A protected PDF opens with the password you send with the job. JSON only: no Excel, CSV or Tally export. Result fields · API docs · Pricing · Console