---
id: "es_budget_economic_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Spanish budget economic classification code"
regexp: "^[1-9](?:\\d(?:\\d(?:\\.?\\d{2})?)?)?$"
categories: ["government", "finances"]
country: ["ES"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/es_budget_economic_code"
---

# Spanish budget economic classification code (`es_budget_economic_code`)

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

Code of the economic classification of a Spanish public budget, which says what kind of expenditure or revenue a budget line is. It has up to four levels, each a prefix of the next, the chapter (capítulo, one digit, as in 1 for staff costs and 6 for investments), the article (artículo, two digits), the concept (concepto, three digits) and the subconcept (subconcepto, five digits, written 10000 or 100.00). The order EHA/3565/2008 sets the classification for local entities; the State, the autonomous communities and universities use the same levels. Budget tables give the levels in columns named cod_capitulo, cod_articulo, cod_concepto, cod_subconcepto, cod_economico or economica.

- Personal data (PII): no
- Categories: Government related (government), Finances and banking (finances)
- Countries: Spain (ES)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-9](?:\d(?:\d(?:\.?\d{2})?)?)?$
```

## Examples

- `1` — chapter 1, Gastos de personal
- `10` — article 10
- `100.00` — subconcept 100.00
- `22103` — a subconcept of chapter 2 without the dot
- `1000` (invalid example) — four digits are no level

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `esbudgeteconomiccodebyname` (field, `es/es_codes.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Translations

- es: Código de la clasificación económica del presupuesto
- ru: Код экономической классификации бюджета (Испания)

## Sources

- doc: <https://www.boe.es/buscar/act.php?id=BOE-A-2008-19916>

## Quality

Score 90/100. Missing: mapping (Wikidata, Schema.org, ...).

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