---
id: "cif"
kind: "datatype"
status: "stable"
is_pii: true
categories: ["finances"]
country: ["ES"]
langs: ["es"]
quality: 75
url: "http://registry.apicrafter.io/datatype/cif"
---

# CIF por nombre de campo (`cif`)

ES datatype for 'CIF por nombre de campo' (cif) from rules in context 'finances'. The CIF (Código de Identificación Fiscal) is a Spanish tax identification code assigned to companies and legal entities. It consists of 9 characters: one letter from the set A-H, J-N, P-S, U-W (excluding I, O, and certain letters), followed by 7 digits, and ending with one alphanumeric character (letter or digit) that serves as a check digit.

- Personal data (PII): yes
- Categories: Finances and banking (finances)
- Countries: Spain (ES)
- Languages: Spanish (es)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[ABCDEFGHJKLMNPQRSUVW][0-9]{7}[A-Z0-9]$
```

## Examples

- `A12345674` — Valid CIF format with letter A, 7 digits, and check character
- `B98765432` — Another valid CIF format example

## Mappings

- orgid: `ES-NIF`
- schema_org: `taxID`
- stdnum: `es.cif`

## Metacrafter rules

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

- `esciffield` (field, `es/es_tax.yaml`)
- `escifvalue` (data, `es/es_tax.yaml`)

## Supported by tools

- `databricks`
- `dataprep`
- `metacrafter`
- `pythonstdnum`

## Quality

Score 75/100. Missing: negative example, source link, translation.

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