On March 31, 2026, Spain published Royal Decree 238/2026 establishing mandatory electronic invoicing between businesses and professionals. This regulation, developing Law 18/2022 (the Crea y Crece law), marks a turning point for B2B trade credit in Spain. The traceability it imposes is precisely what the B2B BNPL ecosystem needs to scale.

What Royal Decree 238/2026 establishes

Mandatory formats: invoices must use structured formats (Facturae, UBL or EDIFACT), not simply PDFs. Systems can process information automatically.

Invoice status tracking: both issuer and recipient must communicate invoice status (issuance, acceptance, rejection, effective payment) within a maximum of 4 business days.

Hybrid system: companies may use private platforms (meeting interoperability requirements) or the free public solution from the Spanish Tax Agency.

Copy to tax authority: all invoices, even those exchanged via private platforms, must send a copy to the public solution, creating a universal invoicing repository.

Implementation timeline

Companies with turnover above 8 million euros: 12 months from the Ministerial Order (expected before July 2026).

All other businesses and professionals: 24 months.

Currently over 550 million electronic invoices are exchanged annually in Spain. With the B2B mandate, volume could reach 2 billion invoices per year, with estimated economic savings exceeding 8 billion euros.

The connection to digital B2B credit

Better credit scoring: with full traceability, scoring engines can access real payment behaviour data, improving decision accuracy and enabling more approvals with lower risk.

Fraud reduction: structured e-invoicing makes invoice duplication or financing of fake invoices virtually impossible, addressing endemic problems in traditional factoring.

Direct integration: UBL/Facturae formats allow B2B BNPL platforms to integrate directly into the invoicing workflow without custom development.

Impact on late payments

Spain has an effective average payment period of approximately 80 days, well above the legal 60-day limit. With e-invoicing, every status is recorded. Companies paying late will be exposed. The tax authority will have real-time data on payment compliance for the first time.

How to prepare

Companies that see e-invoicing as an opportunity rather than a burden will lead the transformation of B2B credit in Spain. Review your invoicing systems, consider integrating B2B BNPL directly into your electronic invoicing workflow, and get ahead of the deadlines.

Frequently asked questions

When is B2B e-invoicing mandatory in Spain?

12 months for companies with over 8M turnover, 24 months for the rest, from the Ministerial Order (expected before July 2026).

What formats are valid?

Facturae, UBL and EDIFACT. A PDF alone is not sufficient; invoices must be structured documents.

How does e-invoicing affect B2B credit?

It improves scoring with real payment data, reduces invoice financing fraud and facilitates B2B BNPL integration.