City Union Bank UPI credit SMS format

CUB_UPI_CREDIT_V1

Last updated

City Union Bank·UPICreditVerified

Quick answer

A City Union Bank UPI credit SMS looks like this: “Your a/c no. XXXXXXXXXXX1234 is credited for Rs.111.00 on 01-09-2025 and debited from a/c no. XXXXXXXXXXX5678 (UPI Ref no 123456789012)” It is a credit (money received) alert. The parts that change in each message are the amount, the last digits of the account or card, the date and a reference number; everything else is fixed text, so it can be matched with the regex below.

Template

Your a/c no. is credited for currency.amount on date and debited from a/c no. skip (UPI Ref no upi_ref)

Sample SMS

Template matches this sample

Your a/c no. is credited for Rs.111.00 on 01-09-2025 and debited from a/c no. XXXXXXXXXXX5678 (UPI Ref no 123456789012)

FieldExtracted value
XXXXXXXXXXX
1234
currencyRs
amount111.00
date01-09-2025
skipXXXXXXXXXXX5678
upi_ref123456789012

Compiled regex

flags: i
^Your a/c no\. \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* is credited for \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* and debited from a/c no\. \s*(?<skip>[\s\S]+?)\s* \(UPI Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\)
JSON/api/templates/cub-upi-credit-v1
{
  "id": "cub-upi-credit-v1",
  "name": "CUB_UPI_CREDIT_V1",
  "bank": {
    "code": "CUB",
    "name": "City Union Bank",
    "slug": "city-union-bank"
  },
  "category": "UPI",
  "payment_mode": "UPI",
  "direction": "credit",
  "keywords": [
    "is credited for",
    "and debited from a/c no.",
    "UPI Ref no"
  ],
  "template": "Your a/c no. {masked}{last_four} is credited for {currency}.{amount} on {date} and debited from a/c no. {skip} (UPI Ref no {upi_ref})",
  "regex": "^Your a/c no\\. \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* is credited for \\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* and debited from a/c no\\. \\s*(?<skip>[\\s\\S]+?)\\s* \\(UPI Ref no \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\)",
  "regex_flags": "i",
  "sample": "Your a/c no. XXXXXXXXXXX1234 is credited for Rs.111.00 on 01-09-2025 and debited from a/c no. XXXXXXXXXXX5678 (UPI Ref no 123456789012)",
  "verified": true,
  "source": "pennywise"
}

Other CUB UPI formats

GENERIC_UPI_DEBIT_ACCT_V1UPIDebitVerified

Your a/c no. is debited for currency.amount on date and credited to a/c no. skip (UPI Ref no upi_ref)

Your a/c no. is debited for Rs.111.00 on 01-09-2025 and credited to a/c no. XXXXXXXXXXX5678 (UPI Ref no 123456789012)

Frequently asked questions

What does a City Union Bank UPI credit SMS look like?

Your a/c no. XXXXXXXXXXX1234 is credited for Rs.111.00 on 01-09-2025 and debited from a/c no. XXXXXXXXXXX5678 (UPI Ref no 123456789012) — the parts that change are the amount, the last digits of the account or card, the date and a reference number.

How do I parse a City Union Bank UPI SMS?

First check that the message contains “is credited for”, “and debited from a/c no.”, “UPI Ref no”. Then match it with this case-insensitive regular expression: ^Your a/c no\. \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* is credited for \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* and debited from a/c no\. \s*(?<skip>[\s\S]+?)\s* \(UPI Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\). The named groups give you the amount, the last digits of the account or card, the date and a reference number.

Is this City Union 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.

Does City Union Bank use more than one UPI SMS format?

Yes. City Union Bank sends 2 different UPI formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.

City Union Bank UPI credit SMS format (CUB_UPI_CREDIT_V1) | Iris SMS Templates