Datatypes › bankcard

UnionPay card number

ID bankcard_unionpay

Pattern of bankcardPersonal data (PII)identifierDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

Primary account number of a China UnionPay card: 16 to 19 digits that start with 62. Numbers from 622126 to 622925 are co-branded with Discover and also match bankcard_discover. The pattern sets no check digit because not all UnionPay numbers are documented to pass the Luhn check. It accepts the number without spaces or hyphens.

Pattern of
Bank card (credit/debit card) bankcard
Categories
Personally identifiable information, Finances and banking
Countries
Global (not tied to a country)
Languages
Common to most languages
Quality
85/100 · missing: mapping (Wikidata, Schema.org, ...), translation
Metacrafter rules
no detection rule yet
Supported by tools
Cloudflare DLP, validator.js

Regular expression

^62[0-9]{14,17}$

Python re syntax.

Examples

ValueDescription
6200000000000005Stripe test card number
6205500000000000004Stripe test card number (19 digits)
6011111111111117 invalidDiscover test number

Sources

Use this record