Regulation in Spain

Six Spanish documents, and all of them are read the same way.

A Spanish document says who someone is. Checking that it is true requires reading it in full and matching the person presenting it, and in Spain that is done without asking any registry. This is what that means for an onboarding process.

In short

  • The obligation arises from the duty to know the customer imposed by the anti-money laundering regime, transposed from European directives, and from the European data protection framework.
  • Six documents covered and all read the same way: three generations of DNI, the TIE and two passports, by printed text and machine-readable zone, with no barcode.
  • In Spain verification does not query a government source: it relies on the reading of the document and on biometrics, so the weight falls on the quality of those two controls.

What identity verification requires in Spain

The obligation does not come from a rule about documents. It comes from the duty to know the customer before letting them transact, which in Spain comes through the anti-money laundering regime: a matter the European Union legislates through directives and each Member State transposes into its own national law. Verifying identity is the first link in that duty, and the one that produces the evidence on which all the others rest.

Added to that is a second layer that runs in parallel. Everything verification captures, including biometrics, falls under the European Union's personal data protection framework, with its own obligations of purpose, legal basis for processing, notice to the individual and security measures. Complying with one layer does not exempt from the other.

Translated into what a process has to settle, these are four distinct checks, and all four have to leave a record.

  • That the document is authentic — full reading of the document presented and validation of its security features, not just the number.
  • That the person on the document is the one on the other side — biometric matching between the captured face and the one on the document.
  • That this person is present and alive — liveness detection, which is what separates a real face from a photo, a recorded video or a synthetic face.
  • That the declared data is consistent — cross-checking against the available sources.

All four produce evidence, and that evidence is what a supervisor looks at.

The Spanish documents that are read

Spain has six documents covered and they belong to three different families: three generations of the DNI, the document of resident foreign nationals and two generations of passport. A sign-up flow can receive any of the six on the same day.

What sets them apart from the rest of the coverage is what they have in common: all six are read exactly the same way, by printed text and by machine-readable zone. None is read by barcode.

Electronic DNI (Version 2006 to 2015.)

DNI electrónico (2006-2015), frente
Front
DNI electrónico (2006-2015), dorso
Back

The printed text and the machine-readable zone are read.

At the regulatory level

The match between the printed data and the machine-readable zone on the back is validated. No barcode is read and no chip reading is claimed, and there is no check against an official Spanish registry.

Images are reference templates with fictitious data.

  • Electronic DNI: Version 2006 to 2015 · Printed text · machine-readable zone
  • DNI 3.0: Version 2015 to 2021 · Printed text · machine-readable zone
  • DNI 4.0: Covered since 2021 · Printed text · machine-readable zone
  • TIE: Validity according to the residence authorization · Printed text · machine-readable zone
  • EU passport 2.0: Version 2008 to 2015 · Printed text · machine-readable zone
  • EU passport 3.0: Covered since 2015 · Printed text · machine-readable zone

Uniformity is the news. In countries where different mechanisms coexist, the flow design has to branch by document generation and the cost shows up in the exceptions. In Spain it does not branch: the six documents deliver the same thing, and what decides the quality of the process stops being what is extracted and becomes how well it is extracted.

What it is checked against

Within VU's coverage, verification in Spain does not query a government source. Identification relies on reading the document presented and on the biometric matching of the person, with no online check against an official Spanish registry.

Saying it precisely matters more than leaving the ambiguity. Where that query exists, the nature of the check changes: it stops merely validating what the document shows and moves on to checking against the record of the body that issued it. A team running the same flow in Spain and in a market with that query is not buying the same control in both, and it is worth knowing that before designing the exceptions process.

In Spain that moves the weight of the check to two places: the quality of the document reading and the quality of the biometric control. It is not a limitation that is solved with more steps in the form; it is one that is solved with better reading and with evidence that the presence control withstands an attack.

What is not read, and why

Four clarifications that prevent a mistaken expectation.

  • No Spanish document in the coverage is read by barcode. It is not an element that is present but unreadable: it simply does not appear as a reading mechanism in any of the six templates.
  • All three DNIs have a chip, but VU's coverage does not read it. Only the printed text and the machine-readable zone are read.
  • Spanish coverage is these six documents and no others. A flow that receives an identity document from another Member State, a driver's license or a document from a third country falls outside this coverage and needs an exception route defined in advance. In a European market, with movement of people between Member States, that route is used more than an initial design tends to assume.
  • For the two passports there is a single graphic piece per template. The four cards have front and back; the passports, one image of the data page.

What VU automates in identity verification

