Generate valid Facturae invoices, without building the schema yourself.
Spain has run mandatory B2G e-invoicing since 2015 through FACe, the public-sector invoice point, and a nationwide B2B mandate (Ley Crea y Crece) is now approved and rolling out in phases from 2026. Every Facturae invoice is a strict XML document with its own party model, Spanish tax identifiers and - unlike UBL or CII - a mandatory digital signature (XAdES). CrateAPI generates and validates that XML from a plain JSON invoice model: standard EUR invoices, full seller/buyer party detail (person type, residence type, Spanish postal codes), ready for you to sign and submit through your own channel.
How it fits your pipeline
- Send a JSON invoice to generate/facturae - you get back Facturae 3.2.2 XML, unsigned.
- Run it through validate/facturae for XSD-structural validation (free, no key) before you sign and submit.
- Apply your own XAdES signature and hand the XML to your channel - FACe for public-sector invoices, or your buyer's own intake for B2B.
Who this is for
- Software vendors — adding Facturae output to an ERP, invoicing tool or SaaS that bills Spanish public bodies or businesses.
- Gestorías & asesorías — who need a second, independent structural check before a client's invoice goes out signed.
- Freelancers and small businesses billing Spanish public administrations — who need a compliant Facturae XML without adopting the full spec themselves.
What you get today
- A free validator — no key, no signup: paste XML, get every structural finding.
- Standard EUR invoices (type 380) with complete seller/buyer party detail - Spanish, EU or non-EU addresses, individual or legal-entity identifiers.
- Strict scope, honestly enforced: credit notes, non-EUR currency and non-standard VAT lines are rejected with a clear 422, never silently approximated.
CrateAPI does not sign or transmit invoices. The XML we generate is unsigned - apply your own XAdES signature before submitting it to FACe (public sector) or your B2B channel. Ours is the format layer: make sure the XML is structurally valid the first time.
Curious how Spain's B2G mandate and the incoming B2B rules compare to the rest of the EU? Check our EU e-invoicing mandate tracker.