FatturaPA (Italy / SdI)
00428
TipoCassa o AlCassa non valido
What it means
In DatiCassaPrevidenziale, TipoCassa must be one of the TC01..TC22 codes and the rates/amounts must be present and consistent.
How to fix it
Use the correct TipoCassa code for the professional fund, and fill AlCassa (rate), ImportoContributoCassa, ImponibileCassa and AliquotaIVA accordingly.
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 }}