FatturaPA (Italy / SdI)
00472
TipoDocumento di autofattura con CedentePrestatore diverso dal CessionarioCommittente
What it means
For autofattura document types where the law requires it (e.g. TD20), the CessionarioCommittente that issues the document must coincide with the party indicated; mismatches are rejected.
How to fix it
Align the CedentePrestatore / CessionarioCommittente blocks with the rule for the chosen TDxx code (see the SdI 'controlli' table), or pick a different TipoDocumento.
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 }}