FatturaPA (Italy / SdI)

00321

CodiceDestinatario '0000000' ammesso solo con FPR12

What it means

The wildcard recipient code 0000000 is only allowed for private-recipient transmissions (FormatoTrasmissione=FPR12), not for FPA12.

How to fix it

For FPR12 keep 0000000 and supply PECDestinatario. For a PA, use the real 6-character IPA office code instead.

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 →