VU handles the mechanical, repeatable part of the four checks, within a single flow.

  • Document reading — capture and extraction of the fields according to what each Spanish template supports: printed text and machine-readable zone.
  • Biometric matching — the captured face against the one on the document, with the front and back of the document itself cross-checked.
  • Liveness detection — to establish that there is a real, present person at the moment of capture.
  • Orchestration of the steps — the order, retries, timeouts and what to do when a step does not complete, which is where a digital sign-up breaks down in practice.
  • Trail of each step — the record of what ran, with what result and when, which is what gets shown later.

And what VU does not do, which matters just as much:

  • It does not query an official Spanish registry. In Spain the check relies on the document and the person, and this page does not claim otherwise.
  • It does not decide whether a person is acceptable. That is the obligated entity's risk policy, and the law requires it of the entity, not of its provider.
  • It does not issue or correct documents. If a piece of data on the document is wrong, the verification will reflect that error, not fix it.
  • It does not interpret the law or assemble the regulatory customer file. VU produces evidence; what is retained, for how long and in what format is defined by the national regime and decided by the compliance team.
  • It does not verify documents outside the country's coverage. A document from another Member State in a Spanish flow needs another route.
  • It does not do transaction monitoring. Verification establishes who someone is at sign-up. What that person does afterwards is another control and another page.

Use cases in Spain

Where this problem shows up in the real operation of the Spanish market.

  • Three generations of DNI coexisting. A document issued in 2006 and one issued after 2021 can reach the same form. That all three are read the same way simplifies extraction, and it does not spare the design from having to recognize all three.

  • Resident foreign nationals. The TIE is a different document from the DNI and arrives through the same channel. A flow that assumes every customer presents a DNI turns part of its audience into a manual review queue.

  • Documents from other Member States. The movement of people within the Union means a Spanish flow receives documents the coverage does not include, more often than is usually anticipated.

  • Passport as the sign-up document. The two passports covered have a single graphic piece in the coverage and are a different format from a card: the capture, the framing and the instruction to the user are not the same.

  • No registry to query. The absence of a check against an official source concentrates the weight on reading and on biometrics, and that changes what is asked of each control.

Frequently asked questions

In an automated process, what can be used is the set of documents that process actually knows how to read, and that is a question of coverage before it is one of law. In Spain several generations of the national document, the document of resident foreign nationals and the passport coexist, and all of them can reach the same form. For the purposes of Law 10/2010, the regulations (art. 6 of Royal Decree 304/2014) accept as reliable documents the DNI for Spanish nationals and the TIE, the passport or the identity document of the country of origin for foreign nationals, which matches the coverage described. What does hold is the design rule: the flow is built on the document base it is going to receive in practice, not on the most frequent one.

No. Identity verification establishes that a person is who they claim to be and produces the evidence of that check. KYC is the broader duty of the anti-money laundering regime: besides identifying, it includes understanding the customer's profile, scaling diligence by their risk, keeping the information up to date throughout the relationship and retaining the customer file. Identity verification is the first link in that duty and the one that produces the proof, but a process can verify flawlessly and still fail to comply with KYC.

Within VU's coverage, no. In Spain verification does not query a government source: the check relies on what the document shows and on the biometric matching of the person presenting it. It is a real difference compared with markets where that query does exist and the nature of the check changes. All three DNIs have a chip, but VU's coverage does not read it: only the printed text and the machine-readable zone are read.

Printed text and machine-readable zone, on all six documents covered. It is an unusual case: in several countries reading branches by generation, with barcodes on some templates and QR codes on others, and the flow has to account for different mechanisms. In Spain it does not branch. The practical consequence is that the design is simplified on the extraction side and the room for improvement concentrates on capture quality, which is what decides whether the machine-readable zone is read on the first attempt or the third.

An image of the document settles only one of the four checks, and only partly. It makes it possible to read the data, but it says nothing about whether the sender is the holder, whether there is a real person on the other side at that moment, or whether the data is consistent with any source. A process built on a photo sent over a messaging app is the easiest scenario to attack there is: the image can be of a stolen document, a screenshot or a purchased file.

Sources

Keep exploring

See all countries

One integration for the whole identity flow

This verification is part of VU ONE, the platform that unifies identity verification, authentication and fraud prevention.

The identity you verify at onboarding stays available for authentication and fraud rules, with no repeated processes or duplicated data.

Identity verification (Verify), authentication (Authenticate) and fraud prevention (Protect), consolidated in one place.

Request a demo
Next step

Let's review the reading of the documents your flow receives

That the six Spanish documents are read the same way simplifies extraction and does not simplify the design. The useful question is not whether a process reads the DNI, but what it does when it receives the one it did not expect.

No commitment