Integration Overview
Spain's e-invoicing landscape requires businesses to connect with three distinct systems: the AEAT (via Verifactu for anti-fraud reporting), FACe (for B2G invoice submission), and optionally the Peppol network (for structured EU cross-border B2B exchange). The challenge for most finance teams is that their ERP was never designed to handle any of these natively.
InvoStaq's approach eliminates this complexity with a headless plugin architecture that installs directly inside your ERP. Your finance team continues working with the same screens and workflows — while InvoStaq handles hash generation, chain integrity, AEAT reporting, Facturae mapping, and Peppol delivery in the background.
ERP Compatibility
Microsoft Dynamics 365
Native PluginInvoStaq's Dynamics 365 plugin installs as a managed solution in under 30 minutes. Supports Business Central and Finance & Operations. Automatic Verifactu hash generation, Facturae 3.2.x mapping for B2G, and EN 16931 output for B2B. Multi-entity and multi-language (Spanish, Catalan, Basque, Galician) support included.
Odoo (16, 17, 18+)
Native ModulePython-native Odoo module that integrates with the invoicing workflow. Automatic SHA-256 hash injection into invoice records, QR code generation, and AEAT XML export. Supports Odoo Enterprise and Community editions. Zero server overhead — runs within existing Odoo cron jobs.
SAP S/4HANA & SAP Business One
API Connector (Phase 2)REST API connector for SAP environments. InvoStaq's API accepts invoice data in JSON or XML, performs AI validation, generates Verifactu hashes, and returns compliant output. Enterprise-grade throughput with guaranteed sub-200ms response times.
Sage, Holded, A3 Software
API ConnectorSpain's local ERP and accounting tool ecosystem (Sage 200, Holded, A3 ERP, ContaPlus) can connect via InvoStaq's REST API. Webhook-based event system triggers validation on invoice creation, ensuring real-time compliance without manual intervention.
Custom / Legacy Systems
REST APIAny system capable of HTTP/REST calls can integrate with InvoStaq. Full API documentation with OpenAPI 3.0 spec, sandbox environment, and dedicated onboarding support. Suitable for proprietary billing systems and legacy platforms.
Verifactu Integration Flow
The Verifactu integration requires a precise sequence of operations at invoice creation time. Here's how InvoStaq handles each step automatically inside your ERP:
Invoice Created in ERP
Your finance team creates an invoice as usual. InvoStaq's plugin intercepts the invoice before posting, triggering the AI validation pipeline.
Syntax AI Guardian
First pass: structural validation against Facturae 3.2.x (B2G) or EN 16931 (B2B) schemas. Checks mandatory fields: NIF, invoice number, tax breakdown, line items, currency, and payment terms.
Semantic AI Audit
Second pass: business-rule validation. Cross-references tax rates with Spain's IVA (VAT) rates (21%, 10%, 4%), validates IGIC (Canary Islands) rates where applicable, checks for duplicate invoice numbers, and verifies recipient NIF against census data.
SHA-256 Hash Generation
InvoStaq generates the SHA-256 hash incorporating: invoice data fields, timestamp, issuer NIF, and the previous invoice's hash (chain reference). The hash is stored both in the ERP record and in InvoStaq's secure audit log.
QR Code Injection
A Verifactu-compliant QR code is generated containing the AEAT verification URL, NIF, invoice number, date, total amount, and hash fingerprint. The QR is embedded in the invoice PDF and structured data.
AEAT Verifactu Submission
The Verifactu XML record is submitted to the AEAT within the required reporting window. InvoStaq tracks the submission status and alerts your team if any record is rejected or requires correction.
Traffic Light Result
Your finance team sees a simple Green (Pass) / Amber (Warning) / Red (Block) status for every invoice. Plain-language error explanations in Spanish and English — no XML debugging required.
FACe B2G Integration
If your business supplies goods or services to Spanish public administrations, you must submit invoices via the FACe platform (Punto General de Entrada de Facturas Electrónicas). FACe requires Facturae 3.2.x XML format with XAdES digital signatures.
Automatic Facturae Mapping
InvoStaq automatically maps your ERP invoice data to Facturae 3.2.x XML — including line items, tax categories (IVA, IGIC, IRPF retention), administrative centres (órgano gestor, unidad tramitadora, oficina contable), and payment terms.
XAdES Digital Signature
Invoices are signed with your FNMT or eIDAS-qualified digital certificate using XAdES-BES enveloped format. InvoStaq manages certificate storage, rotation, and automatic signing.
FACe Web Service Submission
Direct submission to FACe's SOAP web service API. InvoStaq handles the full lifecycle: submit, query status (registered, accepted, rejected, paid), and automatic retry on transient errors.
Multi-Administration Support
Support for submitting invoices to different Spanish administrations (state, autonomous communities, local government) — each with their own FACe or equivalent portal (e-FACT for Catalonia, FACE Basque Country).
Implementation Steps
Discovery & Scoping (Week 1)
InvoStaq reviews your ERP version, invoice volume, B2G vs B2B split, number of entities, and autonomous community requirements. We define the integration scope and compliance targets.
Plugin Installation (Week 1–2)
For Dynamics 365 and Odoo: native plugin deployed in your environment. For SAP/Others: API credentials provisioned. Test connection established with InvoStaq's sandbox.
Digital Certificate Setup (Week 2)
Configure your FNMT or eIDAS digital certificate for invoice signing. InvoStaq securely stores the certificate and configures automatic signing workflows.
Data Mapping & Configuration (Week 2–3)
Map your ERP invoice fields to Facturae 3.2.x (B2G) and EN 16931 (B2B). Configure Spanish tax rate tables (IVA, IGIC, IRPF), administrative centre codes, and entity-specific settings.
Verifactu Hash Testing (Week 3)
Generate test invoices and validate SHA-256 hash chain integrity. Verify QR code generation and AEAT XML output against the Verifactu specification.
FACe Sandbox Testing (Week 3–4)
Submit test invoices to FACe's pre-production environment. Validate acceptance, query lifecycle statuses, and resolve any schema or signature issues.
Production Go-Live (Week 4)
Switch to production endpoints. Monitor first live invoices, verify AEAT acceptance, and confirm FACe delivery. InvoStaq provides 30-day post-go-live support.
Typical Implementation Timeline
For most businesses, the full integration — from discovery to production go-live — takes 3 to 4 weeks. Dynamics 365 and Odoo native plugins can be installed in under 30 minutes; the remaining time is spent on data mapping, certificate setup, and thorough testing with FACe and the AEAT sandbox.
Connect Your ERP to Spain's AEAT Today
InvoStaq handles Verifactu hashing, Facturae mapping, and AEAT reporting — natively inside Dynamics 365, Odoo, or any ERP via API. Book a technical demo.