Datatypes

Spanish intra-Community VAT number (NIF-IVA)

ID esvat

DatatypePersonal data (PII)identifier

NIF-IVA, the Spanish VAT number for intra-Community trade: ES followed by the 9-character tax identification number (NIF). Spanish citizens use their DNI, eight digits and a check letter. Foreigners use their NIE, which starts with X, Y or Z. Companies and other entities have a NIF that starts with a letter for the legal form (formerly the CIF). The last character is a check digit or a check letter.

Parent datatype
EU VAT ID vatin
Categories
Finances and banking
Countries
Spain
Languages
Spanish
FTA
IDENTITY.VAT_ES
Schema.org
vatID
python-stdnum
stdnum.es.nif
Quality
100/100
Metacrafter rules
2 rules (1 by field name, 1 by value)
Supported by tools
AWS Glue Sensitive Data Detection, FTA (Fast Text Analysis), metacrafter, python-stdnum

Regular expression

^ES(?:[A-Z]\d{7}[A-Z0-9]|\d{8}[A-Z])$

Python re syntax.

Examples

ValueDescription
ESB64717838Company, python-stdnum reference value
ES54362315KResident person (DNI), python-stdnum reference value
ESX5253868RForeign person (NIE), python-stdnum reference value
ES543623150 invalidThe first or the last character must be a letter
ESB6471783 invalidOne character short

Translations

LanguageNameDescription
SpanishNúmero de identificación fiscal a efectos del IVA (NIF-IVA)

Sources

Use this record