Obtain a NIF (tax ID code) for non-resident partners/shareholders
If the partners/shareholders are non-resident juridical persons, they must apply for the NIF by submitting census declaration form 036 from the Register of Businesses, Professionals and Withholders to the Spanish State Tax Administration Agency (AEAT).
If the partners/shareholders are non-resident individuals, the NIF is generally the same as the Foreign Identity Number (NIE). The NIE can be obtained in Spain from the Directorate-General of the Police and Civil Guard. It can be acquired abroad at the partner/shareholder’s local Spanish diplomatic mission or consular office.
The census declaration must also include the first and last names or corporate name or full name and tax identification number of the legal representatives of the juridical person applying. The Spanish NIF must also be acquired by any administrator (s) of the foreign entity who will assume legal representation of the company before the State Tax Administration Agency.