Quick answer
A Bank of India UPI debit SMS looks like this: “Rs.200.00 debited A/cXX5468 and credited to SAI MISAL via UPI Ref No 315439383341 on 23Aug25. Call 18001031906, if not done by you. -BOI” 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
currency.amount debited A/cmaskedlast_four and credited to merchantName via UPI Ref No upi_ref on date.
Sample SMS
Rs.200.00 debited A/cXX5468 and credited to SAI MISAL via UPI Ref No 315439383341 on 23Aug25. Call 18001031906, if not done by you. -BOI
| Field | Extracted value |
|---|---|
| currency | Rs |
| amount | 200.00 |
| masked | XX |
| last_four | 5468 |
| merchantName | SAI MISAL |
| upi_ref | 315439383341 |
| date | 23Aug25 |
Compiled regex
^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* debited A/c\s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* and credited to \s*(?<merchantName>[\s\S]+?)\s* via UPI Ref No \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\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*\.JSON/api/templates/boi-upi-debit-v1
{
"id": "boi-upi-debit-v1",
"name": "BOI_UPI_DEBIT_V1",
"bank": {
"code": "BOI",
"name": "Bank of India",
"slug": "bank-of-india"
},
"category": "UPI",
"payment_mode": "UPI",
"direction": "debit",
"keywords": [
"debited A/c",
"credited to",
"via UPI",
"-BOI"
],
"template": "{currency}.{amount} debited A/c{masked}{last_four} and credited to {merchantName} via UPI Ref No {upi_ref} on {date}.",
"regex": "^\\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* debited A/c\\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* and credited to \\s*(?<merchantName>[\\s\\S]+?)\\s* via UPI Ref No \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\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*\\.",
"regex_flags": "i",
"sample": "Rs.200.00 debited A/cXX5468 and credited to SAI MISAL via UPI Ref No 315439383341 on 23Aug25. Call 18001031906, if not done by you. -BOI",
"verified": true,
"source": "pennywise"
}Frequently asked questions
What does a Bank of India UPI debit SMS look like?
Rs.200.00 debited A/cXX5468 and credited to SAI MISAL via UPI Ref No 315439383341 on 23Aug25. Call 18001031906, if not done by you. -BOI — 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 Bank of India UPI SMS?
First check that the message contains “debited A/c”, “credited to”, “via UPI”, “-BOI”. Then match it with this case-insensitive regular expression: ^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* debited A/c\s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* and credited to \s*(?<merchantName>[\s\S]+?)\s* via UPI Ref No \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\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*\.. 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 Bank of India 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.