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:Connect the Spain app
- Navigate to Configuration โ Apps.
- Locate Spain in the app discovery list.
- Click Connect to activate.
Configure invoice workflow
- Template
- Code
- Build from scratch
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.
| Facturae Role | Code | GOBL Field |
|---|---|---|
| Oficina Contable (Accounting Office) | 01 | customer.identities[] with scope: "tax" |
| รrgano Gestor (Managing Body) | 02 | delivery.receiver.identities[0] |
| Unidad Tramitadora (Processing Unit) | 03 | ordering.buyer.identities[0] |
Running
Use the following example GOBL documents to generate Facturae invoices.Facturae B2B Invoice
Facturae B2B Invoice
A standard Facturae invoice from a Spanish supplier to a Spanish business customer.Notice:
- the
es-facturae-v3addon is required, - the
es-facturae-doc-typeandes-facturae-invoice-classtax extensions must be set, - both supplier and customer must have full address details and valid Spanish tax IDs.
Facturae B2G Invoice
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
es-facturae-invoice-classis set toOR(rectificativa).
Facturae Credit Note
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.
Facturae FACe Invoice (B2G with Admin Centers)
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 โ