State Bank of India Card spend debit SMS format

SBI_DEBIT_CARD_V1

Last updated

Quick answer

A State Bank of India Card spend debit SMS looks like this: “Dear Customer, transaction number 1234 for Rs.383.00 by SBI Debit Card 0000 done at merchant on 13Sep25 at 21:38:26. Your updated available balance is Rs.999999999. If not done by you, forward this SMS to 7400165218/ call 1800111109/9449112211 to block card. G” 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, 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, transaction number ref for currency.amount by SBI Debit Card done at merchantName on date at time. Your updated available balance is currency2.balance.

Sample SMS

Template matches this sample

Dear Customer, transaction number 1234 for Rs.383.00 by SBI Debit Card done at merchant on 13Sep25 at 21:38:26. Your updated available balance is Rs.999999999. If not done by you, forward this SMS to 7400165218/ call 1800111109/9449112211 to block card. G

FieldExtracted value
ref1234
currencyRs
amount383.00
0000
merchantNamemerchant
date13Sep25
time21:38:26
currency2Rs
balance999999999

Compiled regex

flags: i
^Dear Customer, transaction number \s*(?<ref>[\s\S]+?)\s* for \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* by SBI Debit Card \s*(?<last_four>\d{4})\s* done at \s*(?<merchantName>[\s\S]+?)\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* at \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s*\. Your updated available balance is \s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+?)\s*\.
JSON/api/templates/sbi-debit-card-v1
{
  "id": "sbi-debit-card-v1",
  "name": "SBI_DEBIT_CARD_V1",
  "bank": {
    "code": "SBI",
    "name": "State Bank of India",
    "slug": "sbi"
  },
  "category": "Card spend",
  "payment_mode": "CARD",
  "direction": "debit",
  "keywords": [
    "SBI Debit Card",
    "done at"
  ],
  "template": "Dear Customer, transaction number {ref} for {currency}.{amount} by SBI Debit Card {last_four} done at {merchantName} on {date} at {time}. Your updated available balance is {currency2}.{balance}.",
  "regex": "^Dear Customer, transaction number \\s*(?<ref>[\\s\\S]+?)\\s* for \\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* by SBI Debit Card \\s*(?<last_four>\\d{4})\\s* done at \\s*(?<merchantName>[\\s\\S]+?)\\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* at \\s*(?<time>(?:\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s*\\. Your updated available balance is \\s*(?<currency2>[A-Z]{2,4})\\s*\\.\\s*(?<balance>[\\s\\S]+?)\\s*\\.",
  "regex_flags": "i",
  "sample": "Dear Customer, transaction number 1234 for Rs.383.00 by SBI Debit Card 0000 done at merchant on 13Sep25 at 21:38:26. Your updated available balance is Rs.999999999. If not done by you, forward this SMS to 7400165218/ call 1800111109/9449112211 to block card. G",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a State Bank of India Card spend debit SMS look like?

Dear Customer, transaction number 1234 for Rs.383.00 by SBI Debit Card 0000 done at merchant on 13Sep25 at 21:38:26. Your updated available balance is Rs.999999999. If not done by you, forward this SMS to 7400165218/ call 1800111109/9449112211 to block card. G — 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 State Bank of India Card spend SMS?

First check that the message contains “SBI Debit Card”, “done at”. Then match it with this case-insensitive regular expression: ^Dear Customer, transaction number \s*(?<ref>[\s\S]+?)\s* for \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* by SBI Debit Card \s*(?<last_four>\d{4})\s* done at \s*(?<merchantName>[\s\S]+?)\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* at \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s*\. Your updated available balance is \s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+?)\s*\.. 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 State 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.

State Bank of India Card spend debit SMS format (SBI_DEBIT_CARD_V1) | Iris SMS Templates