{
  "id": "es_cups",
  "kind": "datatype",
  "status": "draft",
  "name": "Spanish energy supply point code (CUPS)",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "industry"
  ],
  "country": [
    "ES"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^ES\\d{16}[A-Z]{2}(?:\\d[A-Z])?$",
  "examples": [
    {
      "value": "ES0341392425346906CP",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "ES0116359966285471RN",
      "description": "Synthetic number with a valid check digit",
      "valid": true
    },
    {
      "value": "ES0341392425346906CP7",
      "description": "One character too many",
      "valid": false
    }
  ],
  "mappings": {
    "stdnum": "es.cups"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://es.wikipedia.org/wiki/C%C3%B3digo_Unificado_de_Punto_de_Suministro"
    },
    {
      "type": "other",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.es.cups.html"
    },
    {
      "type": "other",
      "url": "https://docs.dataprep.ai/user_guide/clean/clean_es_cups.html"
    }
  ],
  "translations": {
    "es": {
      "name": "Código Unificado de Punto de Suministro (CUPS)"
    }
  },
  "detected_by": {
    "tools": [
      "dataprep",
      "pythonstdnum"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/ES/industry/es_cups.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ES/industry/es_cups.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/industry/es_cups.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/es_cups",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/es_cups.json"
  }
}