D) Operations carried out in the territory
Para que una operación esté sujeta al IVA español es necesario que la operación sea realizada en el ámbito espacial de aplicación del impuesto, es decir, la Península o Islas Baleares.
The Tax Agency's website has incorporated a help service called the "Locator" through which you can check:where a service or a supply of goods is located, whether the transaction is subject to VAT and, if so, exempt, who has to declare the VAT due and whether or not VAT should be charged on the invoice.