Guide · Italian rules
How to record suppliers' electronic invoices without retyping them
Purchase invoices arrive as XML files: they already contain the supplier, lines, VAT and due dates. Retyping them by hand wastes time and is a source of errors. Here is how it works and how to record them in a few clicks.
by Antonio Tanzillo, ATSoft · updated on
What kind of files they are
An Italian electronic invoice is an XML file; if the supplier has signed it digitally, it has the extension .xml.p7m. It reaches you from the SDI (Sistema di Interscambio), the Italian e-invoicing exchange system, at the address you have given, a recipient code (codice destinatario) or a PEC address (Italian certified email), and it also remains available in your reserved area on the Italian Revenue Agency (Agenzia delle Entrate) website.
The file contains everything: the supplier with VAT number, number and date, lines with codes, quantities and prices, VAT summary, payment method and due dates, and sometimes the PDF of the invoice as an attachment.
Why not retype them by hand
- It wastes time, especially with invoices that have many lines.
- Codes, quantities or prices get typed wrong, and the stock figures don't add up.
- Due dates have to be re-entered in the due dates, and the forgotten ones turn into late payments.
How to do it in KeyStore in Cloud
In KeyStore in Cloud, from the Base plan upwards, supplier invoices are recorded from XML documents:
- They arrive by themselves if you send and receive with Openapi or YouDox; otherwise you drag in the .xml or .p7m files, or entire .zip archives.
- The supplier is recognised in your supplier records, or created from the invoice data.
- The lines are matched to items: by barcode, by the code matched the previous time or by item code. The match is remembered, and from the same supplier's next invoice the line is already ready.
- New items are created from the invoice, with the selling price calculated from the markup you choose.
- When you record it, the purchase invoice, the goods-in stock movement, the journal (prima nota) entry and the due dates are created; the withholding tax (ritenuta d'acconto) is deducted from the amount to pay.
- Service suppliers, such as utilities, fuel or consultancy, go only into the accounts, on the cost account you choose, with no items or stock.
- All at once: with "Import all" you record the invoices waiting to be processed in one go, or you switch on automatic posting as soon as they arrive.
If the goods have already come in with the supplier's DDT (transport document), remove the stock movement from the invoice, so the goods aren't booked in twice.
E-invoicing in KeyStore in Cloud →
In short
What is the difference between an .xml file and an .xml.p7m file?
The .p7m is the same XML invoice digitally signed by the supplier. The business software reads both.
Do I have to retype the invoice lines into the items?
No: the lines are matched to items by barcode or by code, and the match is remembered for later invoices.
Does the invoice book the goods into stock?
Yes, if you want it to. If the goods have already come in with the supplier's DDT, remove the stock movement from the invoice.
What about electricity, phone or fuel invoices?
The supplier is marked as a service supplier: its invoices go only into the accounts, on the cost account you choose.
Sources
Official sources, in Italian.
Guide updated on 29 November 2026. It summarises the general Italian rules: for your specific case, ask your accountant.
Want to stop retyping invoices?
With KeyStore in Cloud supplier invoices arrive, are matched to your items and are recorded with stock, journal and due dates.
Explore e-invoicing