NIF por nombre de campo
ID nif
DatatypePersonal data (PII)identifier
ES datatype for 'NIF por nombre de campo' (nif) from rules in context 'finances'. The Spanish tax identification number (Número de Identificación Fiscal, NIF) is a unique identifier assigned to individuals and entities for tax purposes in Spain. For individuals, it consists of 8 digits followed by a check letter. For foreigners, it may start with X, Y, Z, K, L, or M followed by 7 digits and a check letter. The total length is 9 characters.
- Categories
- Finances and banking
- Countries
- Spain
- Languages
- Spanish
- Google DLP
SPAIN_NIF_NUMBER- Presidio
ES_NIF- Schema.org
taxID- python-stdnum
stdnum.es.nif- Quality
- 95/100 · missing: negative example
- Metacrafter rules
- 2 rules (1 by field name, 1 by value)
es_tax_esniffieldfield, es/es_tax.yamles_tax_esnifvaluedata, es/es_tax.yaml
- Supported by tools
- Amazon Macie, AWS Glue Sensitive Data Detection, Azure AI Language PII detection, Google Cloud Sensitive Data Protection (DLP), IBM Knowledge Catalog (IBM watsonx.data intelligence), metacrafter, OpenMetadata auto-classification, Microsoft Presidio, python-stdnum
Regular expression
^([0-9]{8}|[XYZKLM][0-9]{7})[TRWAGMYFPDXBNJZSQVHLCKE]$
Python re syntax.
Examples
| Value | Description |
|---|---|
| 12345678Z | Spanish NIF for a Spanish citizen with 8 digits and check letter |
| X1234567L | Spanish NIF for a foreigner starting with X followed by 7 digits and check letter |
| 87654321X | Another valid Spanish NIF format |
Translations
| Language | Name | Description |
|---|---|---|
| English | Spanish Tax Identification Number (NIF) | |
| Spanish | Número de Identificación Fiscal (NIF) |
Sources
- wikipedia: https://es.wikipedia.org/wiki/N%C3%BAmero_de_identificaci%C3%B3n_fiscal
- doc: https://www.agenciatributaria.es/AEAT.internet/Inicio/Ayuda/Modelos__Procedimientos_y_Servicios/Comun/Preguntas_frecuentes/Identificacion_y_Domicilio_Fiscal/Preguntas_frecuentes_sobre_NIF_NIE_CIF.shtml
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/nif - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/ES/finances/nif.yamlon GitHub