BOBCARD spend debit SMS format

BOBCARD_SPENT_V1

Last updated

BOBCARD·Card spendCARDDebitVerified

Quick answer

A BOBCARD spend debit SMS looks like this: “ALERT: INR 1,500.00 is spent on your BOBCARD ending 1234 at AMAZON on 25-11-2024 10:30:00. Available credit limit is Rs 42,981.46 -Bank of Baroda” 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 the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.

Template

ALERT: currency amount is spent on your BOBCARD ending at merchantName on date. Available credit limit is Rs limit -Bank of Baroda

Sample SMS

Template matches this sample

ALERT: INR 1,500.00 is spent on your BOBCARD ending at AMAZON on 25-11-2024 10:30:00. Available credit limit is Rs 42,981.46 -Bank of Baroda

FieldExtracted value
currencyINR
amount1,500.00
1234
merchantNameAMAZON
date25-11-2024 10:30:00
limit42,981.46

Compiled regex

flags: i
^ALERT: \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* is spent on your BOBCARD ending \s*(?<last_four>\d{4})\s* 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*\. Available credit limit is Rs \s*(?<limit>[\s\S]+?)\s* -Bank of Baroda
JSON/api/templates/bobcard-spent-v1
{
  "id": "bobcard-spent-v1",
  "name": "BOBCARD_SPENT_V1",
  "bank": {
    "code": "BOBCARD",
    "name": "BOBCARD",
    "slug": "bobcard"
  },
  "category": "Card spend",
  "payment_mode": "CARD",
  "direction": "debit",
  "keywords": [
    "spent on your BOBCARD"
  ],
  "template": "ALERT: {currency} {amount} is spent on your BOBCARD ending {last_four} at {merchantName} on {date}. Available credit limit is Rs {limit} -Bank of Baroda",
  "regex": "^ALERT: \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* is spent on your BOBCARD ending \\s*(?<last_four>\\d{4})\\s* 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*\\. Available credit limit is Rs \\s*(?<limit>[\\s\\S]+?)\\s* -Bank of Baroda",
  "regex_flags": "i",
  "sample": "ALERT: INR 1,500.00 is spent on your BOBCARD ending 1234 at AMAZON on 25-11-2024 10:30:00. Available credit limit is Rs 42,981.46 -Bank of Baroda",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a BOBCARD spend debit SMS look like?

ALERT: INR 1,500.00 is spent on your BOBCARD ending 1234 at AMAZON on 25-11-2024 10:30:00. Available credit limit is Rs 42,981.46 -Bank of Baroda — the parts that change are the amount, the last digits of the account or card, the date, the merchant or payee and the available balance or credit limit.

How do I parse a BOBCARD spend SMS?

First check that the message contains “spent on your BOBCARD”. Then match it with this case-insensitive regular expression: ^ALERT: \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* is spent on your BOBCARD ending \s*(?<last_four>\d{4})\s* 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*\. Available credit limit is Rs \s*(?<limit>[\s\S]+?)\s* -Bank of Baroda. The named groups give you the amount, the last digits of the account or card, the date, the merchant or payee and the available balance or credit limit.

Is this BOBCARD 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.

BOBCARD spend debit SMS format (BOBCARD_SPENT_V1) | Iris SMS Templates