Every time a non-establish company wanted to get VAT registered in Spain they were required to present a series of Apostilled documentation which made the VAT registration process long and complicated. The good news is that the Spanish Tax Authority has been aware of the difficulties and hassles involved and has decided to relax the requirements to obtain a VAT number.
Source: globalvatcompliance.com