E-invoicing
Emboss can create a UBL XML e-invoice next to each invoice and credit note PDF. Pick Peppol BIS Billing 3.0 for most EU business buyers, or XRechnung 3.0...
E-invoicing#
Emboss can create a UBL XML e-invoice next to each invoice and credit note PDF. Pick Peppol BIS Billing 3.0 for most EU business buyers, or XRechnung 3.0 for German public bodies. E-invoicing is free, off by default, and built on your own server. Nothing is sent anywhere.
What you get#
- An XML file next to the PDF of each invoice and receipt.
- A credit note XML for each refund, with its own number and a reference to the invoice.
- Optional VAT number and Peppol endpoint ID fields at checkout, plus a Leitweg-ID field for XRechnung.
- A tax mapping table that matches each WooCommerce tax rate to a VAT category.
We checked sample files in both formats with the KoSIT validator (version 1.6.3, with Peppol BIS 3.0.21 and XRechnung 3.0.2 rules). Domestic sales, coupons with shipping and fees, mixed 19% and 7% tax, reverse charge and a partial refund all passed with no errors and no warnings. The validator isn’t part of the plugin.
Set it up#
Go to WooCommerce > Settings > Invoices > E-invoicing.
1. Turn it on and pick a format#
- Tick Enable e-invoicing. This also adds the VAT number field to checkout.
- Pick the Format: Peppol BIS Billing 3.0 or XRechnung 3.0.
- Leave Attach to emails on if every email that carries the PDF should carry the XML too.
2. Fill in the seller#
Your address comes from WooCommerce > Settings > General. The rest goes here:
| Field | What to enter |
|---|---|
| Legal name | Your registered company name. Empty uses the company name from the Branding tab. |
| VAT number | With the country code, for example DE123456789 |
| Company registration number | Optional. Your trade register or enterprise number. |
| Endpoint scheme | The scheme of your Peppol ID, shown on your Peppol registration, for example 0208 Belgium enterprise number or 9930 Germany VAT number |
| Endpoint ID | Your Peppol ID without the scheme. Empty uses your VAT number. |
| Contact name, phone and email | Who the buyer can contact about the invoice |
The endpoint scheme is the Peppol Electronic Address Scheme (EAS). The list covers the common EU schemes, GLN, DUNS, and EM for an email address (XRechnung only). If you’re not on Peppol yet, your access point or accountant can tell you which scheme and ID you were registered with.
XRechnung needs the contact phone and email. Without both, Emboss doesn’t create the XRechnung XML, writes the order to the WooCommerce log, and the E-invoicing screen names the field to fill in.
3. Payment details#
| Field | Default |
|---|---|
| Payment means | SEPA credit transfer (58). Also Credit transfer (30) and Bank card (48). Paid orders are marked as prepaid. |
| IBAN and BIC | Empty uses the account from your WooCommerce bank transfer settings |
| Payment due after (days) | 14 |
4. Map your tax rates#
The Tax mapping table lists every WooCommerce tax rate. For each one, pick a VAT category and, where it applies, an exemption reason.
| Code | Category |
|---|---|
| S | Standard rate |
| Z | Zero rated goods |
| E | Exempt from tax |
| AE | Reverse charge |
| K | Intra-community supply |
| G | Export outside the EU |
| O | Not subject to VAT |
Rates you leave on automatic use standard rate when they charge tax and zero rated when they don’t. Untaxed sales to EU businesses default to reverse charge.
Which orders get an e-invoice#
By default, only business orders. A business order has a buyer VAT number or Peppol ID.
Create for all orders makes an XML for every order. With Peppol, XML for an order without a buyer Peppol ID is for your records or for manual upload. It can’t be sent over the Peppol network, because Peppol needs the buyer’s endpoint to deliver it.
Buyer details at checkout#
While e-invoicing is on, the Block and classic checkout show two optional fields:
- VAT number, entered with its country code, for example
BE0123456749. - Peppol endpoint ID.
XRechnung adds a third: Buyer reference (Leitweg-ID), the routing ID German public bodies give their suppliers.
You can add or fix all three on the order screen. Emboss also reads VAT numbers that common EU VAT plugins already save, and for common EU countries it works out the Peppol ID from the VAT number. When a Peppol buyer leaves the buyer reference empty, Emboss uses the order number.
Where to download the XML#
- Download e-invoice (XML) on the order screen and in the orders list.
- My Account > Orders, for the customer.
- The credit note list, next to each credit note.
- The Download PDFs (ZIP) bulk action includes the XML.
- The REST API:
documents.ublandcredit_notes[].ubl_url. See REST API.
Sending over Peppol#
Emboss creates the XML. It doesn’t connect to the Peppol network. To send invoices over Peppol, upload the XML to your Peppol access point, the service that delivers e-invoices on your behalf.
Subscriptions renewals#
WooCommerce Subscriptions renewal orders keep the buyer’s VAT number and Peppol ID, so each renewal gets an e-invoice too.
Uninstalling#
Deleting Emboss with Delete everything removes the e-invoicing settings and the XML files. It keeps the buyer VAT number, Peppol endpoint ID and Leitweg-ID on your orders. They’re part of each order’s billing and tax record, and other VAT plugins may read the same fields.
For developers#
| Hook | What it does |
|---|---|
epdi_einvoice_applies (filter) | Whether an order gets an e-invoice |
epdi_einvoice_tax_category (filter) | The VAT category for a tax rate: $category, $key, $percent, $order |
epdi_einvoice_vat_meta_keys (filter) | Order meta keys Emboss reads a buyer VAT number from. Add your VAT plugin’s key here. |
epdi_einvoice_generated (action) | Fires after an XML is written: $path, $order, $refund (null for invoices), $profile |
add_filter( 'epdi_einvoice_vat_meta_keys', function ( $keys ) {
$keys[] = '_my_vat_plugin_number';
return $keys;
} );