A Canara Bank UPI credit SMS looks like this: “Dear Customer, Acct XX123 credited with INR 1,000.00 on 18-10-26 from TEST PAYEE; UPI:600000000001; Bal INR 5,000.00-CanaraBank” It is a credit (money received) 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, a reference number and the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.
Template
Dear Customer, Acct maskedacct_tail credited with currencyamount on date from merchantName; UPI:upi_ref; Bal INR balance-CanaraBank
Sample SMS
Template matches this sample
Dear Customer, Acct XX123 credited with INR1,000.00 on 18-10-26 from TEST PAYEE; UPI:600000000001; Bal INR 5,000.00-CanaraBank
Field
Extracted value
masked
X
acct_tail
X123
currency
INR
amount
1,000.00
date
18-10-26
merchantName
TEST PAYEE
upi_ref
600000000001
balance
5,000.00
Compiled regex
flags: i
^Dear Customer, Acct \s*(?<masked>[\s\S]+?)\s*\s*(?<acct_tail>[\s\S]+?)\s* credited with \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\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* from \s*(?<merchantName>[\s\S]+?)\s*; UPI:\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*; Bal INR \s*(?<balance>[\s\S]+?)\s*-CanaraBank
JSON/api/templates/canara-upi-credit-v1
{
"id": "canara-upi-credit-v1",
"name": "CANARA_UPI_CREDIT_V1",
"bank": {
"code": "CANARA",
"name": "Canara Bank",
"slug": "canara-bank"
},
"category": "UPI",
"payment_mode": "UPI",
"direction": "credit",
"keywords": [
"credited with",
"UPI:",
"CanaraBank"
],
"template": "Dear Customer, Acct {masked}{acct_tail} credited with {currency} {amount} on {date} from {merchantName}; UPI:{upi_ref}; Bal INR {balance}-CanaraBank",
"regex": "^Dear Customer, Acct \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<acct_tail>[\\s\\S]+?)\\s* credited with \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\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* from \\s*(?<merchantName>[\\s\\S]+?)\\s*; UPI:\\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*; Bal INR \\s*(?<balance>[\\s\\S]+?)\\s*-CanaraBank",
"regex_flags": "i",
"sample": "Dear Customer, Acct XX123 credited with INR 1,000.00 on 18-10-26 from TEST PAYEE; UPI:600000000001; Bal INR 5,000.00-CanaraBank",
"verified": true,
"source": "pennywise"
}
Dear Customer, Acct maskedacct_tail Dr. currencyamount on date to merchantName; UPI: upi_ref; Bal INR balance.
Dear Customer, Acct XX123 Dr. INR250.50 on 18/10/2026 to testshop@ybl; UPI: 600000000005; Bal INR 3,749.50. Not you? SMS BLOCKUPI to 9000000000-CanaraBank
Frequently asked questions
What does a Canara Bank UPI credit SMS look like?
Dear Customer, Acct XX123 credited with INR 1,000.00 on 18-10-26 from TEST PAYEE; UPI:600000000001; Bal INR 5,000.00-CanaraBank — the parts that change are the amount, the last digits of the account or card, the date, the merchant or payee, a reference number and the available balance or credit limit.
How do I parse a Canara Bank UPI SMS?
First check that the message contains “credited with”, “UPI:”, “CanaraBank”. Then match it with this case-insensitive regular expression: ^Dear Customer, Acct \s*(?<masked>[\s\S]+?)\s*\s*(?<acct_tail>[\s\S]+?)\s* credited with \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\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* from \s*(?<merchantName>[\s\S]+?)\s*; UPI:\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*; Bal INR \s*(?<balance>[\s\S]+?)\s*-CanaraBank. The named groups give you the amount, the last digits of the account or card, the date, the merchant or payee, a reference number and the available balance or credit limit.
Is this Canara 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 Canara Bank use more than one UPI SMS format?
Yes. Canara Bank sends 2 different UPI formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.
Canara Bank UPI credit SMS format (CANARA_UPI_CREDIT_V1) | Iris SMS Templates