Introduction
Facturae is Spain’s official XML invoice format for Business-to-Government (B2G) transactions. The current version is Facturae 3.2.2, and invoices are submitted to public administrations through the FACe platform. Facturae is required when invoicing any Spanish public administration body (central government, regional governments, local councils, etc.). Unlike other Spanish tax reporting systems (VERI*FACTU, SII), Facturae does not require supplier registration — you simply generate the XML and submit it.Prerequisites
To generate Facturae invoices, ensure you have:- An invoice with:
- Supplier details (company name, tax ID, full address). Check the Spanish regime for specifics.
- Line items with name, price, and applicable taxes.
Facturae setup
To generate Facturae invoices, follow these instructions in the Invopop Console:1
Connect the Spain app
- Navigate to Configuration → Apps.
- Locate Spain in the app discovery list.
- Click Connect to activate.
2
Configure invoice workflow
Facturae Generate Invoice
Add to my workspace →
- Workflow
- Code
Administrative centers (DIR3 codes)
When invoicing Spanish public administrations via FACe, you must include three administrative centers identified by their DIR3 codes. Each public body publishes these codes in the DIR3 directory.
See the FACe example below for a complete invoice with all three administrative centers.
Running
Use the following example GOBL documents to generate Facturae invoices.Facturae B2G Invoice
Facturae B2G Invoice
A standard Facturae invoice from a Spanish supplier to a Spanish public sector customer.Notice:
- the
es-facturae-v3addon is required, - the
es-facturae-doc-typeandes-facturae-invoice-classtax extensions are set automatically by the addon when the document is built or uploaded — the built version shows the derived values, - both supplier and customer must have full address details and valid Spanish tax IDs.
Facturae Credit Note
Facturae Credit Note
A corrective invoice (credit note) referencing a previous Facturae invoice.Notice:
- the
typeis set tocredit-note, - a
precedingentry references the original invoice with thees-facturae-correctioncode, - the addon derives the
es-facturae-invoice-classextension asOR(rectificativa) during build — you don’t need to set it by hand.
Facturae FACe Invoice (with Administrative Centers)
Facturae FACe Invoice (with Administrative Centers)
An invoice addressed to a public administration via the FACe platform, including the three required DIR3 administrative centers.Notice:
- the customer includes an identity with
scope: "tax"for the Oficina Contable (DIR3 code01), delivery.receiverincludes the Órgano Gestor identity (DIR3 code02),ordering.buyerincludes the Unidad Tramitadora identity (DIR3 code03),- each public body publishes their DIR3 codes — look them up in the DIR3 directory.
In your invoice data, make sure to include the
es-facturae-v3 addon and set the regime to ES.🇪🇸 Invopop resources for Spain
🇪🇸 Invopop resources for Spain
Spain FAQ
Find answers to frequently asked questions about invoicing in Spain →
Participate in our community
Ask and answer questions about invoicing in Spain →