Skip to main content

XML attachments

Insert files inside the electronic invoice XML: size limits per file and per invoice, ZIP compression, and what happens if the invoice has already been transmitted.

You can insert documents inside the electronic invoice XML — a contract, a work report, a record — so they reach the customer together with the invoice.

Where to find it

Invoice page → XML Invoice → XML attachments. You need to be able to edit invoices to upload, and to delete them to remove an attachment.

Adding an attachment

In the Add an attachment box, drag the file or click to choose it. In Attachments in the XML, for each file:

  • Attachment name (maximum 60 characters, the extension stays);

  • Attachment format and Attachment description;

  • Compress in ZIP inside the XML, to reduce its weight;

  • Save, Download, Delete.

These attachments are separate from the invoice's normal attachments: only those uploaded here end up in the XML.

The limits

At the bottom of the page you see Total payload and Weight inside the XML (base64). As a rule the maximum is 2 MB per attachment and 3 MB per invoice. Inside the XML files weigh about a third more, and the SdI rejects files over 5 MB: if an attachment is large, compress it or replace it with a lighter one.

If an attachment goes over the limits, the XML is not generated and the message says which file to remove or compress.

If the invoice has already been transmitted

The page warns you: “This invoice has already been transmitted. Attachments added or removed now do NOT change the file already sent…”


Did this answer your question?