
Spain FACe B2G E-Invoicing: Government Invoice Submission Guide
Tax & Compliance Series
This guide is part of a comprehensive series. Explore all 202 topics:
What Is FACe?
FACe is Spain's centralized government invoice reception platform managed by the Ministry of Finance (Ministerio de Hacienda).
FACe is Spain's centralized government invoice reception platform managed by the Ministry of Finance (Ministerio de Hacienda). Key features:
- Single entry point: One portal for all public administrations
- Facturae format: XML format version 3.2.2 defined by the Ministry
- Digital signature: XAdES qualified electronic signature required
- Status tracking: Real-time invoice processing status (registered, approved, paid)
- DIR3 codes: Routing codes identifying the specific government accounting office, management body, and processing unit
What Is the Facturae 3.2.2 Format?
Facturae is Spain's electronic invoice format for B2G transactions:
Facturae is Spain's electronic invoice format for B2G transactions:
| Element | Description |
|---|---|
| FileHeader | Schema version, modality (individual/batch), batch info |
| Parties | Seller and buyer details with NIF, name, address |
| Invoices | Invoice data — number, dates, items, taxes, totals |
| Extensions | Additional data specific to the contracting authority |
What Are DIR3 Codes?
DIR3 (Directorio Común de Unidades Orgánicas y Oficinas) codes are essential for routing invoices within the public administration:
DIR3 (Directorio Común de Unidades Orgánicas y Oficinas) codes are essential for routing invoices within the public administration:
- Oficina contable: Accounting office code
- Órgano gestor: Management body code
- Unidad tramitadora: Processing unit code
Incorrect DIR3 codes are the most common cause of FACe invoice rejection. Codes are published at face.gob.es.
What Are Common FACe Rejection Reasons?
Common FACe Rejection Reasons includes: Invalid DIR3 codes: Wrong or outdated routing codes (~40% of rejections) Missing digital signature: XAdES signature absent or invalid
- Invalid DIR3 codes: Wrong or outdated routing codes (~40% of rejections)
- Missing digital signature: XAdES signature absent or invalid
- Format errors: Non-compliant Facturae 3.2.2 XML structure
- Missing contract reference: Many administrations require the contract or expediente number
- Duplicate invoice: Same invoice number already registered in the system
Step-by-Step: Submitting an Invoice Through FACe
Step-by-Step: Submitting an Invoice Through FACe includes: Obtain the DIR3 codes from your contracting public administration or look them up on face. gob.
- Obtain the DIR3 codes from your contracting public administration or look them up on face.gob.es
- Generate a Facturae 3.2.2 XML file with all required fields
- Sign the XML with a qualified XAdES electronic signature
- Submit via FACe portal (web upload, web services API, or email)
- Monitor status through the FACe tracking portal
Invoicemonk supports FACe B2G invoicing with automated Facturae 3.2.2 XML generation, DIR3 code lookup, digital signature application, and FACe submission via API — ensuring government invoices are accepted on the first submission.
More in this series (202 articles)
From this series
Stay audit-ready and compliant with tax regulations across different regions.
Related Topics
Digital Marketing, SEO Specialist, Content Creator & Product Professional
Olayinka is a digital marketer, content creator, growth and SEO specialist with 10+ years helping businesses in Nigeria, the UK, the US, Australia, and Dubai achieve their goals online.




