top of page

Spain's B2B E-Invoicing Mandate: Timeline, Technical Requirements, and How Foreign Companies Must Comply

Writer: Global Trade
Global Trade
4 days ago
8 min read

Spain is moving decisively toward a fully digital tax environment, and the centrepiece of that shift is the Spain B2B e-invoicing mandate. For years, invoicing between businesses in Spain relied on PDFs, paper and email attachments. That era is ending. New legislation requires structured, machine-readable electronic invoices for domestic business-to-business transactions, backed by real-time reporting to the tax authority.

The change does not stop at Spanish-owned companies. Businesses established in Spain fall within scope, including foreign companies with a Spanish permanent establishment; a Spanish VAT number alone does not bring a foreign company into scope. If you file Spanish VAT returns through a permanent establishment in Spain, you will need to upgrade how you issue and record invoices. This guide breaks down who is affected, which formats are required, the go-live timeline, and the practical steps foreign companies should take now to stay compliant.



What Is the Spain B2B E-Invoicing Mandate?

The mandate stems from Spain's "Crea y Crece" law, which obliges businesses and self-employed professionals to issue and receive structured electronic invoices for all domestic B2B transactions. The goals are familiar across the EU: reduce VAT fraud, tackle late payment, and give the Agencia Estatal de Administración Tributaria (AEAT) far better visibility over commercial activity.

Running in parallel is VeriFactu Spain, the anti-fraud invoicing system introduced under the country's Anti-Fraud Law and its supporting regulation. VeriFactu sets technical standards for billing software so that invoice records are tamper-proof, traceable and, where enabled, transmitted to the AEAT in real time. Together, the Crea y Crece e-invoicing rules and the VeriFactu software requirements form the backbone of Spain's push toward mandatory digital invoicing. For background on the legislative approval process, see this overview of how Spain approved B2B electronic invoicing.


Who Is Affected?

The scope is deliberately broad. If your business is established in Spain, including through a permanent establishment, the mandate applies to you. This is the single most important point for international operators: Spain electronic invoicing for foreign companies is not optional simply because your headquarters sit outside the country. A German logistics group, a US-based online retailer or a Chinese manufacturer importing through Valencia is captured if it has a permanent establishment in Spain and transacts with Spanish businesses; a Spanish VAT number or EORI alone does not bring it into scope.

Company size does not exempt you either. From micro-enterprises to multinationals, all businesses established in Spain are in scope; size only affects when your obligation begins. Foreign businesses that reach the Spanish market through B2B channels, wholesale, drop-shipping to local resellers, or supplying other companies, should check whether they have a permanent establishment in Spain and plan accordingly. If you are not yet registered but expect to trade in Spain, our Spain country guide outlines the wider VAT landscape you will be entering.



Required Invoice Format: FacturaE and Structured XML

Under the mandate, a PDF or scanned image no longer qualifies as a compliant e-invoice. Invoices must be issued in a structured, machine-readable format that follows the European standard EN 16931, using UBL, CII, EDIFACT or the FacturaE format, an XML-based standard already used for invoicing to Spanish public administrations; UBL is required if you use the AEAT's public solution. The structured data allows both the recipient's system and the AEAT to read and validate the invoice automatically.

Alongside the invoice content, businesses must report the status of each invoice, whether it has been accepted, rejected or paid, which supports the law's aim of reducing late payment. For B2B digital invoicing in Spain to work smoothly, your software must generate the correct XML, apply the required technical guarantees under VeriFactu, and exchange invoices through approved channels. Getting the format right is what separates a technically valid invoice from one that triggers rejection and delays your cash flow.



Go-Live Timeline by Company Size

Spain is phasing the mandate in rather than switching it on overnight: Royal Decree 238/2026 was published on 31 March 2026, but the exact start dates depend on a Ministerial Order that was still in draft in July 2026. The framework, however, is clear: obligations begin with larger, higher-turnover businesses and cascade down to smaller ones. Understanding where you sit in the sequence is essential for planning your Spain mandatory e-invoice project.


Larger Businesses First

Companies with annual turnover above €8 million are expected to be the first wave required to issue structured B2B e-invoices, with their obligation commencing 12 months after the Ministerial Order takes effect, which on the current draft means around October 2027. These businesses handle the highest invoice volumes and are treated as the priority group for the rollout.


Smaller Businesses and the VeriFactu Deadlines

Businesses and professionals below the €8 million threshold follow in a later wave, 24 months after the Ministerial Order takes effect, which on the current draft means around October 2028. Separately, the VeriFactu software obligations carry their own timetable: after a postponement in December 2025, corporate income tax payers must use compliant billing software from 1 January 2027 and other taxpayers from 1 July 2027, while businesses using SII are excluded. Because references to a single "2025 deadline" have circulated widely, foreign companies should verify the current dates against official AEAT guidance rather than assume, and treat every published date as a floor to prepare against, not a target to wait for.



Practical Steps for Foreign Companies to Become Compliant

For a foreign business with a permanent establishment in Spain, compliance is a project, not a single switch. Breaking it into clear stages keeps it manageable.


1. Upgrade or Replace Your Invoicing Software

Your first task is a technology assessment. You need an invoicing or ERP solution that can generate FacturaE or structured XML, meet the VeriFactu tamper-proofing and record-keeping requirements, and, where applicable, transmit invoice data to the AEAT. If you already run cloud accounting or ERP software, ask your provider whether it supports Spanish e-invoicing natively or via a certified integration. Prioritise seamless integration with your existing systems so that order, fulfilment and accounting data flow into compliant invoices without manual re-keying.


