,

ID – Check the validity of a Spanish residence permit online

 5.00 HT

Discover our online tool for checking the validity of a Spanish residence permit using the information and security keys contained in the MRZ strip !

Categories: , Tag:

How to verify the validity of a Spanish residence permit online?

Many business or personal processes require the presentation of an identity document: recruitment, rentals, KYC processes, etc.

Nowadays, documents are usually scanned or photographed before being sent by email: therefore, it becomes complex to ensure that these documents are authentic and have not been altered with image editing software such as Photoshop.

Our product addresses this issue and allows you to:

  • extract the information from the MRZ strip of identity documents directly online, analyze them, and verify the security keys that guarantee their authenticity
  • validate the format of the document number

And all this in just a few seconds!

How does the Spanish residence permit validity verification work?

After confirming your purchase, you will receive an email with the credentials to log into our identity web application (please check your spam folder a few minutes after purchase if you have not received the activation email).

Web application identity dashboard
Web application identity dashboard
  • Platform access

    • You log in to the web application using the credentials received by email after your purchase or registration.

  • Verification method selection

    • From your dashboard, select the option “Verify an identity document”.

  • Document upload

    • You upload the scan(s) (front/back) of the identity document, either as an image (.jpg, .png) or a PDF.

    • No additional manipulation (cropping, rotation, etc.) is required: the system automatically detects the orientation and the MRZ area.

  • Automatic analysis

    • The service reads the MRZ (Machine Readable Zone) and verifies the security keys.

    • It checks essential information (card number, date of birth, expiration date, etc.) as well as the document’s integrity via check digits.

  • Instant results

    • The analysis results are displayed immediately in the interface as a status (success/failure) and a detailed report (PDF, JSON, or XML).

    • The report specifies the recognized fields and the validity of each element (check digits, date consistency, etc.).

  • Report download and archiving

    • You can download or view the PDF report directly.

    • Data remains available in the history for later consultation, but you can delete it at any time (privacy guaranteed).

Optional Integration (API)</strong >

  • If you have a CRM or ERP, you can use the API to automate verification: the document is then sent to the service, and the report (or simply the status) is returned to your internal software.

  • You can find all details on these links:
  • Account and Credit Management</strong >

    • Your analyses are only charged if the MRZ is successfully detected (i.e., if the information was correctly extracted).

    • You can check your credit balance at any time and, if necessary, subscribe to a plan adapted to your needs.

  • Support and Assistance</strong >

    • In case of difficulty or questions, you can contact support via email or through the integrated help interface.

    • Additional resources (guides, FAQ, API documentation) are also available online.

You can find all the details on the product page Identity web suite.

What elements are validated during the Spanish residence permit validity verification?

The Spanish residence permit document number

The document number corresponds to an official ministry pattern: we verify that this is indeed the case to validate it.

Verification of validity of Spanish residence permit, document number on the front
Verification of validity of Spanish residence permit, document number on the front
Verification of validity of Spanish residence permit, document number on the back
Verification of validity of Spanish residence permit, document number on the back

 

The personal number of the residence permit holder (NIE)

The personal number (NIE) consists of 8 characters followed by a security key and corresponds to an official ministry pattern: we verify that the whole is valid.

Verification of validity of Spanish residence permit, personal number on the front
Verification of validity of Spanish residence permit, personal number on the front
Verification of validity of Spanish residence permit, personal number on the back
Verification of validity of Spanish residence permit, personal number on the back

The MRZ information

We verify and validate all MRZ information as well as the security keys.

Use Cases

  • Recruitment and onboarding
    When you need to validate a candidate’s identity before signing an employment contract, online identity document verification ensures the compliance of documents and reduces the risk of fraud. You save time in your administrative processes and offer a smoother experience to your future employees.

  • Property rental
    When signing a lease, you can require identity document verification to ensure the tenant’s reliability. This step guarantees that the document provided is authentic and that the information (name, birth date, etc.) has not been modified or falsified.

  • KYC Process (Know Your Customer)
    In the banking and financial sector or for service providers subject to anti-money laundering and fraud prevention obligations, identity validation is essential. MRZ reading and security key verification allow compliance with regulations while simplifying checks.

  • Online service registration
    Whether it is access to a gambling platform, online trading, or any other service requiring proof of majority or strong authentication, automatic identity document control allows rapid verification that the user meets legal requirements.

  • B2B relationships or partnerships
    In certain partnerships or commercial contracts, an identity document may be required to confirm the identity of a partner or legal representative. Automated identity document verification helps secure transactions and strengthens trust between parties.

