FatturaPA (Italy / SdI)

00413

Natura presente con AliquotaIVA diversa da zero (riepilogo)

What it means

In a VAT summary line (DatiRiepilogo) Natura is present together with a non-zero AliquotaIVA. SdI rule 00413: a summary line with a Natura code must have AliquotaIVA = 0.00 (and vice-versa).

How to fix it

Split your summary so that taxable amounts go into a DatiRiepilogo with a real rate and no Natura, and non-taxable amounts go into a separate DatiRiepilogo with AliquotaIVA 0.00 and the matching Natura.

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 →