2. Align With AEAT and Your VAT Registration

Compliance is anchored to your Spanish tax identity. Ensure your VAT registration details are correct and current, and that your software is configured to interact with AEAT systems under the VeriFactu framework. If you are entering the market or restructuring, our VAT registration service handles the process of obtaining and maintaining a Spanish number so your invoicing setup rests on solid foundations.

3. Adapt Your Process and Train Your Team

Operationally, e-invoicing changes how invoices are created, sent, acknowledged and archived. Update internal procedures so staff issue invoices only through the compliant system, record acceptance and payment statuses, and retain the structured records for the statutory period. Brief your finance and sales teams so the new workflow becomes routine rather than a source of errors.



Real-World Example: An E-Commerce Seller Under Pressure

Consider a UK-based online retailer with a Spanish branch, run by its own staff from a warehouse near Madrid, that serves Spanish customers quickly. Because it holds local inventory and supplies a network of Spanish reseller partners, it registered for Spanish VAT two years ago and files periodic returns without difficulty. Its invoicing, however, still runs on a basic tool that emails PDF invoices to its B2B customers.

Under the Spain VAT e-invoicing compliance rules, those PDFs will no longer suffice for its business customers. The retailer must migrate to software capable of producing EN 16931 invoices, such as UBL or FacturaE XML, and meeting VeriFactu standards, connect it to the AEAT, and adjust its fulfilment workflow so every B2B sale generates a structured invoice with a tracked status. The main challenges are technical, choosing a solution that integrates with its existing e-commerce platform, and procedural, retraining staff and reconciling the new invoice data with its VAT returns. Companies that start early absorb these changes calmly; those that wait risk rejected invoices, delayed payments and penalties.



How GTB Supports Your Spain VAT Compliance

GlobalTrade Business specialises in helping non-EU and foreign companies navigate exactly this kind of regulatory change. Our team combines deep Spain VAT expertise with hands-on support for registration, ongoing compliance and reporting. We can review your current invoicing setup against the mandate, confirm whether your software meets FacturaE and VeriFactu requirements, and coordinate the changes needed before your deadline arrives.

Because e-invoicing and VAT reporting are tightly linked, we also ensure your invoice data reconciles cleanly with your periodic filings. Our VAT return filing service keeps your Spanish returns accurate and on time, so the transition to structured e-invoicing strengthens your compliance rather than complicating it. Whether you are already trading in Spain or planning your first move, GTB gives foreign companies a single point of contact for the whole VAT lifecycle.

The Spain B2B e-invoicing mandate is one of the most significant changes to Spanish tax administration in a generation, and it applies to foreign companies with a Spanish permanent establishment just as firmly as to domestic ones. Acting early, upgrading your software, verifying your registration and adapting your process, is the surest way to avoid disruption. If you would like an expert review of your setup before the deadlines bite, GTB is ready to help.



Frequently Asked Questions

What is the Spain B2B e-invoicing mandate?

It is a legal requirement, introduced under Spain's Crea y Crece law and supported by the VeriFactu anti-fraud system, for businesses to issue and receive structured electronic invoices for domestic B2B transactions. The aim is to reduce fraud and late payment while giving the AEAT better oversight.


Does the mandate apply to foreign companies?

Only if they are established in Spain. Any business established in Spain, including a foreign company with a Spanish permanent establishment, is in scope, regardless of where it is headquartered. A Spanish VAT number alone does not bring foreign e-commerce sellers, importers or manufacturers into scope.


What is VeriFactu Spain?

VeriFactu is Spain's anti-fraud invoicing framework that sets technical standards for billing software, ensuring invoice records are tamper-proof and traceable. In its verifiable mode it can transmit invoice data to the AEAT in real time.


Which invoice format is required?

Invoices must be in a structured, machine-readable format that follows EN 16931, using UBL, CII, EDIFACT or the FacturaE XML standard; UBL is required for the AEAT's public solution. A standard PDF or scanned image does not meet the requirement for B2B e-invoices.


When does the Spain mandatory e-invoice rollout take effect?

The rollout is phased by company size, starting with businesses over €8 million turnover 12 months after the Ministerial Order takes effect (around October 2027 on the current draft), and smaller businesses 24 months after it (around October 2028). VeriFactu software obligations apply from 1 January 2027 for corporate taxpayers and from 1 July 2027 for other taxpayers, so exact dates should be confirmed against current AEAT guidance.


What software do foreign companies need?

You need an invoicing or ERP solution that can generate FacturaE or structured XML, meet VeriFactu tamper-proofing standards, and connect to the AEAT where required. Ideally it should integrate with your existing accounting and e-commerce systems.


Do I need to register with the AEAT separately for e-invoicing?

Your obligations are tied to your establishment in Spain and your Spanish tax identity, and your compliant software must be configured to interact with AEAT systems under the VeriFactu framework. Ensuring your registration details are accurate and current is an essential first step.


How can GTB help with Spain VAT e-invoicing compliance?

GTB reviews your current invoicing and VAT setup, confirms whether your software meets FacturaE and VeriFactu requirements, and handles registration and VAT return filing. This gives foreign companies a single point of contact for the full compliance transition.





Comments


bottom of page