Your a/c XXlast_four is credited by currency.amount from merchantName on date (UPI Ref no upi_ref)-Karnataka Bank
Your a/c XX1111 is credited by Rs.20.00 from TEST PAYER on 19-10-26 (UPI Ref no 600000000001)-Karnataka Bank
KARNATAKA_UPI_DEBIT_V1
Last updated
Quick answer
A Karnataka Bank UPI debit SMS looks like this: “Your a/c XX1111 debited for Rs.500.00 on 06-10-26 trf to Test Distributor. UPI:6*********39.For dispute SMS BLOCK 1111 to 1800000000 -KarnatakaBank” 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.
Your a/c XXlast_four debited for currency.amount on date trf to merchantName. UPI:upi_masked.For dispute
Your a/c XX1111 debited for Rs.500.00 on 06-10-26 trf to Test Distributor. UPI:6*********39.For dispute SMS BLOCK 1111 to 1800000000 -KarnatakaBank
| Field | Extracted value |
|---|---|
| last_four | 1111 |
| currency | Rs |
| amount | 500.00 |
| date | 06-10-26 |
| merchantName | Test Distributor |
| upi_masked | 6*********39 |
^Your a/c XX\s*(?<last_four>\d{4})\s* debited for \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* trf to \s*(?<merchantName>[\s\S]+?)\s*\. UPI:\s*(?<upi_masked>[\s\S]+?)\s*\.For dispute/api/templates/karnataka-upi-debit-v1{
"id": "karnataka-upi-debit-v1",
"name": "KARNATAKA_UPI_DEBIT_V1",
"bank": {
"code": "KARNATAKABANK",
"name": "Karnataka Bank",
"slug": "karnataka-bank"
},
"category": "UPI",
"payment_mode": "UPI",
"direction": "debit",
"keywords": [
"debited for",
"trf to",
"KarnatakaBank"
],
"template": "Your a/c XX{last_four} debited for {currency}.{amount} on {date} trf to {merchantName}. UPI:{upi_masked}.For dispute",
"regex": "^Your a/c XX\\s*(?<last_four>\\d{4})\\s* debited for \\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* trf to \\s*(?<merchantName>[\\s\\S]+?)\\s*\\. UPI:\\s*(?<upi_masked>[\\s\\S]+?)\\s*\\.For dispute",
"regex_flags": "i",
"sample": "Your a/c XX1111 debited for Rs.500.00 on 06-10-26 trf to Test Distributor. UPI:6*********39.For dispute SMS BLOCK 1111 to 1800000000 -KarnatakaBank",
"verified": true,
"source": "pennywise"
}Your a/c XXlast_four is credited by currency.amount from merchantName on date (UPI Ref no upi_ref)-Karnataka Bank
Your a/c XX1111 is credited by Rs.20.00 from TEST PAYER on 19-10-26 (UPI Ref no 600000000001)-Karnataka Bank
Your a/c XX1111 debited for Rs.500.00 on 06-10-26 trf to Test Distributor. UPI:6*********39.For dispute SMS BLOCK 1111 to 1800000000 -KarnatakaBank — 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.
First check that the message contains “debited for”, “trf to”, “KarnatakaBank”. Then match it with this case-insensitive regular expression: ^Your a/c XX\s*(?<last_four>\d{4})\s* debited for \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* trf to \s*(?<merchantName>[\s\S]+?)\s*\. UPI:\s*(?<upi_masked>[\s\S]+?)\s*\.For dispute. 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.
Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.
Yes. Karnataka 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.