Punjab National Bank UPI debit SMS format

PNB_UPI_DEBIT_V1

Last updated

Quick answer

A Punjab National Bank UPI debit SMS looks like this: “A/c X0000 debited INR 250.00 Dt 02-01-26 12:00:00 to Swiggy Ltd thru UPI:000000000002.Bal INR 8750.00-PNB” It is a debit (money spent or sent) alert. The parts that change in each message are the amount, the last digits of the account or card, the date, the merchant or payee and a reference number; everything else is fixed text, so it can be matched with the regex below.

Template

A/c debited currency amount Dt date time to merchantName thru UPI:upi_ref.

Sample SMS

Template matches this sample

A/c debited INR 250.00 Dt 02-01-26 12:00:00 to Swiggy Ltd thru UPI:000000000002.Bal INR 8750.00-PNB

FieldExtracted value
X
0000
currencyINR
amount250.00
date02-01-26
time12:00:00
merchantNameSwiggy Ltd
upi_ref000000000002

Compiled regex

flags: i
^A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<acct_tail>[\s\S]+?)\s* debited \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* Dt \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* to \s*(?<merchantName>[\s\S]+?)\s* thru UPI:\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\.
JSON/api/templates/pnb-upi-debit-v1
{
  "id": "pnb-upi-debit-v1",
  "name": "PNB_UPI_DEBIT_V1",
  "bank": {
    "code": "PNB",
    "name": "Punjab National Bank",
    "slug": "pnb"
  },
  "category": "UPI",
  "payment_mode": "UPI",
  "direction": "debit",
  "keywords": [
    "debited",
    "thru UPI",
    "-PNB"
  ],
  "template": "A/c {masked}{acct_tail} debited {currency} {amount} Dt {date} {time} to {merchantName} thru UPI:{upi_ref}.",
  "regex": "^A/c \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<acct_tail>[\\s\\S]+?)\\s* debited \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* Dt \\s*(?<date>(?:\\d{2}-[A-Z]{3}-\\d{2,4}|\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* \\s*(?<time>(?:\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* to \\s*(?<merchantName>[\\s\\S]+?)\\s* thru UPI:\\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\.",
  "regex_flags": "i",
  "sample": "A/c X0000 debited INR 250.00 Dt 02-01-26 12:00:00 to Swiggy Ltd thru UPI:000000000002.Bal INR 8750.00-PNB",
  "verified": true,
  "source": "pennywise"
}

Other PNB UPI formats

PNB_UPI_CREDIT_V1UPICreditVerified

Ac Credited with currency.amount date time thru UPI . Aval Bal currency2.balance CR. (UPI Ref ID:upi_ref)

Ac Credited with Rs.4750.00 11-07-2025 08:53:21 thru UPI . Aval Bal Rs.82431.67 CR. (UPI Ref ID:714628305917) Helpline 18001800/18002021-PNB

PNB_UPI_CREDIT_V2UPICreditVerified

A/c credited currency amount From merchantName/UPI:upi_ref. Bal INR balance-PNB

A/c credited INR 125.00 From Example Shop Ltd/UPI:000000000003. Bal INR 9000.00-PNB

Frequently asked questions

What does a Punjab National Bank UPI debit SMS look like?

A/c X0000 debited INR 250.00 Dt 02-01-26 12:00:00 to Swiggy Ltd thru UPI:000000000002.Bal INR 8750.00-PNB — the parts that change are the amount, the last digits of the account or card, the date, the merchant or payee and a reference number.

How do I parse a Punjab National Bank UPI SMS?

First check that the message contains “debited”, “thru UPI”, “-PNB”. Then match it with this case-insensitive regular expression: ^A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<acct_tail>[\s\S]+?)\s* debited \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* Dt \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* to \s*(?<merchantName>[\s\S]+?)\s* thru UPI:\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\.. The named groups give you the amount, the last digits of the account or card, the date, the merchant or payee and a reference number.

Is this Punjab National Bank SMS format verified?

Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.

Does Punjab National Bank use more than one UPI SMS format?

Yes. Punjab National Bank sends 3 different UPI formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.

Punjab National Bank UPI debit SMS format (PNB_UPI_DEBIT_V1) | Iris SMS Templates