South Indian Bank Card spend debit SMS format

SIB_CARD_DEBIT_V1

Last updated

South Indian Bank·Card spendCARDDebitVerified

Quick answer

A South Indian Bank Card spend debit SMS looks like this: “A/c X7477 DEBIT:Rs.983.75 SPICE KITCHEN MCT Bal:Rs.1234.67 Block A/c? call 18004251809/SMS BLK<full A/c>to 9840777222-South Indian 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 merchant or payee and the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.

Template

A/c X DEBIT:currency.amount merchantName Bal:currency2.balance Block A/c?

Sample SMS

Template matches this sample

A/c X DEBIT:Rs.983.75 SPICE KITCHEN MCT Bal:Rs.1234.67 Block A/c? call 18004251809/SMS BLK<full A/c>to 9840777222-South Indian Bank

FieldExtracted value
7477
currencyRs
amount983.75
merchantNameSPICE KITCHEN MCT
currency2Rs
balance1234.67

Compiled regex

flags: i
^A/c X\s*(?<last_four>\d{4})\s* DEBIT:\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* \s*(?<merchantName>[\s\S]+?)\s* Bal:\s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+?)\s* Block A/c\?
JSON/api/templates/sib-card-debit-v1
{
  "id": "sib-card-debit-v1",
  "name": "SIB_CARD_DEBIT_V1",
  "bank": {
    "code": "SOUTHINDIANBANK",
    "name": "South Indian Bank",
    "slug": "south-indian-bank"
  },
  "category": "Card spend",
  "payment_mode": "CARD",
  "direction": "debit",
  "keywords": [
    "DEBIT:",
    "South Indian Bank"
  ],
  "template": "A/c X{last_four} DEBIT:{currency}.{amount} {merchantName} Bal:{currency2}.{balance} Block A/c?",
  "regex": "^A/c X\\s*(?<last_four>\\d{4})\\s* DEBIT:\\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* \\s*(?<merchantName>[\\s\\S]+?)\\s* Bal:\\s*(?<currency2>[A-Z]{2,4})\\s*\\.\\s*(?<balance>[\\s\\S]+?)\\s* Block A/c\\?",
  "regex_flags": "i",
  "sample": "A/c X7477 DEBIT:Rs.983.75 SPICE KITCHEN MCT Bal:Rs.1234.67 Block A/c? call 18004251809/SMS BLK<full A/c>to 9840777222-South Indian Bank",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a South Indian Bank Card spend debit SMS look like?

A/c X7477 DEBIT:Rs.983.75 SPICE KITCHEN MCT Bal:Rs.1234.67 Block A/c? call 18004251809/SMS BLK<full A/c>to 9840777222-South Indian Bank — the parts that change are the amount, the last digits of the account or card, the merchant or payee and the available balance or credit limit.

How do I parse a South Indian Bank Card spend SMS?

First check that the message contains “DEBIT:”, “South Indian Bank”. Then match it with this case-insensitive regular expression: ^A/c X\s*(?<last_four>\d{4})\s* DEBIT:\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* \s*(?<merchantName>[\s\S]+?)\s* Bal:\s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+?)\s* Block A/c\?. The named groups give you the amount, the last digits of the account or card, the merchant or payee and the available balance or credit limit.

Is this South Indian 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.

South Indian Bank Card spend debit SMS format (SIB_CARD_DEBIT_V1) | Iris SMS Templates