Hello I have to make invoices for declare my affiliate earnings but the company that pays me doesn't have vat number. I live in spain, is legal a invoice without vat number? is legal a company without vat number? If I have the company name can I know the vat? THanks!
You usually only have to register for VAT if your earnings exceed a particular level, so it is perfectly legal for a business not to have a VAT number. We purchase a lot of software from the USA where they don't charge VAT. On our VAT returns (UK) there is a place where you included income/expenditure outside the EU, and also for non-vat expenditure ie purchasing from a company where you aren't charged VAT. The rules may be slightly different in Spain, but I imagine they will follow the same general principle.
in general you only need vat number if you have more income then required minimum, so invocies without vat are 100% legal if company does not have vat number, but i think they should state this on invocie if they are from EU