HSBC India Account debit SMS format

HSBC_PAID_V1

Last updated

Quick answer

An HSBC India Account debit / credit debit SMS looks like this: “HSBC: INR 1,234.56 is paid from your A/c 074-260***-006 to AMAZON on 20-Dec-25. Your Avl Bal is INR 98,765.44 .” It is a debit (money spent or sent) alert. The parts that change in each message are the amount, 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

HSBC: currency amount is paid from your A/c skip to merchantName on date. Your Avl Bal is INR balance .

Sample SMS

Template matches this sample

HSBC: INR 1,234.56 is paid from your A/c 074-260***-006 to AMAZON on 20-Dec-25. Your Avl Bal is INR 98,765.44 .

FieldExtracted value
currencyINR
amount1,234.56
skip074-260***-006
merchantNameAMAZON
date20-Dec-25
balance98,765.44

Compiled regex

flags: i
^HSBC: \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* is paid from your A/c \s*(?<skip>[\s\S]+?)\s* to \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*\. Your Avl Bal is INR \s*(?<balance>[\s\S]+?)\s* \.
JSON/api/templates/hsbc-paid-v1
{
  "id": "hsbc-paid-v1",
  "name": "HSBC_PAID_V1",
  "bank": {
    "code": "HSBC",
    "name": "HSBC India",
    "slug": "hsbc-india"
  },
  "category": "Account debit / credit",
  "payment_mode": "BANK",
  "direction": "debit",
  "keywords": [
    "HSBC",
    "is paid from your A/c"
  ],
  "template": "HSBC: {currency} {amount} is paid from your A/c {skip} to {merchantName} on {date}. Your Avl Bal is INR {balance} .",
  "regex": "^HSBC: \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* is paid from your A/c \\s*(?<skip>[\\s\\S]+?)\\s* to \\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*\\. Your Avl Bal is INR \\s*(?<balance>[\\s\\S]+?)\\s* \\.",
  "regex_flags": "i",
  "sample": "HSBC: INR 1,234.56 is paid from your A/c 074-260***-006 to AMAZON on 20-Dec-25. Your Avl Bal is INR 98,765.44 .",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does an HSBC India Account debit / credit debit SMS look like?

HSBC: INR 1,234.56 is paid from your A/c 074-260***-006 to AMAZON on 20-Dec-25. Your Avl Bal is INR 98,765.44 . — the parts that change are the amount, the date, the merchant or payee and the available balance or credit limit.

How do I parse an HSBC India Account debit / credit SMS?

First check that the message contains “HSBC”, “is paid from your A/c”. Then match it with this case-insensitive regular expression: ^HSBC: \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* is paid from your A/c \s*(?<skip>[\s\S]+?)\s* to \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*\. Your Avl Bal is INR \s*(?<balance>[\s\S]+?)\s* \.. The named groups give you the amount, the date, the merchant or payee and the available balance or credit limit.

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

HSBC India Account debit SMS format (HSBC_PAID_V1) | Iris SMS Templates