FatturaPA (Italy / SdI)

00430

TipoDocumento non valido o incoerente

What it means

TipoDocumento is not one of the allowed codes (TD01 fattura, TD02 acconto/anticipo, TD03 acconto su parcella, TD04 nota di credito, TD05 nota di debito, TD06 parcella, TD16..TD28 autofattura/reverse-charge/esterometro), or it is inconsistent with the rest of the document.

How to fix it

Pick the code that matches the operation. Use TD04 for a credit note (not a negative TD01), TD16/TD17/TD18/TD19 for the various reverse-charge self-invoices, TD24/TD25 for deferred invoices, TD20 for omitted-invoice self-billing.

Catch this before it reaches the SdI:

# CLI
npx @eleata/validate-einvoice validate invoice.xml --format fatturapa

# GitHub Action — fail the build on any invalid invoice
- uses: hernaninverso/validate-einvoice-action@v1
  with:
    files: invoices/**/*.xml
    api-key: ${{ secrets.EINVOICE_API_KEY }}

Other FatturaPA (Italy / SdI) error codes

All error codes →