FatturaPA (Italy / SdI)
00471
TipoDocumento TD01/TD02/TD03/TD06 incompatibile con la presenza del CedentePrestatore = CessionarioCommittente
What it means
For ordinary invoice document types the supplier (CedentePrestatore) and the buyer (CessionarioCommittente) must be different parties; a self-invoice must use the autofattura document types (TD16..TD27) instead.
How to fix it
If you are issuing a self-invoice (reverse charge / esterometro), change TipoDocumento to the matching TD1x..TD2x code; otherwise correct the party that was filled in by mistake.
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 }}