Skip to content
Sign in

Punjab National Bank statement parser API

Punjab National Bank is supported through the Excel statement from PNB ONE. The sheet never prints the bank's name, so the parser recognises it by its PUNB0 IFSC codes and its Dr Amount and Cr Amount headings instead.

Formats and columns

How the API recognises it

The workbook is read without a header row, and scores on PUNB0, Dr Amount, Cr Amount and the Txn Date, Description, Cheque No. and Balance headings. The bank name is listed as a keyword but does not appear in the export.

Dates and amounts

Dates may be text in the usual Indian forms or real spreadsheet dates. Dr Amount and Cr Amount are separate columns. The balance ends in Cr. or Dr.: the trailing full stop is dropped and a Dr balance comes out negative.

Account details

The account number from the Account Number text in cell A1, and the IFSC from the label cells in the first 20 rows, a limit that keeps the Branch Name column heading from being taken for the branch label. Each row keeps its cheque number.

Opening and closing balances

The export runs newest first, so the rows are reversed into date order. The period, opening and closing balances are then worked out from the first and last rows.

What the parser handles

PNB PDF statements are not supported yet. Download the Excel statement from PNB ONE instead.

Sample Punjab National Bank result

One made-up Punjab National Bank row, as printed:

T0042  12/04/2025  NEFT-SAMPLE TEXTILES  SAMPLE BRANCH  000331   -   4,500.00   61,200.00 Cr.

And its result file:

{
  "document_kind": "bank_statement",
  "result": {
    "meta": {
      "account_number": "XXXXXXXXXXXX5409",
      "bank_name": "PUNJAB NATIONAL BANK",
      "closing_balance": "60300.00",
      "detected_currency": "INR",
      "ifsc_code": "PUNB0XXXXXX",
      "opening_balance": "56700.00",
      "parser_name": "punjab-national-bank",
      "parser_version": "0.1.0",
      "period": {
        "end": "2025-04-15",
        "start": "2025-04-12"
      },
      "source": "file_upload"
    },
    "schema_version": "2.0",
    "transactions": [
      {
        "amount": "4500.00",
        "date": "2025-04-12",
        "description": "NEFT-SAMPLE TEXTILES",
        "metadata": {
          "balance_after": "61200.00",
          "cheque_no": "000331"
        }
      },
      {
        "amount": "-900.00",
        "date": "2025-04-15",
        "description": "SMS CHARGES Q4",
        "metadata": {
          "balance_after": "60300.00"
        }
      }
    ]
  },
  "schema_version": "2.0"
}

A protected .xls or .xlsx file opens with the password you send with the job. JSON only: no Excel, CSV or Tally export. Result fields · API docs · Pricing · Console