# Punjab National Bank Statement Parser API (Excel to JSON)

> Punjab National Bank (PNB) statement parser API for the PNB ONE Excel export: transactions, IFSC and running balances as JSON. PDF is not supported.

Source: https://parser.lekhavo.com/banks/punjab-national-bank/

[Home](https://parser.lekhavo.com/) / [Supported banks](https://parser.lekhavo.com/banks/) / Punjab National Bank 

# 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

* **Excel**: .xls or .xlsx statement exported from PNB ONE, newest first, with Txn No., Txn Date, Description, Branch Name, Cheque No., Dr Amount, Cr Amount and Balance.

## 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

* Title rows, blank lines and totals have no readable date, so they are skipped.
* A password-protected PNB workbook opens with the job password.
* A row needs both a date and a balance to be read.

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](https://parser.lekhavo.com/bank-statement-to-json/) · [API docs](https://parser.lekhavo.com/docs/) · [Pricing](https://parser.lekhavo.com/pricing/) · [Console](https://parser.lekhavo.com/app/)
