Flowie
Compliance · 🇮🇹 Italy

Italian document types — the TipoDocumento (TD) explorer

Every Italian e-invoice carries a TipoDocumento (TD) code telling SDI what kind of document it is — an ordinary sale, a credit note, a self-invoice, an integration for reverse charge, and so on. Picking the wrong one is a top cause of business-side errors and of scarto codes 0047100474. This is the full referential — all 23 codes (TD01–TD29) — as an interactive explorer, plus a deep dive on every family and how to set each one with Flowie. Cross-checked against the public Agenzia delle Entrate sources at the bottom.

Set it via document.note
With Flowie you set the TipoDocumento through document.note on POST /v1/documents/send; we map it into the FatturaPA <TipoDocumento> field. If you omit it, we default to TD01 (ordinary invoice).

What a TipoDocumento is (and the numbering gap)

The TipoDocumento is a fixed 4-character code in the FatturaPA XML. The current set runs TD01TD29, but TD10TD15 do not exist — the numbering jumps from TD09 to TD16 by design — so there are 23 live codes. The list is defined by the Agenzia delle Entrate Guida alla compilazione (v1.10, April 2025) and the Specifiche tecniche (Allegato A). The 2026 technical-spec refresh did not add or change any TD code; the last addition was TD29 in 2025.

Interactive explorer

Filter by family, then click any code for its Agenzia delle Entrate definition, when to use it, the key seller/buyer rule and the exact Flowie call.

Ordinarie & acconti Note credito/debito Reverse charge & estero Autofatture speciali Operazioni speciali
Click a code above to see its definition, its rules, and the Flowie call that emits it.

The families

The 23 codes fall into five practical families (our grouping, for navigation):

All 23 codes (TD01–TD29)

The complete set (Agenzia delle Entrate Guida alla compilazione v1.10). TD10TD15 are intentionally absent.

TDDescrizione (IT)What it's for & how Flowie sets it
Ordinarie & acconti
TD01FatturaOrdinary invoice — standard sale of goods/services (B2B/B2C/B2G). Default when document.note is omitted.
TD02Acconto/anticipo su fatturaAdvance / down payment against an invoice.
TD03Acconto/anticipo su parcellaAdvance / down payment against a professional fee.
TD06ParcellaProfessional-fee invoice (lawyers, consultants, notaries…).
TD07Fattura semplificataSimplified invoice (total ≤ €400).
TD24Fattura differita — art. 21 c.4 lett. a)Deferred invoice (goods delivered via DDT, or services documented).
TD25Fattura differita — art. 21 c.4 terzo periodo lett. b)Deferred invoice for triangulation resale by the intermediary.
Note di credito / debito
TD04Nota di creditoCredit note — reduces/cancels a prior invoice; references the original.
TD05Nota di debitoDebit note — increases a prior invoice.
TD08Nota di credito semplificataSimplified credit note.
TD09Nota di debito semplificataSimplified debit note.
Reverse charge & acquisti dall'estero
TD16Integrazione fattura da reverse charge internoSelf-integration of a domestic reverse-charge invoice.
TD17Integrazione/autofattura per acquisto servizi dall'esteroIntegration / self-invoice for services bought from abroad. Seller country ≠ IT.
TD18Integrazione per acquisto di beni intracomunitariIntegration for intra-EU purchases of goods. Seller in EU, ≠ IT.
TD19Integrazione/autofattura per acquisto beni ex art. 17 c.2 DPR 633/72Goods bought from a non-resident but already in Italy.
Autofatture speciali (seller = buyer)
TD20Autofattura per regolarizzazione e integrazione delle fattureSelf-invoice to regularise/integrate a supplier document (intra-EU art. 46, art. 17 c.2). The domestic omitted-invoice denuncia moved to TD29.
TD21Autofattura per splafonamentoSelf-invoice for exceeding the export-VAT ceiling (plafond).
TD27Fattura per autoconsumo o cessioni gratuite senza rivalsaOwn-consumption or free-of-charge transfer without VAT recovery.
TD29Comunicazione per omessa/irregolare fatturazione (art. 6 c.8 D.Lgs. 471/97)Buyer's notice to the tax authority of a supplier's omitted / irregular domestic invoice. Added v1.10 (2025); took this case over from TD20.
Operazioni speciali
TD22Estrazione beni da Deposito IVAWithdrawal of goods from a VAT warehouse.
TD23Estrazione beni da Deposito IVA con versamento dell'IVAWithdrawal from a VAT warehouse, with VAT payment.
TD26Cessione di beni ammortizzabili e passaggi interniSale of depreciable assets / internal transfers between activities.
TD28Acquisti da San Marino con IVA (fattura cartacea)Purchases from San Marino with VAT (paper invoice received). Seller country = SM.

