FatturaPA (Italy / SdI)

00301

IdFiscaleIVA del CessionarioCommittente non valido

What it means

The buyer's VAT identifier (CessionarioCommittente/DatiAnagrafici/IdFiscaleIVA) is not well-formed. For an Italian buyer IdPaese must be 'IT' and IdCodice must be exactly 11 digits.

How to fix it

Set IdPaese to a valid ISO country code; for IT, make IdCodice the 11-digit partita IVA. If the buyer is a private individual or has no VAT number, omit IdFiscaleIVA and use CodiceFiscale instead.

Example

<IdFiscaleIVA><IdPaese>IT</IdPaese><IdCodice>09876543210</IdCodice></IdFiscaleIVA>

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 →