Kerala Gramin Bank UPI debit SMS format

KGB_UPI_DEBIT_V1

Last updated

Kerala Gramin Bank·UPIDebitVerified

Quick answer

A Kerala Gramin Bank UPI debit SMS looks like this: “Your a/c no. XXXX9876 is debited for Rs.1,250.50 on 01/8/25 03:15 PM and credited to a/c no. XXXXX11111 (UPI Ref no 987654321098)-Kerala Gramin Bank” 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

Your a/c no. is debited for currency.amount on date time and credited to a/c no. skip (UPI Ref no upi_ref)-Kerala Gramin Bank

Sample SMS

Template matches this sample

Your a/c no. is debited for Rs.1,250.50 on 01/8/25 03:15 PM and credited to a/c no. XXXXX11111 (UPI Ref no 987654321098)-Kerala Gramin Bank

FieldExtracted value
XXXX
9876
currencyRs
amount1,250.50
date01/8/25
time03:15 PM
skipXXXXX11111
upi_ref987654321098

Compiled regex

flags: i
^Your a/c no\. \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* is 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* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* and credited to a/c no\. \s*(?<skip>[\s\S]+?)\s* \(UPI Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\)-Kerala Gramin Bank
JSON/api/templates/kgb-upi-debit-v1
{
  "id": "kgb-upi-debit-v1",
  "name": "KGB_UPI_DEBIT_V1",
  "bank": {
    "code": "KERALAGRAMIN",
    "name": "Kerala Gramin Bank",
    "slug": "kerala-gramin-bank"
  },
  "category": "UPI",
  "payment_mode": "UPI",
  "direction": "debit",
  "keywords": [
    "is debited for",
    "UPI Ref no",
    "Kerala Gramin Bank"
  ],
  "template": "Your a/c no. {masked}{last_four} is debited for {currency}.{amount} on {date} {time} and credited to a/c no. {skip} (UPI Ref no {upi_ref})-Kerala Gramin Bank",
  "regex": "^Your a/c no\\. \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* is 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* \\s*(?<time>(?:\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* and credited to a/c no\\. \\s*(?<skip>[\\s\\S]+?)\\s* \\(UPI Ref no \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\)-Kerala Gramin Bank",
  "regex_flags": "i",
  "sample": "Your a/c no. XXXX9876 is debited for Rs.1,250.50 on 01/8/25 03:15 PM and credited to a/c no. XXXXX11111 (UPI Ref no 987654321098)-Kerala Gramin Bank",
  "verified": true,
  "source": "pennywise"
}

Other KGB UPI formats

KGB_UPI_CREDIT_V1UPICreditVerified

Dear Customer, Account is credited with currency amount on date time from merchantName. UPI Ref. no. upi_ref-Kerala Gramin Bank

Dear Customer, Account is credited with INR 3000 on 20-10-2025 08:15:26 from 7025784485@upi. UPI Ref. no. 529807237409-Kerala Gramin Bank

Frequently asked questions

What does a Kerala Gramin Bank UPI debit SMS look like?

Your a/c no. XXXX9876 is debited for Rs.1,250.50 on 01/8/25 03:15 PM and credited to a/c no. XXXXX11111 (UPI Ref no 987654321098)-Kerala Gramin Bank — 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 Kerala Gramin Bank UPI SMS?

First check that the message contains “is debited for”, “UPI Ref no”, “Kerala Gramin Bank”. Then match it with this case-insensitive regular expression: ^Your a/c no\. \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* is 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* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* and credited to a/c no\. \s*(?<skip>[\s\S]+?)\s* \(UPI Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\)-Kerala Gramin Bank. The named groups give you the amount, the last digits of the account or card, the date and a reference number.

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

Yes. Kerala Gramin 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.

Kerala Gramin Bank UPI debit SMS format (KGB_UPI_DEBIT_V1) | Iris SMS Templates