Characteristics of B2B electronic invoicing in Spain

In the business sphere, electronic invoicing in Spain is entering a new phase with the “Crea y Crece” Law. This regulation will mark a turning point in transactions between companies and self-employed professionals, establishing electronic invoicing as the single mandatory format for B2B invoice exchange.

Mandatory Use

Spain has introduced the mandatory use of electronic invoicing in the private sector through Law 18/2022, known as “Crea y Crece,” which establishes electronic invoicing as the only valid format in commercial transactions between companies and self-employed professionals (B2B).  

The rollout of this obligation will be gradual depending on company size. A phased timeline is expected: companies with annual turnover exceeding 8 million euros will be required to issue electronic invoices first, followed later by SMEs and self-employed professionals.

Invoice format

According to the proposed criteria, the structured formats accepted will include XML UBL, UN/CEFACT CII, EDIFACT (traditionally used in EDI exchanges), and Spain’s own Facturae.

This means companies will be able to use widely adopted international formats (UBL is applied under the European EN 16931 standard and the PEPPOL network, CII is another European XML standard, and EDIFACT is common among large companies) in addition to the national format.

Electronic signature

In line with the European eIDAS regulation, B2B electronic invoices must include the issuer’s advanced electronic signature as a mandatory requirement. In other words, each invoice must be digitally signed with an electronic certificate linked to the issuer.

Archiving

The exact requirements for the conservation of B2B electronic invoices are still pending official definition under the forthcoming regulatory development.

Invoice Workflow

  1. Issuance and validation: Extraction of ERP data to generate the technical invoice formats (EDIFACT, Facturae, XML CII, UBL...) and application of data validation mechanisms to guarantee the minimum required information in each syntax.
  2. Invoice transmission: Once validated, each document is matched with its recipient for delivery through specific communication channels (private VAN, EDI gateway, https, sftp, x400, OFTP, AS2, AS4...) with full traceability logs, delivery confirmation, and processing.
  3. Electronic Archiving: Secure electronic safekeeping of issued invoices under an eIDAS-compliant Archiving service, including evidence recording and continuous revalidation of documents.
  4. Status management: Visibility and integration of the different status messages or ACKs (acknowledgements) for each issued invoice, in line with the technical specifications defined in the project.  

Characteristics of B2G electronic invoicing in Spain

Electronic invoicing in Spain is mandatory in dealings with Public Administrations. Together with e-Reporting systems such as SII or TicketBAI, it strengthens the digitalization of the public sector by providing greater efficiency in management, transparency in processes, and full traceability of operations.

Mandatory Use

Since 2015, electronic invoicing has been mandatory for transactions with Public Administrations in Spain. This obligation was established under Law 25/2013 and requires that all invoices issued to the public sector be submitted electronically and digitally signed.

As of 2018, the regulation extended this requirement to subcontractors and contractors working with the Administration, who must also invoice electronically when the invoice amount exceeds €5,000.

Invoice format

The mandatory electronic format for invoices submitted to Public Administrations is Facturae.

Facturae is a structured XML format defined by the Spanish government that contains all the required invoice fields and enables automated processing. Suppliers must generate their invoices in this format for them to be accepted by the public sector. The general invoice reception platform for Public Administrations is FACe, which acts as a common entry point for Facturae invoices sent to any public body.

Electronic signatura

All B2G invoices must include an advanced electronic signature (XAdES) embedded in the Facturae XML itself.

This ensures the authenticity of the origin and the integrity of the invoice content. In Spain, the law requires that electronic invoices to the Administration be digitally signed; therefore, the use of a digital certificate for signing is mandatory. The XAdES (XML Advanced Electronic Signature) format complies with the European standard and is the one used in Facturae.

Archiving

Issuers of B2G invoices must retain electronic invoices for a minimum legal period of 5 years. During that time, invoices must be kept in a secure, integral, and accessible electronic format for potential inspections or audits.

Invoice Workflow

  1. Issuance and validation: Extraction of supplier ERP data and transformation into the XML–Facturae schema defined by the Spanish Tax Agency, with the application of validation mechanisms to ensure all required information is included.
  2. Electronic signature: Application of the legally established electronic signature mechanisms, which guarantee the integrity and authenticity of the electronic invoice. This is an advanced electronic signature based on a digital certificate (XAdES).
  3. Submission to PGEFe: Once validated, the invoice is sent to the PGEFe (General Entry Point for Electronic Invoices) that public bodies have in place, or to FACe in the case of bodies affiliated with the General Entry Point of the State Administration.
  4. Electronic Archiving: Archiving of the original XML–Facturae invoice in a secure and accessible electronic environment for the 5 years required under Spanish law. 

SII AEAT – Immediate Supply of Information in Spain

A key digital tool in Spanish taxation, the SII enables the Spanish Tax Agency (AEAT) to receive billing records (issued and received) in near real time, modernizing VAT management and strengthening tax control.

Since the SII system came into effect on July 1, 2017, all VAT returns and ledgers in Spain must be submitted to the AEAT electronic headquarters in real time.

What is the SII and when did it come into effect?

The SII is an online system developed by the AEAT for the electronic management of VAT ledgers. It requires businesses to digitally submit invoice records via the AEAT’s electronic headquarters within very short timeframes. The system has been in effect since July 1, 2017.

