Your A/C maskedlast_four is credited by currency amount on date time. New Bal :INR balance
Your A/C XXXXXXX5678 is credited by INR 500.00 on 06/08/25 17:36. New Bal :INR 10000.00
IDFC_DEBIT_V1
Last updated
Quick answer
An IDFC FIRST Bank Account debit / credit debit SMS looks like this: “Your A/C XXXXXXX1234 is debited by INR 68.00 on 06/08/25 17:36. New Bal :INR 5000.00” 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 the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.
Your A/C maskedlast_four is debited by currency amount on date time. New Bal :INR balance
Your A/C XXXXXXX1234 is debited by INR 68.00 on 06/08/25 17:36. New Bal :INR 5000.00
| Field | Extracted value |
|---|---|
| masked | XXXXXXX |
| last_four | 1234 |
| currency | INR |
| amount | 68.00 |
| date | 06/08/25 |
| time | 17:36 |
| balance | 5000.00 |
^Your A/C \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* is debited by \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*\. New Bal :INR \s*(?<balance>[\s\S]+)\s*/api/templates/idfc-debit-v1{
"id": "idfc-debit-v1",
"name": "IDFC_DEBIT_V1",
"bank": {
"code": "IDFCFIRST",
"name": "IDFC FIRST Bank",
"slug": "idfc-first-bank"
},
"category": "Account debit / credit",
"payment_mode": "BANK",
"direction": "debit",
"keywords": [
"is debited by",
"New Bal"
],
"template": "Your A/C {masked}{last_four} is debited by {currency} {amount} on {date} {time}. New Bal :INR {balance}",
"regex": "^Your A/C \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* is debited by \\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*\\. New Bal :INR \\s*(?<balance>[\\s\\S]+)\\s*",
"regex_flags": "i",
"sample": "Your A/C XXXXXXX1234 is debited by INR 68.00 on 06/08/25 17:36. New Bal :INR 5000.00",
"verified": true,
"source": "pennywise"
}Your A/C maskedlast_four is credited by currency amount on date time. New Bal :INR balance
Your A/C XXXXXXX5678 is credited by INR 500.00 on 06/08/25 17:36. New Bal :INR 10000.00
Your A/c XXlast_four debited by currency. amount on date; merchantName credited. RRN upi_ref. Available balance currency2. balance. Team IDFC FIRST Bank
Your A/c XX4614 debited by Rs. 1,172.06 on 15/01/26; REDBUS credited. RRN 060649915527. Available balance Rs. 9,134.15. Team IDFC FIRST Bank
Your A/C XXXXXXX1234 is debited by INR 68.00 on 06/08/25 17:36. New Bal :INR 5000.00 — the parts that change are the amount, the last digits of the account or card, the date and the available balance or credit limit.
First check that the message contains “is debited by”, “New Bal”. Then match it with this case-insensitive regular expression: ^Your A/C \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* is debited by \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*\. New Bal :INR \s*(?<balance>[\s\S]+)\s*. The named groups give you the amount, the last digits of the account or card, the date and the available balance or credit limit.
Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.
Yes. IDFC FIRST Bank sends 3 different Account debit / credit formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.