How E-Invoicing Works in Spain: B2B and B2G Explained
Spain runs two e-invoicing regimes, and they work very differently. B2G e-invoicing, for suppliers to public bodies, has been mandatory since 15 January 2015 and runs through FACe, the State’s invoice entry point. B2B e-invoicing, between businesses, becomes mandatory on 6 October 2027 for businesses with a volume of operations above €8m, and on 6 October 2028 for everyone else. The B2B clock started on 6 October 2026, when Order HAC/1028/2026 took effect.
For in-scope businesses, this affects invoice processing, payables, ERP integration, and payment reporting. This guide provides an overview of the two regimes, their differences, and the role SII and Crea Y Crece will play.
Key Takeaways
- B2G is live: Invoices to Spanish public bodies must be e-invoices, mandatory since 2015 under Law 25/2013. Use FACe, the Facturae 3.2.2 format and an XAdES signature.
- B2B is next: The mandate starts on 6 October 2027 for businesses whose volume of operations exceeded €8m in the preceding calendar year, and on 6 October 2028 for all others.
- Structured data only: PDF alone will not do. Invoices must follow the EN 16931 data model in UBL, CII, EDIFACT or Facturae. The AEAT’s public solution accepts UBL only.
- Choice of route: Businesses can use the government's public solution, private platforms, or both.
- You must report statuses: Recipients report full payment, the payment due date and any rejection to the AEAT within four business days. The reporting start date depends on taxpayer type: 6 October 2027, 2028, or 2029.
- SII and Veri*Factu are separate: SII govern tax reporting, and VeriFactu is billing software, not invoice exchange.
- SII and Crea y Crece are separate: SII is about VAT reporting to AEAT. Crea y Crece changes how businesses create, exchange, validate, and track invoices.
How B2G E-Invoicing Works in Spain
B2G e-invoicing has been mandatory in Spain since 1 January 2015 under Law 25/2013. Suppliers file invoices through FACe, the state's single entry point. FACe is mandatory for central government bodies and optional for regional and local ones.
FACe (Punto General de Entrada de Facturas Electrónicas) is Spain's general entry point for electronic invoices. Suppliers use it to submit invoices to public bodies from one place, identify the receiving authority and track processing, instead of sending invoices to each department separately.
How to Send an Electronic Invoice in Spain to a Public Body
One needs to follow these rules while invoicing a public body:
- Get a qualified digital certificate, for example from FNMT, to sign the invoice.
- Submission point: Submit through FACe, the State’s general entry point. Regional and local bodies can adhere to FACe or run their own entry point, so confirm which one your customer uses.
- Buyer identification: Find the buyer's DIR3 codes to identify the accounting office, managing body and processing unit.
- Format: Use Facturae signed with an XAdES advanced electronic signature. Issue the invoice in Facturae 3.2.2. This is Spain's XML format, signed with an XAdES signature. Our guide to e-invoice formats explains how structured formats work.
- Upload it to FACe through the portal or a web service.
- Tracking: Track the invoice status through registration, accounting, and payment, and resubmit any rejected invoice once corrected. Fix and resend any rejected invoice.
B2G Workflow at a Glance
Stage | What happens |
| Create | Supplier issues a signed Facturae 3.2.2 invoice |
| Route | DIR3 codes identify the receiving office, body and unit |
| Submit | Invoice is uploaded to FACe |
| Register | FACe validates and forwards it to the public body |
| Process | The authority reviews and accounts for the invoice |
| Track | Supplier checks the status |
| Pay | The approved invoice is paid under the payment terms |
How B2B E-Invoicing Works in Spain
Spain's B2B mandate comes from Law 18/2022 (Crea y Crece) and Royal Decree 238/2026.
Royal Decree 238/2026 sets the technical and information requirements. Order HAC/1028/2026 regulates the AEAT’s public solution and, by entering into force on 6 October 2026, started the deadlines set in Law 18/2022 and the Royal Decree (transitional provisions 1 to 3 and final provision 4).
The PDF invoices sent by email "will no longer be sufficient". The rules cover domestic transactions between businesses established in Spain. The AEAT confirms the timetable on its public solution news page and in its e-invoicing section.
Who is in scope, and who is not
The Spain e-invoicing mandate applies when the supplier must issue an invoice under the Invoicing Regulation and the recipient is a business or professional with its seat of economic activity, a permanent establishment or, failing that, its domicile or habitual residence in Spain (RD 238/2026, article 3). If a customer or third party issues the invoice on the supplier’s behalf, the supplier remains responsible for compliance. Groups that run invoicing from a shared service centre outside Spain should note this.
These are outside the mandate:
- Simplified invoices, unless they are qualified simplified invoices under article 7.2 of the Invoicing Regulation.
- Sales to customers not established in Spain, and B2C sales.
- Regulated activities of the electricity market operator and the regulated gas market operator, and operations settled through the IATA clearing systems CASS, BSP and SIS-ICH.
- Operations that the Ministry of Economy, Trade and Business excludes by order.
The Basque Country and Navarre apply the system under their foral arrangements.
Deadlines
The €8m test uses volume of operations as defined in article 121 of the VAT Law (Law 37/1992) for the preceding calendar year.
Date | Who | What applies |
| 6 October 2026 | Everyone | Order HAC/1028/2026 in force. The deadlines start counting |
| 6 October 2027 | Businesses with a volume of operations above €8m | Issue, send and receive e-invoices. Report statuses and payments. Platform operators must also meet the faithful-copy, interconnection and platform requirements |
| 6 October 2028 | All other businesses and professionals | Issue, send and receive e-invoices. Legal entities with €8m or less must also report statuses and payments. Subcontractors in public contracts who use FACeB2B must have moved to the new system |
| 6 October 2029 | Individuals and income-attribution entities with €8m or less | Report statuses and payments |
The public solution must be available at least two months before the first deadline, so by early August 2027 at the latest.
What is the public solution?
The public solution, SPFE, is the Tax Agency's government-run platform for the B2B mandate. Businesses can use it to issue and receive invoices, interconnect with private platforms, submit faithful copies, retrieve invoices and report statuses and payments. As a shared layer, businesses can keep their existing software.
Who must comply, and when
Business group | Start date |
| Turnover above €8m in the previous calendar year | 6 October 2027 |
| All other businesses and professionals | 6 October 2028 |
How B2B e-invoicing works in practice
- Confirm your wave using the €8m turnover test.
- Choose your route. Use the Tax Agency's free public solution, a private platform, or a mix of both.
- Issue a structured invoice based on the EN 16931 standard. The public solution uses UBL syntax. Accepted formats also include Facturae, CII and EDIFACT on private platforms.
- Send a faithful copy to the public solution if you use a private platform. It must be in UBL and sent at the same time as the invoice.
- Report statuses. Recipients report rejection, the payment due date and the full payment date, generally within four working days.
Which formats are valid
- Use the EN 16931 data model in one of four syntaxes: UBL, CII, EDIFACT or Facturae (RD 238/2026, article 7.1). Peppol BIS is also valid on private platforms because it uses UBL and EN 16931.
- If you issue or interconnect through the public solution, use UBL only (RD 238/2026, article 11; Order, article 3).
- Invoices issued through private platforms must carry an advanced electronic signature.
- Every invoice needs a unique code made up of the issuer’s tax ID, the series and number, and the issue date.
- Do not embed files in invoices or faithful copies sent through the public solution (Order, articles 3 and 4).
- Platform operators must be able to convert between all permitted formats.
Choose your route
You can invoice through a private platform, through the AEAT’s public solution, or through both (RD 238/2026, article 5).
- Public solution. It is free and voluntary. Access requires a qualified electronic certificate, or Cl@ve for the web forms. A third party acting for you needs a power of attorney registered with the AEAT.
- Default entry point. If you have not told suppliers where to send invoices, the public solution is treated as your entry point. If you use a private platform, publish its entry point in your communications and on your website.
- Private platforms. Operators must hold ISO/IEC 27001 or an equivalent certification, use AS2 or AS4 transmission, and interconnect with any other platform on request within one month, free of charge. Check your provider’s position before you sign.
Send a faithful copy if you use a private platform
If you do not issue through the public solution, your platform must send a faithful copy of each invoice, in UBL, to the public solution at the same time as the invoice (RD 238/2026, article 6; Order, article 4). Follow these rules:
- The copy must be flagged as a copy in the indicator field.
- It must carry the invoice content that has an equivalent in the public solution’s UBL format, and at least the minimum content required by the Invoicing Regulation.
- The public solution rejects duplicate copies.
- A rejected copy does not invalidate the original invoice, but you must correct the cause and resend the copy.
Report statuses and payments
Status reporting is the biggest change for finance teams. It links invoicing, accounts payable and cash application. Recipients must:
- Report the full effective payment date and the payment due date to the public solution within four days of payment.
- Report any rejection to the public solution. The Order allows two rejection reasons: commercial rejection, or rejection because the purchase is for private consumption or unrelated to the business activity.
- Tell the issuer about acceptance, rejection and payment within four days of each event.
Apply these rules:
- The four days are calendar days, excluding Saturdays, Sundays and national holidays. Regional and local holidays are not excluded.
- Silence means acceptance. If you do not reject the invoice or receive a corrective invoice, it is presumed accepted.
- The preamble to RD 238/2026 treats the payment date as the date the supplier is actually paid: the cash payment date, the debit date for a bank transfer, or the date of an agreed set-off. Offering the supplier early-payment financing does not count as payment.
- Receipt dates. You may report the date goods or services were received, or the date the invoice was received. If you do not, the AEAT uses the invoice issue date to start the payment period, for statistical purposes only.
- If the public solution is unavailable for more than 24 hours for technical reasons, you have four working days after it is fixed to send your invoices, copies and reports (Order, articles 5 and 8).
- Optional reporting. Issuers can report receipt of payment or non-payment. Recipients can report partial payment, partial acceptance or assignment of the invoice.
The AEAT shares this data with the Ministry of Economy, Trade and Business and the Ministry of Industry and Tourism to monitor payment terms.
Transition rule for larger businesses: during the first 12 months, invoices from businesses above €8m must come with a readable PDF, unless the recipient agrees to receive only the electronic original. The PDF goes to the customer, not to the public solution.
For finance teams, status reporting is the biggest change. It links invoicing, accounts payable and cash application.
B2B vs B2G E-Invoicing in Spain: Key Differences
B2G is a unified national government portal with one national format. B2B is a hybrid solution that gives the tax authority visibility while allowing businesses to choose how to exchange invoices.
Point | B2G | B2B |
| Legal basis | Law 25/2013 | Law 18/2022 and Royal Decree 238/2026 |
| Status | In force since 2015 | From 6 October 2027 (above €8m) and 6 October 2028 (others) |
| Who is covered | Suppliers to public bodies | Businesses and professionals established in Spain |
| Platform | FACe | Public solution, private platforms, or both |
| Format | Facturae 3.2.2, signed XML | EN 16931 (UBL on the public solution) |
| Status reporting | Tracked on FACe | Recipient reports rejection and payment within four working days |
| Threshold | Invoices up to €5,000 exempt from FACe filing | €8m turnover sets the start date |
Where Do SII and Veri*Factu Fit into Spain's E-Invoicing Framework?
SII and Veri*Factu sit beside e-invoicing, not inside it. They deal with tax reporting and billing software. Neither replaces sending a structured invoice to your customer.
What is SII?
SII (Suministro Inmediato de Información) is the Tax Agency's VAT reporting system. It applies to businesses with turnover above €6m, those on the REDEME monthly VAT refund regime and VAT group members. Other businesses can opt in voluntarily.
What is Veri*Factu?
Veri*Factu (Royal Decree 1007/2023) sets integrity and traceability rules for billing software. Systems need to maintain safe, reliable invoice records. Records can be provided to the Tax Agency in the verifiable mode, and invoices include a QR code for verification.
Regime | What it does | Who it affects |
| SII | Near real-time reporting of VAT invoice records to the Tax Agency | Large taxpayers and VAT groups |
| Veri*Factu | Requires billing software that keeps invoice records secure and traceable | Taxpayers outside SII |
| Crea y Crece | Governs how invoices are exchanged between businesses | Domestic B2B transactions |
Companies included in the SII are excluded from Verifactu. However, companies must comply with the B2B e-invoicing regulations. For corporate taxpayers, Verifactu is being implemented from 1st of January 2027. From 1st of July 2027 it will also apply to other taxpayers. On 5th of October 2026, the Ministry of Finance announced plans to postpone debts until October 2028. These dates continue to apply until an official change is issued.
Conclusion
There are two main ways to understand how e-invoicing operates in Spain. B2G uses signed Facturae files to operate via FACe. Starting in October 2027, B2B will switch to structured invoicing and status reports. Next, get a clear view of what your existing systems do, what Spain requires, and which capabilities an integrated specialist layer should handle.
ClearTax’s AI-powered e-invoicing solution brings together source-system integration, validation, reconciliation and managed regulatory updates. Use that approach to assess your Spain architecture: reuse suitable ERP data, centralise agreed controls, and assign a named owner for updates and exceptions.
Frequently Asked Questions
About Author
With a CA academic background and 9+ years of experience in finance, GST, journalism, and e-invoicing, I specialise in translating complex tax and financial regulations into actionable insights for businesses and finance leaders. My experience spans financial copywriting, journalism, real estate, edtech and travel insurance, with a growing focus on the global e-invoicing landscape. My exposure to journalism taught me to look beyond jargon, ask better questions, and find the story behind complex subjects. I use that instinct to make financial & regulatory topics accessible. Outside work, I’m a storyteller, an unapologetic movie critic and a lifelong sports enthusiast.
Ankit Arora
Manager - Content