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

# Spanish energy supply point code (CUPS) (`es_cups`)

> **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 Unificado de Punto de Suministro, the identifier of an electricity or piped gas supply point in Spain. It has 20 or 22 characters: ES, a 4-digit distribution company code, a 12-digit supply point number, two check letters and, optionally, a border point digit and letter.

- Personal data (PII): no
- Categories: Industry (industry)
- Countries: Spain (ES)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^ES\d{16}[A-Z]{2}(?:\d[A-Z])?$
```

## Examples

- `ES0341392425346906CP` — Synthetic number with a valid check digit
- `ES0116359966285471RN` — Synthetic number with a valid check digit
- `ES0341392425346906CP7` (invalid example) — One character too many

## Mappings

- stdnum: `es.cups`

## Supported by tools

- `dataprep`
- `pythonstdnum`

## Translations

- es: Código Unificado de Punto de Suministro (CUPS)

## Sources

- wikipedia: <https://es.wikipedia.org/wiki/C%C3%B3digo_Unificado_de_Punto_de_Suministro>
- other: <https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.es.cups.html>
- other: <https://docs.dataprep.ai/user_guide/clean/clean_es_cups.html>

## Quality

Score 100/100.

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