How a foreign company gets a Spanish NIF: Modelo 036, documents and typical timeline

2026-11-24 · IberTrust Global

Colleagues planning together around a laptop (stock photo)

A Spanish NIF (número de identificación fiscal) is the tax identification number the Spanish Tax Agency (AEAT) assigns to a person or entity. Foreign companies that are going to carry out transactions with tax implications in Spain are required to have one. The NIF assigned to a foreign legal entity starts with the letter N.

The application is made on Modelo 036, the census declaration used both to request the NIF and, where relevant, to register for VAT and other census obligations. The representative who signs that form also needs a Spanish tax identification number — usually a NIF starting with M if the person has no NIE. The two filings are often prepared together; we explain the representative’s NIF in a separate guide.

What you typically need to file

For a foreign entity, the AEAT’s practical guide to Modelo 036 asks for:

  • Proof that the company exists. This can be the deed of incorporation and the articles of association as registered in an official register in the home country, or a certificate from a notary or a tax authority confirming that the company exists.
  • Identity of the person who signs Modelo 036, who must be a representative of the entity. If that person already has a Spanish NIF, a copy of the NIF document is filed; otherwise, proof of identity is filed and a Spanish NIF for the representative must be obtained.
  • Proof that the signer has power to represent the company — for example a notarial power of attorney, or the constitution documents or a registry or tax certificate if they already name that person as the legal representative. The representative does not have to be a director; appointment by a board resolution or a notarial power is accepted when the document is sufficient.

If the documents were not issued in Spain, the general published rule is that they must be translated into Spanish and shown to be authentic: usually by an apostille (or consular legalisation if the country is not a party to the Hague Apostille Convention) and, where required, an official translation. There are important exceptions and simplifications, including a written AEAT reply that can apply to certain online sellers. Those rules are set out in our guide to apostille and sworn translation for a Spanish NIF.

How the application is filed

Modelo 036 can be prepared and filed electronically through the AEAT’s electronic office, including a non-personal procedure for assigning a NIF to an entity. The person who uploads the form needs a recognised electronic certificate, and must attach the supporting documents. The application can also be filed through a Spanish consular office abroad, following that office’s appointment and document rules.

If not all of the constitution documents are provided, the NIF assigned may be provisional. The entity then has to complete the file; if it does not, the AEAT may require the missing documents and, after a hearing, may revoke the number.

How long it takes

The AEAT does not publish a single statutory deadline that covers every foreign-company NIF N application. In the files we prepare, the representative’s NIF and the company’s NIF — and VAT registration where it is requested on the same census form — are usually issued in about three to six weeks. The actual timing is set by the AEAT and depends on the completeness of the file and on any request for further information.

How this relates to VAT, EORI and OSS

The NIF identifies the company for Spanish tax purposes. It is not the same thing as a VAT identification number (NIF-IVA / VIES), an EORI number for customs, or registration in the One-Stop Shop (OSS). Those formalities have different uses and are often requested after, or together with, the NIF. See NIF vs VAT vs EORI vs OSS.

Common reasons a file is delayed or sent back

  • No adequate proof that the foreign company exists.
  • The signer’s power of representation is missing, unclear, or does not match the person who signs.
  • The representative has no Spanish NIF. A passport or a tax number from the home country is not a substitute.
  • Foreign public documents are filed without an apostille or consular legalisation, or without a translation, in a case where those formalities are still required.
  • A provisional NIF is left incomplete after the AEAT asks for the pending documents.

FAQ

Does every foreign company that sells to customers in Spain need a Spanish NIF?

Not automatically in every sales model, but a non-resident or non-established entity must have a NIF when it carries out transactions with tax implications in Spain. Selling only online does not, by itself, remove that obligation. Holding stock in Spain, registering for OSS in Spain, or completing other Spanish formalities usually means a NIF is needed. We cover this in the apostille guide and in the NIF vs VAT vs EORI vs OSS guide.

Can we apply before we start selling?

Yes. The census declaration can be filed before operations begin. Foreign non-resident entities may request the NIF through the AEAT’s electronic procedures.

Is the NIF the same as the VAT number?

No. The NIF is the tax identification number. Intra-community VAT identification (NIF-IVA, checked in VIES) is a separate census step, requested on Modelo 036, and is only required for certain operations.

Do we need a sworn translation and an apostille in every case?

Those are the general published requirements for foreign documents, but they are not automatic in every file. Official exceptions and the AEAT’s written reply for certain online sellers are explained in our apostille and translation guide.

Need a Spanish NIF for a foreign company?

IberTrust Global S.L. has a fixed office in Castellón and files with the Spanish authorities on behalf of foreign companies. We file the representative’s NIF and the company’s NIF — and VAT registration where needed — together. In our experience the numbers are usually issued in about three to six weeks; the actual timing is set by the AEAT. Once the file is complete, the filing follows a standard, stable procedure.

Get a quote for Spain tax services →
Or read about our Spain Tax Services for Foreign Companies, or email contact@ibertrust.info.

Sources: AEAT, “NIF persona jurídica y entidad”; AEAT practical guide to Modelo 036, “Entidades extranjeras” and “Documentación a aportar”; AEAT, “Modelo 036 — Solicitud de asignación de NIF a entidad”. Timing of three to six weeks is IberTrust’s experience, not a statutory deadline. General information, not legal advice.