Italian IPA code has the wrong format
What it means
Invoices to Italian public bodies must carry the recipient's Codice Univoco Ufficio (IPA code), which identifies the specific office that will process them. The format is fixed and the code must exist in the IPA registry.
Can it be fixed automatically?
This needs a decision only the issuer can make. Guessing it would produce an invoice that validates and is wrong, which is worse than one that fails.
How to fix it
Obtain the correct IPA code from the public body you are invoicing; it is published in the Italian IPA index and cannot be inferred.
Where it applies
| UBL | /Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID |
|---|
Check your own invoice
curl -X POST https://einvoice.mgsoft.sk/v1/validate \
-H 'Content-Type: application/xml' \
--data-binary @invoice.xml