How to Send Peppol Invoices from Your Webshop Safely — AI Automation article by Rui Codex

Peppol invoices from a webshop are sent by generating a UBL invoice in a Peppol-compatible format and passing it through a Peppol access point to the buyer's access point. Magento, PrestaShop and WooCommerce do not handle this in the same way out of the box, so each usually needs an extension, a middleware service or a custom integration. Order data, tax handling and buyer identifiers decide how hard the job is.

Key takeaways

  • A Peppol invoice is a structured file that moves between access points, so a PDF attached to an email is not enough.
  • Each webshop platform needs a connector that maps order, customer and tax data to the Peppol format.
  • Buyer identifiers and VAT data are the most common reasons a sent invoice is rejected.
  • Testing with a sandbox and reconciling invoices against the shop's order records should happen before go-live.

What happens to an invoice between the webshop and the buyer?

The webshop creates the order and the invoice data, then a sending system converts that data into a Peppol-format document. The document is sent through a Peppol access point, which looks up the buyer's receiving access point in the Peppol network and delivers the file there. The buyer's system then receives and processes it.

This is different from emailing a PDF. The receiver gets machine-readable fields such as seller and buyer identifiers, line items, tax categories and totals. A mismatch in any of these fields can cause the document to be rejected before a person ever sees it.

Which Peppol building blocks does a webshop need?

Three parts are involved in almost every setup. The first is the invoice format, which is a structured XML file based on the UBL syntax and the Peppol billing specification. The second is a participant identifier for the seller and buyer, which tells the network where a company can receive documents. The third is an access point, which is the service that actually transmits the file. The general model is described on the Peppol website.

A webshop platform does not contain these parts by default. It stores orders, customers and tax settings, and it can generate a PDF. The missing step is the translation from those records into the Peppol document, and the sending of that document through an access point. That translation layer is where most of the engineering effort sits.

Tip: Before choosing a platform connector, ask which access point it uses and who is responsible for the participant registration of your company. These two answers determine who you depend on when something breaks.

How does Magento handle Peppol invoicing?

Magento is a flexible platform, and its invoices are created from sales orders and stored as database records. Sending a Peppol invoice means hooking into the moment an invoice is created or paid, reading its data, and generating the Peppol document from it. Magento's own documentation, available on the Magento website, describes how orders and invoices are modelled.

Magento setups often need extra care with multiple store views, currencies and tax rules. If one store view uses a different tax class or invoice numbering sequence, the connector must map it correctly. A connector written for one store configuration can silently produce wrong data for another.

How does PrestaShop fit into a Peppol setup?

PrestaShop generally works with a module or an external service that listens for order status changes and produces the invoice file. The main design question is whether invoice numbers are generated in PrestaShop or in the sending system. Two sources of numbering create gaps and duplicates that are hard to explain to an auditor. Details of the platform are on the PrestaShop project website.

When the shop also sends data to an ERP, the Peppol step should read from one agreed invoice record, not from the order. Our PrestaShop and ERP integration service page describes how that data flow is usually organised.

Can WooCommerce send Peppol invoices?

Yes, but the answer depends on the plugin set and the hosting environment. WooCommerce stores orders as posts or custom tables, depending on configuration, and extensions hook into order events to create documents. Plugins that promise Peppol output differ in how they handle credit notes, multiple tax rates and buyer identifiers, so their documentation should be checked against your real invoice types. The platform's own documentation is at WooCommerce.

WooCommerce sites are often customised heavily by theme and plugin combinations. Each extra plugin that changes order totals or checkout fields is a risk to invoice accuracy, so every change should be tested against the sending flow.

Where do Peppol webshop integrations usually fail?

Most failures come from data, not from the transmission itself. The network delivers a file reliably, but the file is only as correct as the record it was generated from. The following checks catch most problems early.

  • Seller and buyer identifiers are present, valid and registered in the network.
  • Tax categories and rates map correctly for domestic, intra-EU and export sales.
  • Credit notes reference the original invoice and follow the same numbering rules.
  • Currency, rounding and totals match the webshop's own order records.
  • Failed transmissions are retried and logged, with an alert to a named person.

Another common failure is the missing status feedback loop. If the sender does not record whether the receiving access point accepted the file, the shop can show an invoice as sent when it was never delivered.

Hypothetical examples of webshop Peppol setups

Here are two hypothetical scenarios:

In the first scenario, a shop on one platform sends invoices to business buyers, but the buyer identifier is collected in a free-text field at checkout. Some invoices are rejected because the identifier is malformed. The fix is validation at checkout and a review queue for rejected documents, not a change to the transmission code.

In the second scenario, a shop uses a connector that generates invoice numbers at the moment of sending, while the ERP assigns its own numbers. The two sequences drift apart, and the team spends days matching records. The fix is to choose one authoritative number and make the other system read it.

When should you build the connection yourself?

A ready-made connector is usually the right first step when your order flow is standard and your buyers are few in type. A custom integration makes more sense when invoices depend on contract pricing, several legal entities, or an ERP that holds the authoritative invoice record. The decision should be based on how many systems must agree on the same data.

Whichever route you take, test with real order types before go-live, including credit notes and export orders. Rui Codex offers technical implementation support for webshop and ERP connections, and the work is documented on our integrations service page.

Sources

Frequently Asked Questions

Is a PDF invoice enough for Peppol?

No, a Peppol invoice must be a structured file that travels through the Peppol network between access points. A PDF can be attached as a supporting visual copy, but the receiver's system depends on the structured fields. Sending only a PDF by email does not produce a Peppol delivery.

Do I need a separate access point for each webshop?

Not necessarily. One access point service can often serve several shops or systems if it is configured for each sender. The key question is who manages the participant registration and how failed transmissions are reported.

Can a webshop send Peppol invoices without an ERP?

Yes, a webshop can send Peppol invoices directly if its invoice data is complete and consistent. An ERP becomes important when invoices, stock and accounting must share one authoritative record. Without it, reconciliation work usually grows as order volume grows.

How long does a Peppol webshop integration take to build?

The timeline depends on the platform, the number of invoice types and the state of existing data. A standard connector with clean data is quicker than a custom integration spanning several systems. A scoping step that lists every invoice type and tax case gives the most reliable estimate.

Conclusion

Sending Peppol invoices from a webshop is a data mapping and transmission task, and the platform is only one part of it. Magento, PrestaShop and WooCommerce each need a connector or integration layer that reads one authoritative invoice record and delivers a valid structured file. Test credit notes, tax cases and buyer identifiers before go-live, and keep a clear log of every transmission. If you want an assessment of your webshop setup, email info@ruicodex.com or request a project consultation at https://ruicodex.com/Contact. You can also review our delivered work at https://ruicodex.com/CaseStudies.

Tags: Peppol invoicing webshop integration Magento PrestaShop WooCommerce API Integration System Integration Belgium Workflow Automation

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