Hello Ray

You can prove you are non resident for Tax purposes by means of a non resident certificate the Tax office issues at your request, once you have filed taxes. This means that you first file a Tax declaration and then ask the Tax office to issue the certificate so they can´t claim any Tax payment, as you are not a Spanish resident.

Regards,