# FatturaPA 1.2.3

Source: https://xmlvalid.com/schemas/fatturapa-1.2.3

> The Italian e-invoice: the XML that invoices to the public administration, between businesses and to consumers are sent in through the SdI (Sistema di Interscambio), checked against the schema and the SdI's own checks on the file.

Italy has required electronic invoices for the public administration since 2014–2015 and between private parties since 2019. They are FatturaPA XML files sent through the Sistema di Interscambio, which rejects a file that fails the schema or one of its checks and answers with a rejection receipt (ricevuta di scarto) listing error codes.
Version 1.2.3 is one schema for both transmission formats: FPA12 (to the public administration) and FPR12 (between private parties), chosen with the versione attribute of FatturaElettronica.
After the schema, the SdI checks run here with the codes the SdI answers with: VAT rates and nature codes (00400, 00401, 00429, 00430, 00443, 00444, 00445), the totals of lines and summaries (00421, 00422, 00423), the recipient code (00427, 00313), document types (00471 to 00475), invoices repeated in one file (00409) and more.

- Type: XSD + Schematron
- Version: 1.2.3, Specifiche tecniche 1.9.1
- Namespace: `http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2`
- Root element: `FatturaElettronica`
- Publisher: Agenzia delle Entrate (Published by Agenzia delle Entrate for implementers), source: https://www.agenziaentrate.gov.it/portale/specifiche-tecniche-versione-1.9.1-%C2%A0-utilizzabili-dal-15-maggio-2026-
- Rules: [SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1](https://xmlvalid.com/rules/sets/it-sdi-ordinaria)
- Validate against it: https://xmlvalid.com/validate?schema=fatturapa-1.2.3

## Notes

- The SdI checks are written by xmlvalid after Appendice 1 of the Specifiche tecniche 1.9.1 (31 March 2026, in use from 15 May 2026) and the pseudocode of the Elenco dei controlli 1.9; Agenzia delle Entrate publishes no machine-readable rules. They run only when the document matches the schema.
- Checks that need the SdI's records are not run: the Anagrafe Tributaria and IPA lookups (00300 to 00327, 00311, 00312), invoices sent before (00404), declarations of intent (00477), the file name and the signature. Instead, our XV-IT rules check the check digits of the partita IVA and codice fiscale, which the lookup cannot pass without.
- Where the documents leave room we take the lenient reading: 00422 allows one euro, as the Italian Allegato says (the English translation says one cent), and a discount given both as a percentage and an amount passes 00423 if either gives the line total.
- The schema is the one Agenzia delle Entrate publishes as Schema\_VFPR12\_v1.2.3.xsd; the XML Signature import points at a local copy.
- The examples are Agenzia delle Entrate's own, published with the Specifiche tecniche 1.9.1 (one of them signed).
