Facturae or B2B e-invoice: which format to use in each case

Independent, non-governmental site

Choose where the invoice goes: the calculator gives the format, signature and delivery route the rules require, and since when it is mandatory.

Format and signature

Facturae 3.2.2

Facturae with an XAdES advanced electronic signature based on a certificate (Law 25/2013, art. 5, and the Facturae signature policy).

Mandatory since15 January 2015
Unique identifierFACe registry number
StatusesPublished by FACe

One invoice may need two things: the electronic format (Facturae or B2B) and the Verifactu record from the software issuing it.

How this is calculated

Prepared by Radif Partners · Method · Rules read in the BOE and at the AEAT on 25 October 2026

Spain has two mandatory e-invoicing regimes that are easily confused. The first, since 15/01/2015, covers invoices to public bodies: Law 25/2013 requires a structured format signed with an advanced electronic signature, in practice Facturae 3.2.2, filed through each administration's general entry point, FACe for central government. The second is business-to-business invoicing under Royal Decree 238/2026, arriving on 06/10/2027 or 06/10/2028 depending on turnover, by our calculation. Here the rules accept four syntaxes based on the European EN 16931 model: UBL, CII, EDIFACT and Facturae. On a private platform the invoice is signed and the platform sends a faithful UBL copy to the Tax Agency; on the AEAT public solution you work directly in UBL and the Agency's own procedures take the place of the signature. Facturae works in both worlds, but it is not the only option between businesses.

The two duties side by side

Comparison under the rules in force on the reading date.
Invoice to a public bodyInvoice to a business
RulesLaw 25/2013 and Order HAP/1074/2014Law 18/2022 and RD 238/2026
Since15 January 20156 October 2027 or 6 October 2028
FormatFacturae 3.2.2UBL (EN 16931), UN/CEFACT CII, EDIFACT, Facturae
SignatureAdvanced, certificate-based, or electronic sealAdvanced on private platforms
ChannelFACe or another general entry pointPrivate platform or AEAT public solution
StatusesPublished by the entry pointAcceptance, rejection and payment, reported by the customer

Law 25/2013, article 5, requires invoices to public bodies to use a structured format and an advanced electronic signature based on a qualified certificate, or an advanced electronic seal. The format in practice is Facturae, published on facturae.gob.es, and Order HAP/1074/2014 adds routing fields and a maximum size of 8 MB. Each invoice enters through the recipient administration's general entry point, which files it and tells you its status.

Between businesses: four syntaxes, two routes

Article 7 of Royal Decree 238/2026 accepts any structured file following the European EN 16931 model in CII, UBL, EDIFACT or Facturae syntax. Private platforms must be able to convert an invoice between all of them without breaking its authenticity, and every invoice they carry is signed with an advanced signature, by the issuer or by delegation. Each invoice has a unique code combining the issuer tax ID, the series and number, and the date.

The alternative is the Tax Agency public solution, free of charge, governed by article 11 and set up by Order HAC/1028/2026. There the syntax is always UBL. Anyone who states nothing else receives through this route. Try which format applies to each destination:

Structured e-invoice

Structured e-invoice

6 October 2028

FormatUBL (EN 16931), UN/CEFACT CII, EDIFACT, Facturae
ChannelPrivate platform or public solution
Verifactu as wellYes, from 1 July 2027
See which e-invoice applies to you →

Which to choose if you invoice both

If you work for public bodies and businesses alike, Facturae has the advantage of fitting both: you can produce the same kind of file and change only the channel and routing details. If nearly everything goes to businesses, the practical choice is whatever your software or platform uses, usually UBL. To try Facturae without installing anything, the Facturae creator builds the XML and the signing step explains how to sign it. The public sector route is covered in FACe, and the business route in B2B e-invoicing. Whichever you pick, keep the original XML file as your record, not a printout.

Common questions

Can I send a business the same Facturae file I send to FACe?

Yes, Facturae is one of the four syntaxes allowed by article 7.1 of Royal Decree 238/2026. For public bodies the file must carry the DIR3 codes for accounting office, managing body and processing unit, which an invoice to a business does not need. What changes is the channel: between businesses you use a private platform or the public solution, not FACe.

What is UBL and why does the AEAT public solution use it?

UBL is an international XML syntax for business documents that fits the European EN 16931 semantic model. Article 11.2 of the royal decree requires it for anyone issuing through the public solution, and private platforms must send the faithful copy of each invoice in UBL. That way the Tax Agency receives every invoice in a single format.

Does an e-invoice also have to comply with Verifactu?

Yes, if it is issued by invoicing software subject to Royal Decree 1007/2023. The electronic format governs how the invoice travels to the customer; Verifactu governs how the software records and chains each invoice. They are separate layers: one B2B invoice will have its structured file and, on top, its record with a hash and its QR code or equivalent content.

Keep going

Official sources for this page

Prepared by

Publisher of free tools on Spain's Verifactu and e-invoicing rules: eligibility check, QR reader, Facturae creator and timeline, all in your browser

Updated on · Editorial policy · Contact

As of 2026, rules read in the BOE and on the AEAT website on