# Create FatturaPA

Italy mandates FatturaPA through SDI for all B2B invoicing. Fill in the form and download the XML file SDI accepts.

Source: https://tally-stick.com/create-fatturapa

## How it works

Type the invoice on the page: number, dates, document type (TD01 invoice, TD04 credit note, etc.), seller and buyer with their Partita IVA, and the line items. DatiRiepilogo per VAT rate and totals are calculated as you type.

The seller section requires the Regime Fiscale (RF01 ordinary through RF19 flat-rate). The buyer section requires either a CodiceDestinatario (7 characters) or a PEC address for SDI routing.

AliquotaIVA and Natura codes work together: when the VAT rate is 0, Natura explains why (N1 excluded, N2.1 reverse charge, N3.1 exports, N4 exempt, etc.). The form validates this automatically.

`Download FatturaPA XML` writes the file with the official namespace, FPR12 transmission format, and the DatiTrasmissione block SDI requires. No account needed, nothing uploaded.

The file is ready to submit to SDI via the FatturaPA channel. Tallystick does not submit to SDI on your behalf.

## What is checked before anything is written

The download is refused, with the missing fields listed, when: the invoice number is absent, the issue date is missing or not YYYY-MM-DD, the TipoDocumento is missing, the RegimeFiscale is missing, the seller Partita IVA is missing, the CodiceDestinatario is not exactly 7 characters, or no line item has been entered. Each line requires a description, a valid AliquotaIVA, and a Natura code when the rate is 0.

## Common questions

### Which FatturaPA version is this?

v1.2.2, the format SDI has accepted since October 2020. The namespace, FPR12 format code and DatiTrasmissione structure are all v1.2.2.

### What is CodiceDestinatario?

The 7-character routing code SDI uses to deliver the invoice. For PA buyers it is a public code published by each administration; for B2B it is assigned by the buyer. If you have a PEC address instead, enter it in the PEC field and leave CodiceDestinatario as 0000000.

### What Natura codes are there?

N1 (excluded art.15), N2.1/N2.2 (not subject), N3.1-N3.6 (non-taxable), N4 (exempt), N5 (margin scheme), N6.1-N6.9 (reverse charge), N7 (IVA paid in another EU state). The form shows all of them with descriptions.

### What is Regime Fiscale?

The seller's tax regime: RF01 for ordinary, RF19 for flat-rate (forfettario), and the rest for the specific cases in between. SDI requires exactly one, and the wrong one misstates how the invoice's VAT is treated, so the form does not guess it for you.

### Can I submit to SDI?

Not from this page. This writes the file; sending it to SDI needs the FatturaPA channel or an intermediary. No credentials are touched here, nothing is uploaded.

### Do I need an account?

No. There is no sign-up. Writing invoices is free under the site's fair usage limit.

### I only have the invoice as a PDF.

Open it with the button at the top. A PDF that carries an e-invoice inside it is read from that; anything else is read off the printed page, a scan included, by text recognition running in this tab. Check every field afterwards, then download the FatturaPA XML.

### I already have the data in a spreadsheet.

Then use [Excel to FatturaPA](https://tally-stick.com/excel-to-fatturapa) instead - it reads a workbook and writes one FatturaPA file per invoice row.

## Related tools

- [Excel to FatturaPA](https://tally-stick.com/excel-to-fatturapa)
- [FatturaPA to Excel](https://tally-stick.com/fatturapa-to-excel)
- [FatturaPA to PDF](https://tally-stick.com/fatturapa-to-pdf)
