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

# Maestro card number (`bankcard_maestro`)

> **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 Maestro debit card: 12 to 19 digits that start with 5018, 5020, 5038, 5893, 6304, 6759, 6761, 6762 or 6763, or with 676770 or 676774 (Maestro UK). The last digit is 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`):

```
^(?:(?:5018|5020|5038|5893|6304|6759|6761|6762|6763)[0-9]{8,15}|67677[04][0-9]{6,13})$
```

Check digit algorithm: `luhn`

## Examples

- `6304000000000000` — Braintree test card number
- `6011111111111117` (invalid example) — Discover test number

## Supported by tools

- `datadogsds`
- `pywhat`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Payment_card_number>
- doc: <https://developer.paypal.com/braintree/docs/reference/general/testing/node>

## Quality

Score 78/100. Missing: second example, mapping (Wikidata, Schema.org, ...), translation.

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