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

# American Express card number (`bankcard_amex`)

> **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 an American Express card: 15 digits that start with 34 or 37, the last of them a Luhn check digit. 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[47][0-9]{13}$
```

Check digit algorithm: `luhn`

## Examples

- `378282246310005` — Stripe and Braintree test card number
- `371449635398431` — Stripe and Braintree test card number
- `36227206271667` (invalid example) — Diners Club 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>
- doc: <https://developer.paypal.com/braintree/docs/reference/general/testing/node>

## Quality

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

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