Peppol Invoice Attachments: PDF, Timesheets, Delivery Notes — Integrations & APIs article by Rui Codex

A Peppol invoice can carry supporting files such as a PDF copy, a timesheet or a delivery note as additional document references inside the UBL XML, either embedded as base64 data or linked by URI. Each attachment needs a clear filename, a MIME type and a description. Attachments help the buyer verify the invoice, but they never replace the structured invoice data.

Key takeaways

  • A Peppol invoice can carry attachments, but the structured XML remains the authoritative invoice data.
  • Embedding a file in the XML makes it travel with the invoice, while a URI link depends on the receiver reaching that location.
  • A PDF copy is the most common attachment because it gives the buyer a human-readable view of the invoice.
  • Timesheets and delivery notes are useful evidence, but they need a clear naming convention and a size check before sending.

What can travel with a Peppol invoice?

Any file that supports the invoice can be attached, provided the sending and receiving systems agree on how to handle it. The Peppol BIS Billing 3.0 specification defines additional supporting documents as a structured part of the invoice, so a receiver's system can recognise them as attachments rather than unexplained files. The specification is the reference for which elements are valid, and it is worth reading before you build anything.

In practice, three types cover most business cases: a human-readable PDF copy of the invoice, a timesheet that supports hourly or day-rate lines, and a delivery note or proof of delivery. Each one answers a different question for the buyer. The PDF shows the invoice, the timesheet explains the quantities, and the delivery note confirms that goods or services arrived.

Tip: Decide per invoice type which attachments are required, rather than attaching everything by default. Less material means fewer rejected or confusing documents.

How are attachments encoded in the XML?

Attachments are normally referenced through the additional document reference element in the UBL invoice. The file is either embedded as base64-encoded binary content, or it is referenced by an external URI. Embedding keeps the invoice self-contained. A URI keeps the message small, but the receiver must be able to reach that address later, and the file can change or disappear after sending.

Every attachment should carry a filename, a MIME type and a short description. Without these, the receiving system may store the file but cannot tell the buyer what it is. Use descriptive, stable names such as the invoice number followed by the document type, and avoid spaces or special characters that some systems handle poorly.

Should you attach a PDF copy of the invoice?

Attaching a PDF copy is useful when the buyer's accounts team reads invoices visually or when their system does not render the structured data. It is not required for the structured invoice to be processed, and it adds a second representation that must match the XML exactly. If the PDF and the XML disagree on amounts, dates or VAT, the mismatch creates a dispute that the structured data alone would not have caused.

Generate the PDF from the same data that builds the XML, rather than maintaining two templates. This keeps both representations aligned and makes audits easier.

Tip: Compare the totals in the PDF and the XML automatically before sending. A simple check catches most divergences.

When do timesheets and delivery notes belong in the invoice?

Attach a timesheet when the invoice bills time and the buyer has agreed to verify hours against it. Attach a delivery note when the invoice bills physical goods or completed deliveries that the buyer must confirm. In both cases, the attachment should match the invoice lines it supports, and the line references should be easy to follow.

A checklist before you attach supporting files

  • Confirm the buyer has asked for the document or the contract requires it.
  • Check that the file name, MIME type and description are set.
  • Verify that quantities in the timesheet or delivery note match the invoice lines.
  • Remove internal notes, salary data or other information the buyer does not need.
  • Test the full message with the buyer's or the network's validation tooling.

Remove any content that exposes information beyond what the buyer needs. A timesheet that shows internal cost rates, for example, should be replaced with a customer-facing version before it leaves your system.

Hypothetical examples of attachments

Here are two hypothetical scenarios:

In the first, a software consultancy bills a client monthly by the hour. The invoice references a timesheet as an embedded file, and the timesheet lists the same project codes as the invoice lines. The client's accounts team can match each line to a day of work without writing to the consultant.

In the second, a distributor sends an invoice for three shipments. The delivery notes are linked by URI to a document store. The invoice is accepted, but three months later the store's access rules change and the links no longer open, so the buyer cannot check the deliveries without asking for the files again. Embedding would have avoided this.

Where does the attachment approach fail?

Attachments fail in predictable ways. The most common is a file that is too large for the network or the receiving system, which causes the message to be rejected or the attachment to be dropped. Check the limits of your access point and of the buyer's system before you design a workflow that relies on large scans or video.

A second failure is an attachment that the receiver cannot read. Scanned images without text, proprietary spreadsheet formats or password-protected files are frequent causes. A third is a broken URI, as the second scenario above shows. A fourth is a mismatch between the attachment and the invoice, which can trigger a manual review.

Tip: Use open, text-readable formats such as PDF for supporting documents, and avoid password protection on anything the buyer must open.

When the volume of documents grows, manual attachment handling stops scaling. A custom integration that generates the XML, the PDF and the supporting files from one source is usually more reliable than assembling them by hand. Rui Codex offers technical implementation support for this kind of work, and you can review the approach on the Peppol e-invoicing integration page of our site. For connecting invoicing to the rest of your business systems, see our ERP and CRM integration service. Background on how integrations are designed is also covered in our system integration and API articles.

Frequently Asked Questions

Is an attached PDF required for a Peppol invoice?

No, an attached PDF is not required for the structured invoice to be processed. The XML carries the invoice data that receiving systems use. A PDF copy is an optional convenience for buyers who read invoices visually, and it must match the XML exactly.

Can a Peppol invoice contain more than one attachment?

Yes, a Peppol invoice can reference several supporting files, such as a PDF copy, a timesheet and a delivery note. Each attachment should have its own filename, MIME type and description so the receiver can identify it. Keep the number of files to what the buyer actually needs.

Should attachments be embedded or linked by URI?

Embedding is usually safer because the file travels with the invoice and remains available later. A URI keeps the message smaller but depends on the link staying reachable. Choose embedding for documents that must be kept for records, and use a link only when the document store is permanent and controlled.

Can an attachment change the invoice totals?

No, an attachment does not change the invoice totals or the legal content of the structured data. Totals come from the XML lines and tax elements. If an attached timesheet or delivery note shows different quantities, the difference should be resolved before sending, not left to the receiver.

Conclusion

Attachments make a Peppol invoice easier to verify when they are chosen deliberately. Decide which supporting documents the buyer needs, encode them in a form the receiver can read, and generate them from the same data as the invoice. Embedding protects against broken links, and automated checks protect against mismatched totals. If you are planning how attachments fit into your invoicing flow, you can request a project consultation at our contact page, or email info@ruicodex.com to discuss your project.

Sources

Tags: Peppol e-invoicing Peppol invoice attachments UBL system integration invoicing API integration Belgium

Need Help Implementing This?

Our team can help you put these insights into practice. From AI automation to custom software development, we build solutions that deliver real results.

Send a project request