{
  "id": "es_cae",
  "kind": "datatype",
  "status": "draft",
  "name": "Spanish excise establishment code (CAE)",
  "doc": "Código de Actividad y Establecimiento (CAE), which the Spanish Tax Agency assigns to an establishment where an activity involving goods subject to excise duty takes place. It has 13 characters: ES, three zeros, two digits for the managing office, two characters for the activity (for example V1 for wine producers), three digits and a letter.",
  "is_pii": false,
  "categories": [
    "finances",
    "companies"
  ],
  "country": [
    "ES"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^ES000(?:0[1-9]|[1-4]\\d|5[0-6])[0-9A-Z]{2}\\d{3}[A-Z]$",
  "examples": [
    {
      "value": "ES00008V1488Q",
      "description": "Example from the python-stdnum documentation",
      "valid": true
    },
    {
      "value": "00008V1488",
      "description": "Country code and last letter missing (python-stdnum example)",
      "valid": false
    }
  ],
  "mappings": {
    "stdnum": "es.cae"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://www.boe.es/boe/dias/2006/12/28/pdfs/A46098-46100.pdf"
    },
    {
      "type": "doc",
      "url": "https://arthurdejong.org/python-stdnum/doc/2.2/stdnum.es.cae.html"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de Actividad y Establecimiento (CAE)"
    }
  },
  "detected_by": {
    "tools": [
      "pythonstdnum"
    ]
  },
  "quality": {
    "score": 93,
    "missing": [
      "second example"
    ]
  },
  "source": {
    "path": "data/datatypes/ES/finances/es_cae.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ES/finances/es_cae.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/finances/es_cae.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/es_cae",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/es_cae.json"
  }
}