FatturaPA (Italy / SdI)

00400

Natura presente con AliquotaIVA diversa da zero (riga di dettaglio)

What it means

On a detail line (DettaglioLinee) you put a Natura code (exemption/reverse-charge/etc.) together with a non-zero AliquotaIVA. SdI rule 00400: when Natura is present on a line, AliquotaIVA must be 0.00.

How to fix it

If the line really is taxable, remove the Natura element and keep the real VAT rate. If it is exempt/non-taxable/reverse-charge, set AliquotaIVA to 0.00 and keep the correct Natura code (N1..N7 with sub-codes).

Example

<AliquotaIVA>0.00</AliquotaIVA><Natura>N2.2</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 →