---
id: "bankcard_diners"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["pii", "finances"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/bankcard_diners"
---

# Diners Club card number (`bankcard_diners`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Primary account number of a Diners Club International card: 14 to 19 digits that start with 30, 36, 38 or 39, the last of them a Luhn check digit. Diners Club cards issued in the United States and Canada carry Mastercard numbers (prefix 55) and match bankcard_mastercard instead. The pattern accepts the number without spaces or hyphens.

- Pattern of: `bankcard`
- 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`):

```
^3[0689][0-9]{12,17}$
```

Check digit algorithm: `luhn`

## Examples

- `36227206271667` — Stripe test card number (14 digits)
- `3056930009020004` — Stripe test card number (16 digits)
- `378282246310005` (invalid example) — American Express test number

## Supported by tools

- `cloudflaredlp`
- `datadogsds`
- `pywhat`
- `validatorjs`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Payment_card_number>
- doc: <https://docs.stripe.com/testing>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

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