Deep dive · ordinarie & acconti

TD01 Fattura is the workhorse — the ordinary invoice for the vast majority of sales. TD02/TD03 cover advances (acconto/anticipo) against an invoice or a professional fee respectively; the eventual final document nets them out. TD06 Parcella is the fee invoice used by regulated professions. TD07 Fattura semplificata is allowed only for small totals (≤ €400) and carries a reduced field set.

TD24 / TD25 (fattura differita) are the deferred-invoice types: TD24 for goods delivered under a documento di trasporto (DDT) or documented services invoiced by the 15th of the following month; TD25 for the specific triangulation-resale case (art. 21 c.4 terzo periodo lett. b). All of these require seller ≠ buyer — self-addressing an ordinary type triggers scarto 00471 / 00430.

Deep dive · note di credito e debito

TD04 Nota di credito reduces or cancels a previously issued invoice (a return, a discount, an error); TD05 Nota di debito increases it. Both should reference the original document. TD08 / TD09 are the simplified counterparts, paired with TD07. A credit note is a first-class SDI document — it is not a lifecycle status — and flows through the same RC / MC / AT receipt path as an invoice.

Deep dive · reverse charge & acquisti dall'estero

These are the integrazione / autofattura types where the buyer accounts for the VAT and sends a document to SDI to record it (the esterometro replacement for cross-border). Getting the country of the cedente/prestatore right is what SDI checks:

  • TD16 — domestic reverse charge (e.g. construction subcontracting, scrap, certain electronics): the buyer integrates the supplier's Italian invoice.
  • TD17 — services purchased from a foreign provider: seller country must be ≠ IT, else scarto 00473.
  • TD18 — intra-EU purchase of goods: seller is an EU non-IT party.
  • TD19 — goods bought from a non-resident but physically already in Italy (art. 17 c.2 DPR 633/72).

Deep dive · autofatture speciali (seller = buyer)

In these the same party is both cedente and cessionario — SDI enforces seller = buyer (scarto 00472 if not):

  • TD20 — self-invoice to regularise or integrate a missing/irregular document; since v1.10 the pure domestic omitted-invoice denuncia uses TD29 instead, leaving TD20 for the intra-EU (art. 46) and art. 17 c.2 integration cases.
  • TD21splafonamento: an habitual exporter that exceeded its VAT-free plafond self-invoices the excess.
  • TD27autoconsumo / free-of-charge transfers without rivalsa (no VAT charged to a customer).
  • TD29 — the buyer's formal notice to the Agenzia delle Entrate that a supplier failed to issue (or issued an irregular) domestic invoice (art. 6 c.8 D.Lgs. 471/97). New in 2025.

Deep dive · operazioni speciali

  • TD22 / TD23 — Deposito IVA: withdrawing goods from a VAT warehouse. TD22 when the VAT is not paid on extraction; TD23 when VAT is paid on extraction.
  • TD26 — beni ammortizzabili & passaggi interni: sale of depreciable assets or internal transfers between separately-accounted activities of the same taxpayer.
  • TD28 — San Marino: recording a purchase from San Marino for which a paper invoice with VAT was received; seller country must be SM, else scarto 00474.

Seller = buyer & the scarto rules (00471–00474)

SDI cross-checks the TipoDocumento against the parties and rejects (Notifica di scarto) inconsistent combinations:

ScartoRule
00471Ordinary types (TD01/TD02/TD03/TD06) with cedente = cessionario — these require seller ≠ buyer.
00472Self-invoice / integration types where the seller/buyer relationship is wrong — e.g. TD20/TD21/TD27 require seller = buyer.
00473TD17/TD18/TD19 (foreign purchase) but the seller country is IT — the cedente must be non-Italian.
00474TD28 (San Marino) but the seller country is not SM.

The full scarto catalogue and the SDI receipt lifecycle (NS / RC / MC / AT / EC / NE / DT) are on the Italy overview.

How Flowie models them

You never send raw FatturaPA — you send structured data and set the type:

curl -X POST https://api.flowie.ink/v1/documents/send \
  -H "Authorization: Bearer $FLOWIE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "invoice",
    "document": { "number": "2026/128", "currency": "EUR", "lines": [ ... ],
                  "note": "TD24" },
    "from": "IT01234567890", "to": "0208:9876543210"
  }'

Flowie maps document.note into <TipoDocumento>, validates the seller/buyer and country rules before transmission (so you get a clear 4xx instead of an SDI scarto), and surfaces the SDI receipts as webhooks. For credit notes, send type: "credit_note" (Flowie sets TD04) and link the original.

References — public sources