---
id: "bankcard"
kind: "datatype"
status: "stable"
is_pii: true
categories: ["pii", "finances"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/bankcard"
---

# Bank card (credit/debit card) (`bankcard`)

A bank card is typically a plastic card issued by a bank to its clients that performs one or more of a number of services that relate to giving the client access to bank account.

- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Finances and banking (finances)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:4[0-9]{12}(?:[0-9]{3})?|[25][1-7][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$
```

Check digit algorithm: `luhn`

## Mappings

- autotype: `creditcard`
- dpv: `pd:PaymentCardNumber`
- fibo: <https://spec.edmcouncil.org/fibo/ontology/LOAN/LoansSpecific/CardAccounts/PrimaryCardAccountNumber>
- google_dlp: `CREDIT_CARD_NUMBER`
- presidio: `CREDIT_CARD`
- purview: `Credit card number`, `EU debit card number`

## Metacrafter rules

5 rules: 5 match the field name, 0 match values.

- `brbankcardknown` (field, `br/br_finances.yaml`)
- `jpbankcardknown` (field, `jp/jp_finances.yaml`)
- `creditcardbyknown` (field, `pii/pii.yaml`)
- `ptbankcardknown` (field, `pt/pt_finances.yaml`)
- `zhbankcardknown` (field, `zh/zh_finances.yaml`)

## Supported by tools

- `alteryxdesignercloud`
- `amazonmacie`
- `autotype`
- `awscomprehend`
- `awsglue`
- `azureailanguage`
- `collibra`
- `databricks`
- `datahub`
- `dataprofiler`
- `googledlp`
- `ibmguardium`
- `ibmknowledgecatalog`
- `metacrafter`
- `metacrafterpro`
- `microsoftpurview`
- `nightfall`
- `openmetadata`
- `oracleanalyticsdesktop`
- `oracledatasafe`
- `presidio`
- `scrubadub`
- `snowflake`
- `sqldatacatalog`
- `talend`

## Translations

- ru: Банковская карта: Банковская карта (англ. bank card) — пластиковая, металлическая или виртуальная карта, обычно привязанная к одному или нескольким расчётным счетам в банке.

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Bank_card>
- other: <https://stackoverflow.com/questions/9315647/regex-credit-card-number-tests>
- wikipedia: <https://en.wikipedia.org/wiki/ISO/IEC_7812>

## Quality

Score 80/100. Missing: examples, negative example.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/bankcard.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/finances/bankcard.yaml>
