Bank of Baroda UPI debit SMS format

BOB_UPI_DEBIT_V1

Last updated

Bank of Baroda·UPIDebitVerified

Quick answer

A Bank of Baroda UPI debit SMS looks like this: “Rs.80.00 Dr. from A/c XX123456 on 12-11-2024. AvlBal:Rs1234.56cx. Ref:52211012345 -Bank of Baroda” 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 and a reference number; everything else is fixed text, so it can be matched with the regex below.

Template

currency.amount Dr. from A/c on date. AvlBal:skip. Ref:upi_ref -Bank of Baroda

Sample SMS

Template matches this sample

Rs.80.00 Dr. from A/c on 12-11-2024. AvlBal:Rs1234.56cx. Ref:52211012345 -Bank of Baroda

FieldExtracted value
currencyRs
amount80.00
XX12
3456
date12-11-2024
skipRs1234.56cx
upi_ref52211012345

Compiled regex

flags: i
^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* Dr\. from A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* on \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s*\. AvlBal:\s*(?<skip>[\s\S]+?)\s*\. Ref:\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* -Bank of Baroda
JSON/api/templates/bob-upi-debit-v1
{
  "id": "bob-upi-debit-v1",
  "name": "BOB_UPI_DEBIT_V1",
  "bank": {
    "code": "BOB",
    "name": "Bank of Baroda",
    "slug": "bank-of-baroda"
  },
  "category": "UPI",
  "payment_mode": "UPI",
  "direction": "debit",
  "keywords": [
    "Dr. from A/c",
    "Bank of Baroda"
  ],
  "template": "{currency}.{amount} Dr. from A/c {masked}{last_four} on {date}. AvlBal:{skip}. Ref:{upi_ref} -Bank of Baroda",
  "regex": "^\\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* Dr\\. from A/c \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* on \\s*(?<date>(?:\\d{2}-[A-Z]{3}-\\d{2,4}|\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s*\\. AvlBal:\\s*(?<skip>[\\s\\S]+?)\\s*\\. Ref:\\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s* -Bank of Baroda",
  "regex_flags": "i",
  "sample": "Rs.80.00 Dr. from A/c XX123456 on 12-11-2024. AvlBal:Rs1234.56cx. Ref:52211012345 -Bank of Baroda",
  "verified": true,
  "source": "pennywise"
}

Other BoB UPI formats

BOB_UPI_CREDIT_V1UPICreditVerified

currency.amount Cr. to merchantName A/c on date. AvlBal:skip. Ref:upi_ref -Bank of Baroda

Rs.500.00 Cr. to redacted@ybl A/c on 15-11-2024. AvlBal:Rs5678.90. Ref:987654321 -Bank of Baroda

Frequently asked questions

What does a Bank of Baroda UPI debit SMS look like?

Rs.80.00 Dr. from A/c XX123456 on 12-11-2024. AvlBal:Rs1234.56cx. Ref:52211012345 -Bank of Baroda — the parts that change are the amount, the last digits of the account or card, the date and a reference number.

How do I parse a Bank of Baroda UPI SMS?

First check that the message contains “Dr. from A/c”, “Bank of Baroda”. Then match it with this case-insensitive regular expression: ^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* Dr\. from A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* on \s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s*\. AvlBal:\s*(?<skip>[\s\S]+?)\s*\. Ref:\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* -Bank of Baroda. The named groups give you the amount, the last digits of the account or card, the date and a reference number.

Is this Bank of Baroda 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 Bank of Baroda use more than one UPI SMS format?

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

Bank of Baroda UPI debit SMS format (BOB_UPI_DEBIT_V1) | Iris SMS Templates