---
id: "es_ccc"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["finances"]
country: ["ES"]
langs: ["es"]
quality: 100
url: "http://registry.apicrafter.io/datatype/es_ccc"
---

# Spanish bank account code (CCC) (`es_ccc`)

> **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.

Código Cuenta Cliente, the 20-digit Spanish bank account number: a 4-digit bank code, a 4-digit office code, two check digits and a 10-digit account number. Since 2014 it is used inside the Spanish IBAN.

- Parent datatype: `bankaccount`
- Personal data (PII): no
- Categories: Finances and banking (finances)
- Countries: Spain (ES)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^\d{4}[ -]?\d{4}[ -]?\d{2}[ -]?\d{10}$
```

## Examples

- `78485312256049891785` — Synthetic number with a valid check digit
- `22296089868003386336` — Synthetic number with a valid check digit
- `784853122560498917857` (invalid example) — One character too many

## Mappings

- dpv: `pd:BankAccount`
- stdnum: `es.ccc`

## Supported by tools

- `amazonmacie`
- `awsglue`
- `dataprep`
- `pythonstdnum`

## Translations

- es: Código Cuenta Cliente (CCC)

## Sources

- wikipedia: <https://es.wikipedia.org/wiki/C%C3%B3digo_cuenta_cliente>
- doc: <https://www.bde.es/bde/es/secciones/servicios/Particulares_y_e/Registros_de_Ent/>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.es.ccc.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_es_ccc.html>

## Quality

Score 100/100.

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