Generate valid FatturaPA invoices, without becoming an SDI expert.
Italy has run mandatory B2B e-invoicing since 2019 - the EU's earliest national mandate. Every invoice is a FatturaPA XML document exchanged through the Sistema di Interscambio (SDI). CrateAPI generates and validates that XML from a plain JSON invoice model: TD01 standard invoices, TD04/TD05 credit and debit notes, Natura VAT-exemption codes - including N2.2, the one that unblocks freelancers on the regime forfettario - plus optional ritenuta d'acconto, bollo and cassa previdenziale fields.
How it fits your pipeline
- Send a JSON invoice to generate/facturapa - you get back FatturaPA XML built on the current schema (v1.2.2).
- Run it through validate/facturapa for XSD-structural validation before you transmit (no official schematron ruleset exists yet to vendor, so this stays structural).
- Hand the XML to your own SDI channel - PEC, your web service, or an accredited intermediary. CrateAPI does not transmit invoices.
Who this is for
- Software vendors (fornitori di software gestionale) — adding FatturaPA output to an ERP, invoicing tool or SaaS that bills Italian businesses or freelancers.
- Commercialisti & studi di consulenza — who need a second, independent validation opinion before a client's invoice goes to SDI.
- Freelancers and small businesses on the regime forfettario — who need Natura N2.2 handled correctly - a generic N2 code is rejected on ordinary invoices since 2021.
What you get today
- A free validator — no key, no signup: paste XML, get every structural finding.
- TD01, TD04, TD05 document types, and Natura codes (N2.2, N3.1-3.6, N4, N6.9) mapped from a single canonical VAT-category field.
- Optional ritenuta d'acconto, bollo and cassa previdenziale - the fields most invoicing tools skip entirely.
CrateAPI is not an accredited SDI intermediary and does not transmit invoices to the Sistema di Interscambio. Ours is the format layer: make sure the XML you send through your own channel - PEC, a web service, or an accredited intermediary - is valid the first time.
Curious how Italy's mandate compares to the rest of the EU? Check our EU e-invoicing mandate tracker.