Karnataka Bank UPI debit SMS format

KARNATAKA_UPI_DEBIT_V1

Last updated

Karnataka Bank·UPIDebitVerified

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.

Template

Your a/c XX debited for currency.amount on date trf to merchantName. UPI:upi_masked.For dispute

Sample SMS

Template matches this sample

Your a/c XX debited for Rs.500.00 on 06-10-26 trf to Test Distributor. UPI:6*********39.For dispute SMS BLOCK 1111 to 1800000000 -KarnatakaBank

FieldExtracted value
1111
currencyRs
amount500.00
date06-10-26
merchantNameTest Distributor
upi_masked6*********39

Compiled regex

flags: i
^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
JSON/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"
}

Other KBL UPI formats

KARNATAKA_UPI_CREDIT_V1UPICreditVerified

Your a/c XX is credited by currency.amount from merchantName on date (UPI Ref no upi_ref)-Karnataka Bank

Your a/c XX is credited by Rs.20.00 from TEST PAYER on 19-10-26 (UPI Ref no 600000000001)-Karnataka Bank

Frequently asked questions

What does a Karnataka Bank UPI debit SMS look like?

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.

How do I parse a Karnataka Bank UPI SMS?

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.

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

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.

Karnataka Bank UPI debit SMS format (KARNATAKA_UPI_DEBIT_V1) | Iris SMS Templates