Expanding your corporate footprint into Spain is a lucrative strategic move, but navigating the bureaucratic landscape of the Spanish Tax Agency (Agencia Estatal de Administración Tributaria – AEAT) requires precise execution. One of the most common hurdles international businesses face is securing the necessary tax identification numbers to legally operate, sign public deeds, get Apostille over all documents or incorporate a local subsidiary.
In Spain, every corporate entity and individual interacting with the tax system must hold a Tax Identification Number (Número de Identificación Fiscal or NIF). When the individuals steering the company are foreign nationals without residency, or when the company itself is a foreign corporation, specific procedures apply. This guide outlines how to seamlessly secure a NIF for a foreign entity and its non-resident representatives entirely through remote administrative channels.
Clarifying Recent Legislative Updates.
Before diving into the procedural steps, it is worth clarifying a common point of confusion among international legal departments regarding recent regulatory changes in Spain. The Spanish Tax Agency recently enacted minor technical updates affecting census models (Forms 030, 036, and 037) and annual summary statements (such as Form 390 for VAT and Form 345 for pension tracking).
While these models are structurally linked to corporate registration and reporting, the latest updates do not alter or affect the identification rules for legal representatives. Instead, the modifications simply update data privacy and electronic contact permissions for notifications, as well as introducing specific tax rate codes to account for temporary energy-crisis VAT adjustments. The underlying core framework for non-resident NIF applications remains fully intact.
Phase 1: Obtaining the “M” NIF for Non-Resident Individuals.
Before a foreign corporation can successfully obtain its own corporate tax ID, the foreign individual designated as its legal representative (such as a director, CEO, or an attorney-in-fact) must first be registered with the AEAT.
Foreign individuals who do not reside in Spain and are not legally required to obtain a police-issued Foreigner Identification Number (NIE) are assigned a specialized tax ID starting with the letter “M”. This serves as a definitive tax identity for their overseas activities relating to Spain.
Required Documentation (PDF format)
-
Valid Passport: A clear, high-quality scan of the complete passport showing the holder’s photo, full name, nationality, and expiry date.
-
Justification of Fiscal Intermediation: Documented proof demonstrating why the applicant needs a Spanish NIF (e.g., a draft deed of incorporation for a Spanish company naming them as director, or a formal board resolution from a foreign parent company appointing them as its representative in Spain).
-
Declaration of Non-Residency: A formal statement declaring that the applicant does not reside in Spanish territory and is not bound by immigration laws to secure a regular NIE.
-
Power of Attorney (PoA): If a local tax advisor or lawyer is filing on their behalf, a signed authorization or notarized power of attorney must be provided.
The Step-by-Step Individual Process
-
Complete Form 030 (Borrador): Access the AEAT Electronic Office and open the interactive Form 030. Because the individual does not yet have a tax ID, leave the initial identification block blank and precisely fill out their personal details, legal address abroad, and an electronic contact number/email for official alerts. Save the finalized form as a PDF.
-
Access the Specialized Non-Presential Channel: Within the Form 030 sub-menu, navigate to the dedicated portal named “Solicitud de NIF de persona fÃsica – sin DNI / NIE – no presencial” (Application for individual NIF without DNI/NIE – Remote). This specific portal allows third-party representatives or tax professionals to sign the submission using their own Spanish digital certificates.
-
Submit Document Packages via Electronic Registry: Upload the generated Form 030 PDF alongside the applicant’s passport, the proof of business activity, and the third-party authorization. Submit and sign the electronic registry package.
-
Tax ID Issuance: Upon administrative review and validation, the AEAT will issue an official PDF certificate containing the newly minted individual NIF (starting with “M”). This number is immediately active for fiscal operations.
Important Validity Note: The “M” NIF functions as a permanent tax identity as long as the holder remains a non-resident operating strictly from abroad. If the representative eventually moves to Spain to live or manage operations locally, this number acts merely as a temporary placeholder (valid for 3 months) and must be formally converted into a standard police-issued NIE.
Phase 2: Securing the “N” NIF for the Foreign Corporate Entity
Once the designated individual representative holds an active “M” NIF, the foreign corporation itself can proceed with its registration. Foreign legal entities operating in Spain without a local permanent establishment are granted a corporate tax ID starting with the letter “N”.
International Legal Formalities for Corporate Documents
Because these corporate documents originate outside Spain, any official records issued by a foreign registry must be Apostilled (under the Hague Convention) or legally validated via diplomatic channels. Furthermore, they must be accompanied by a certified, sworn translation (traducción jurada) into Spanish.
Required Documentation (PDF format)
-
Certificate of Good Standing / Corporate Existence: An official document issued by the corporate registry of the home country confirming that the company is legally registered, active, and containing basic data (name, incorporation date, registration number, and registered office).
-
Articles of Association / Bylaws: A copy of the company’s regulatory rules, clarifying its business purpose and operational structure.
-
Proof of Representation: A public deed or corporate certificate confirming that the individual holding the “M” NIF is fully empowered to act on behalf of the company before foreign tax authorities.
-
Copy of the Representative’s “M” NIF: The official tax certificate issued in Phase 1.
The Step-by-Step Corporate Process
-
Draft the Census Form 036: Open the standard business census application (Form 036) on the AEAT portal. Select the box for “Request for Tax Identification Number allocation”. Fill out the company’s foreign corporate name and statutory address. Crucially, navigate to the “Representation” section and explicitly input the newly acquired “M” NIF of your validated director or attorney-in-fact. Validate and download the draft PDF.
-
Submit Through the Corporate Remote Registry: Navigate to the portal option: “Solicitud de NIF de entidad – NO PRESENCIAL” (Application for Corporate NIF – Remote). This application is submitted electronically by the appointed local professional using their electronic signature.
-
Upload the Legal Documentation Portfolio: Attach the compiled Form 036, the apostilled and translated Certificate of Good Standing, corporate bylaws, proof of individual representation powers, and the individual’s “M” NIF certificate.
-
Approval and “N” NIF Issuance: The tax office evaluates the legal chain of authority. Once validated, they will electronically issue the company’s official Spanish Tax Identification Card (Tarjeta de Identificación Fiscal) displaying their assigned “N” NIF.
Mandatory Post-Issuance Requirement (DEHú Activation): In Spain, all corporate tax entities are legally obligated to receive notifications exclusively via digital channels. Immediately following the allocation of your company’s “N” NIF, your representative or authorized tax professional must set up and activate the company’s profile on the DEHú Portal (Dirección Electrónica Habilitada única). Failing to activate this portal means official tax deadlines and notifications will run implicitly, which can lead to inadvertent administrative penalties.
Summary Checklist for a Smooth Process
To ensure a completely fluid procedure without administrative rejections, double-check that your international corporate documentation explicitly names your individual representative, and that the apostille covers both the corporate existence and the authorization chain. Securing these numbers via the remote electronic office minimizes delays, establishing a solid legal foundation for your commercial ventures in Spain.
Here you can provide the PoA to your Spanish VAT registration: https://taxandlawspain.com/poa-spanish-aeat-for-spanish-vat-registration/
You can also contact us if you have any question.


