Spain

Examples of compliant cXML invoices and credit notes for Spain.

Introduction

The Spanish VAT rules on the layout and information to be provided on invoices generally follow the requirements of the European VAT Directive (2006/112/EC, 2010/45/EU) and its VAT requirements.  In the Canary Islands, a specific tax is applied instead of VAT, called the Canary Island General Indirect Tax (IGIC).

When setting up your remit-to address , your VAT ID must begin with ES, followed by nine digits.

The first and last of these digits can also be a letter. For example:

  • ES123456789
  • ES12345678X
  • ESX23456789
  • ESX2345678X

All tax amounts must include the alternateAmount and alternateCurrency attributes. The alternate currency must be set to EUR . See Providing Amounts in Local Currency for more info.

When adding a tax exempt line or creating a reverse change invoice, add this element to your cXML:

<Description xml:lang="en-US">Line level exemption reason</Description>

Include the <Description> element immediately after <tax-amount>. It's required when the TaxDetails category contains an exemption. See Add Tax Exemption Details to an Invoice for more info.

Invoice content requirements

Table 1.
Invoice Content FieldMandatory/ConditionalComments
Supplier NameMandatory
Supplier AddressMandatory
Supplier VAT IDMandatory
Buyer information
NameMandatory
AddressMandatory
VAT IDConditional
Invoice DateMandatory
Date of SupplyConditional
Invoice NumberMandatory
Delivery AddressRecommended
Tax law referenceConditionalA legal reference to the applicable VAT rule must be included on the invoice (i.e. reference to EU VAT Directive or Spanish VAT code) where the invoice is exempt.
CurrencyMandatory
Local CurrencyConditional
Local Currency TaxConditionalWhere invoices are issued in a different currency, it is mandatory to include the tax amount in EUR applying the relevant exchange rate.
Original Invoice NumberConditional
QuantityMandatory
DescriptionMandatoryThe description/nature of the goods or services
Taxable AmountMandatory
VAT RateConditional
VAT AmountConditional
Unit PriceMandatory
Early Payment DiscountConditional
Early Payment Discount termsConditional
Discount AmountConditional
Discount termsConditional
Reference to the reverse charge mechanismConditionalThe Reverse Charge Mechanism shifts the responsibility for the reporting of a VAT transaction from the supplier to the buyer of a good or service.
Cash Accounting SchemeConditionalUnder the cash accounting scheme the VAT will become due on payment.
New Means of TransportConditionalSupply of transport vehicles which are considered as a new means of transport
Margin scheme referenceConditionalMargin scheme under VAT helps avoid double taxation on a supply of goods which have already been taxed. Under Margin scheme, VAT is calculated on the difference between the value at which the goods are supplied and the price at which the goods are purchased.

Extrinsic fields

The following extrinsics are required to send a compliance-assured Spanish invoice. You may require additional extrinsics specific to your industry or billing situation:

  • ExchangeRate

Other extrinsics may be required based on your specific invoicing scenario. See Adding Extrinsics to Your Invoice for more info.

Example invoices