Professionals, automate identity document verification within your CRM / ERP / Business application !

We offer subscriptions that may better fit your needs! You will find all the details on the pricing page.

We also offer a service to perform verification of all identity or resource documents via API, in addition to our web application, allowing smooth integration with your CRM / ERP / Business application!

You can find all details on these links :

How are the results of the Spanish residence permit validity verification presented?

In addition to the web application, analysis results are available for download in PDF / JSON / XML formats:

PDF report verifying the validity of the Spanish residence permit
PDF report verifying the validity of the Spanish residence permit

Which document formats are accepted?

You can send your documents as jpg / jpeg / png images or as PDF files.

Scans/photos do not need to be cropped or edited: they are automatically detected during Spanish residence permit validity verification.

It is possible to send the front and back of the document in the same scan and in any order (front first and back below, or vice versa): they will be sorted and recognized without any problem.

Am I charged if information is not correctly extracted during Spanish residence permit validity verification?

The answer is no! Only a correctly recognized Spanish residence permit is billable!

And if by chance characters are not correctly detected (which can happen with poor quality photos for example), you can correct them to have a reliable analysis anyway.

You can see the details on this video:

What is the Spanish residence permit MRZ?

An automatic reading zone, or optical reading zone, is an area on an official document reserved for reading, identifying, and validating this document.

Documents such as passports, national identity cards, residence permits, and driving licenses may or must include, depending on the country and document version, an optical reading zone.

It is located at the bottom of identity documents: it contains all the information present on the document with security keys allowing to verify their authenticity and that they have not been modified.

The information found varies depending on the document type.

How is it composed?

Cards issued since 2021 have three lines of text, each containing alphanumeric characters.

What data is extracted during Spanish residence permit validity verification?

The data extracted from the Spanish residence permit MRZ are as follows:

  • First line:
Verification of the validity of a Spanish residence permit, MRZ line 1
Verification of the validity of a Spanish residence permit, MRZ line 1
  1. Document type: 2 characters, code indicating the document type, represented by the letters “ID”.
  2. Issuing country: 3 characters, the code ISO 3166-1 alpha-3 of the issuing country.
  3. Card number: 9 characters, unique card number.
  4. Check digit: 1 character, check digit for the unique card number.
  5. End of line: 15 characters, “<” to complete the line.

 

  • Second line:
Verification of the validity of a Spanish residence permit, MRZ line 2
Verification of the validity of a Spanish residence permit, MRZ line 2
  1. Date of birth: 6 characters, year, month, and day of birth in YYMMDD format.
  2. Check digit: 1 character, check digit for the date of birth.
  3. Gender: 1 character, “M” for male, “F” for female.
  4. Expiration date: 6 digits, card expiration date in YYMMDD format.
  5. Check digit: 1 character, check digit for the expiration date.
  6. Country code: 3 characters, ISO 3166-1 alpha-3 code of the holder’s nationality.
  7. Issue date: 4 characters in YYMM format.
  8. End of line: 11 characters, chevrons to complete the line.
  9. Check digit: 1 character, check digit for the concatenation of characters line 1 positions 6-15, line 2 positions 1-7, line 2 positions 9-15.

 

  • Third line:
Verification of the validity of a Spanish residence permit, MRZ line 3
Verification of the validity of a Spanish residence permit, MRZ line 3
  1. Holder’s full name: holder’s full name, starting with the surname followed by the first name. The surname and first name are separated by two “<” characters. In case of a compound surname, compound first name or multiple first names, they are separated by the “<” character. Spaces and apostrophes are replaced by the “<” character and the name is truncated to 30 characters if necessary, and any accents on letters
    are removed. The line is then completed with the “<” character.

Personal data

You can delete all data once the report is downloaded: simply delete the analysis from the web interface history! The data are also automatically deleted after 3 months. You can
find details about personal data on our dedicated page : Privacy Policy.

Terms and conditions

You can find the details of our terms and conditions at the following address : TrustDocHub Terms and Conditions.

Reviews

There are no reviews yet.

Be the first to review “ID – Check the validity of a Spanish residence permit online”

Your email address will not be published. Required fields are marked *

Shopping Cart
Scroll to Top