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_MERCHANT_V1
Last updated
Quick answer
An IDFC FIRST Bank Account debit / credit debit SMS looks like this: “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” 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.
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
| Field | Extracted value |
|---|---|
| last_four | 4614 |
| currency | Rs |
| amount | 1,172.06 |
| date | 15/01/26 |
| merchantName | REDBUS |
| upi_ref | 060649915527 |
| currency2 | Rs |
| balance | 9,134.15 |
^Your A/c XX\s*(?<last_four>\d{4})\s* 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*(?<merchantName>[\s\S]+?)\s* credited\. RRN \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\. Available balance \s*(?<currency2>[A-Z]{2,4})\s*\. \s*(?<balance>[\s\S]+?)\s*\. Team IDFC FIRST Bank/api/templates/idfc-debit-merchant-v1{
"id": "idfc-debit-merchant-v1",
"name": "IDFC_DEBIT_MERCHANT_V1",
"bank": {
"code": "IDFCFIRST",
"name": "IDFC FIRST Bank",
"slug": "idfc-first-bank"
},
"category": "Account debit / credit",
"payment_mode": "BANK",
"direction": "debit",
"keywords": [
"debited by",
"credited. RRN",
"IDFC FIRST"
],
"template": "Your A/c XX{last_four} debited by {currency}. {amount} on {date}; {merchantName} credited. RRN {upi_ref}. Available balance {currency2}. {balance}. Team IDFC FIRST Bank",
"regex": "^Your A/c XX\\s*(?<last_four>\\d{4})\\s* 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*(?<merchantName>[\\s\\S]+?)\\s* credited\\. RRN \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\. Available balance \\s*(?<currency2>[A-Z]{2,4})\\s*\\. \\s*(?<balance>[\\s\\S]+?)\\s*\\. Team IDFC FIRST Bank",
"regex_flags": "i",
"sample": "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",
"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 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
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 — 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.
First check that the message contains “debited by”, “credited. RRN”, “IDFC FIRST”. Then match it with this case-insensitive regular expression: ^Your A/c XX\s*(?<last_four>\d{4})\s* 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*(?<merchantName>[\s\S]+?)\s* credited\. RRN \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\. Available balance \s*(?<currency2>[A-Z]{2,4})\s*\. \s*(?<balance>[\s\S]+?)\s*\. Team IDFC FIRST Bank. 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.
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.