Who is affected by the SII AEAT – Immediate Supply of Information in Spain?

The SII is mandatory for specific groups of taxpayers defined by the Spanish Tax Agency:

  • Large companies: those with an annual turnover exceeding €6,010,121.04, representing a significant share of VAT collected in Spain.
  • VAT groups: entities that file the tax on a consolidated basis and must electronically submit records of all their transactions.
  • Taxpayers enrolled in the REDEME regime (Monthly VAT Refund Scheme): companies that request monthly VAT refunds, requiring continuous and detailed monitoring of their transactions.

In addition to these groups, the regulation also allows any company or professional to voluntarily opt in to the SII.

Frequently asked questions about the SII – Immediate Supply of Information in Spain

Below are some of the most common questions regarding the SII:

One of the main objectives of the SII system is to combat tax fraud. By requiring near real-time reporting, the system brings the reporting date closer to the actual transaction date, improving the accuracy of VAT returns. In addition, through cross-checking, it can be detected if a taxpayer is deducting VAT that has not yet been declared by the other party. The VAT ledger must match that of the clients at the transaction level.

The XML records or message blocks are not signed individually. What is required is identification through a recognized certificate to establish WS communication with AEAT. EDICOM is working on the Social Collaborator project to be able to submit documents with an EDICOM certificate on behalf of its clients.

Moreover, EDICOM is already a Certification Authority in Europe and is authorized to issue recognized certificates for the SII project and to establish identification in communications. 

First, the record of the document. Second, the type of transaction identified with keys and subkeys. Third, the details of the invoice or simplified invoice. Finally, any additional information that the company needs to communicate.

Yes. If it has a Spanish VAT number (CIF) and issues invoices, it is mandatory.

By choosing this option in the census declaration (Form 036) during November of the year prior to the calendar year in which it should take effect, or when submitting the declaration of the start of business activity. In both cases, it takes effect in the current calendar year.

Tex e-Reporting with VeriFactu

The VeriFactu system es the new cornestone of taz e-Reporting in Spain, designed to strengthen tax control and fight fraud through the secure digitalisation of B2B invoicing.

It is specifically regulated under Royal Decree 1007/2023, approved on December 6, 2023, known as the "VeriFactu Regulation", which sets the technical requirements for Billing Software Systems (SIF) and the VeriFactu modality.

What is VeriFactu?

The VeriFactu modality involves the immediate, secure, and automatic submission of billing records to the AEAT electronic headquarters, preventing any subsequent alteration. This ensures system reliability and transparency while enabling effective tax supervision.

It is important to note that a SIF (Billing Software System) refers to any program or platform that implements the regulation’s requirements to guarantee the security of billing records. It can operate in either basic or advanced mode, with VeriFactu being one of the advanced modalities.

Who is affected by the VeriFactu regulation and what is the implementation timeline?

The VeriFactu regulation applies to the vast majority of companies and professionals in Spain, with the only exception being those already required to submit their VAT ledgers through the Immediate Supply of Information (SII).

Following the publication of Royal Decree 254/2025, a phased rollout schedule has been established to facilitate adaptation:

  • Corporate Income Tax taxpayers must have their billing systems adapted and compliant by January 1, 2027.
  • Self-employed workers and the rest of the obligated taxpayers have an additional period and must comply with the regulation starting July 1, 2027.

TicketBAI and LROE – Fiscal control in the Basque Country

The TicketBAI system and the LROE electronic ledger represent the mandatory tax e-Reporting framework in the Basque Country, designed to strengthen traceability and prevent tax evasion through advanced electronic invoicing.

What is TicketBAI and why was it created?

TicketBAI is a joint system implemented by the Provincial Tax Authorities of Álava, Bizkaia, and Gipuzkoa together with the Basque Government. Its purpose is to electronically control all invoices and receipts generated, ensuring authenticity and preventing manipulation or exclusion from the tax circuit.

Each invoice or receipt must be issued using certified software (officially registered) that incorporates a TBAI identification code and a QR code and this automatically sent to the corresponding Provincial Tax Authority.

The system is especially focused on transactions with final consumers (particularly cash payments), enabling tighter control over actual revenues.

What is LROE in the Batuz system (Bizkaia)?

In Bizkaia, the rollout of TicketBAI is complemented by the LROE (Economic Transactions Record Book) within the Batuz system. This means that, in addition to issuing electronic invoices meeting TicketBAI requirements, taxpayers must also submit a structured and comprehensive record of all their economic transactions.

This electronic ledger is filed through Form 140 (for self-employed professionals) and Form 240 (for corporations), allowing the Provincial Tax Authority to have detailed and up-to-date information on each taxpayer’s activity.  Thanks to this, the LROE facilitates the automatic preparation of draft VAT, Corporate Income Tax, and Personal Income Tax returns, reducing administrative burdens and simplifying tax compliance.

One Platform. Endless Solutions.

Contact our specialists to answer all your questions about adapting your business to any EDI, e-invoicing and tax reporting system worldwide.

  • Proprietary SaaS solutions

  • International customer support service

  • 99.9% guaranteed availability

  • Managed services

  • International certifications and standards

  • Flow maintenance and integration services