Solution overview
More and more invoices in Europe arrive as structured data instead of a PDF. Italy has run business invoices through FatturaPA for years, and since January 2025 every business in Germany must be able to receive an e-invoice. For a developer, that means a stack of XML formats that all describe the same thing: the European standard for an invoice, EN 16931.
In this post, I show you what Pleaxy now does with those formats, in both directions. Pleaxy reads the e-invoices your suppliers send, checks them, and then matches them like any other invoice. For suppliers, it writes the invoices they issue in Pleaxy as XRechnung, Peppol BIS or Factur-X. I also show where the checks stop, and what Pleaxy doesn't do.
One thing up front: Pleaxy reads and writes e-invoice files, but it doesn't exchange them over the Peppol network or a national platform such as Italy's SdI. You send Pleaxy a file and download a file. How it travels between companies is up to you and your access point.
What Pleaxy reads
Pleaxy reads each format into one EN 16931 model, whatever namespace prefixes the sender used. From there, every invoice takes the same path.
| Format | Comes as | What Pleaxy does |
|---|---|---|
| UBL 2.1 | XML: EN 16931, Peppol BIS Billing 3.0, XRechnung | Reads it and checks the EN 16931 and XRechnung rules it covers |
| UN/CEFACT CII | XML: XRechnung, Factur-X / ZUGFeRD | Reads it and checks the same rules |
| Factur-X / ZUGFeRD / XRechnung PDF | A PDF with the invoice's XML inside | Reads the embedded XML instead of the PDF's text, so every figure is exact |
| FatturaPA | XML, one invoice per file | Reads it and checks the same rules |
| cXML | InvoiceDetailRequest | Reads it, as before |
| Facturae, NF-e, NFS-e | Spain's and Brazil's national XML | Reads it into the invoice, with no published rules run on it |
Table 1. The e-invoice formats Pleaxy reads, and what it does with each.
The rules are a published subset of the EN 16931 and XRechnung business rules, tested against CEN's test sets and KoSIT's sample invoices. Pleaxy records the result on the invoice. Then the invoice is checked like every other one: against the purchase order and the contract, and against real metered usage where Pleaxy can read it, such as cloud and AI. A structured invoice doesn't skip those checks. It just makes them more exact.
A buyer sends a supplier's e-invoice to the same endpoint as a JSON one. Only the content type changes:
curl -X POST "https://api.pleaxy.ai/v1/workspaces/$REGION_ID/invoices" \
-H "X-Api-Key: $PLEAXY_API_KEY" \
-H "Content-Type: application/xml" \
--data-binary @invoice-cii.xmlA supplier that sends invoices from its own billing system uses the invoice feed. Its validate twin runs every check without sending anything to the buyer, which is useful while you build the export:
curl -X POST "https://api.pleaxy.ai/v1/workspaces/$REGION_ID/invoices/connections/$CONNECTION_ID/validate" \
-H "X-Api-Key: $PLEAXY_API_KEY" \
-H "Content-Type: application/xml" \
--data-binary @invoice-xrechnung.xmlWhen a document can't be read, the error says why in plain words: a line without a net amount (BT-131), a FatturaPA file with several invoices, or a Factur-X MINIMUM or BASIC WL profile, which carries no invoice lines for Pleaxy to check. XML can be up to 5 MB and may not declare a DOCTYPE, and encrypted PDFs are refused. CII and FatturaPA credit notes go through the supplier feed's credit-note path.
Writing e-invoices
When a supplier issues an invoice in Pleaxy, both the supplier and the buyer can download it as an e-invoice in these formats:
| format | What you get |
|---|---|
xrechnung-ubl | XRechnung 3.0 in UBL |
xrechnung-cii | XRechnung 3.0 in CII |
peppol-bis-billing-3 | Peppol BIS Billing 3.0 (UBL) |
en16931-ubl | EN 16931 in UBL |
factur-x-en16931 | The XML of a Factur-X / ZUGFeRD invoice, EN 16931 profile |
factur-x-pdf | That XML inside a PDF/A-3 of the invoice (not offered when the supplier attached its own PDF) |
Table 2. The formats an invoice issued in Pleaxy downloads in, by their format parameter.
An e-invoice needs a few things a normal invoice doesn't say. The supplier adds its e-invoicing contact, electronic address and the buyer's reference to its company profile, and states the VAT category of each line on the invoice. Pleaxy never picks a VAT category for you. Without one, it only assumes the standard category when the invoice has a single stated rate, and the VAT that results must equal the invoice's tax.
Ask first which formats are ready and what each still needs:
GET /v1/workspaces/$REGION_ID/invoices/$INVOICE_ID/e-invoice
{
"canEdit": false,
"vatSource": "missing",
"gaps": [
{
"severity": "fatal",
"text": "The invoice doesn't say which VAT category each line falls under. The supplier needs to state it.",
"messageId": "eInvoicing.issuing.vatCategoryNeeded"
}
],
"formats": [
{ "format": "xrechnung-ubl", "syntax": "ubl", "ready": false, "problems": [] },
{ "format": "xrechnung-cii", "syntax": "cii", "ready": false, "problems": [] },
{ "format": "peppol-bis-billing-3", "syntax": "ubl", "ready": false, "problems": [] },
…
]
}Once nothing is missing, download the format you need. For the PDF, send Accept: application/pdf:
curl "https://api.pleaxy.ai/v1/workspaces/$REGION_ID/invoices/$INVOICE_ID/e-invoice/document?format=xrechnung-cii" \
-H "X-Api-Key: $PLEAXY_API_KEY" -o invoice.xml
curl "https://api.pleaxy.ai/v1/workspaces/$REGION_ID/invoices/$INVOICE_ID/e-invoice/document?format=factur-x-pdf" \
-H "X-Api-Key: $PLEAXY_API_KEY" -H "Accept: application/pdf" -o invoice.pdfCredit notes work the same way, under credit-notes/{creditNoteId}/e-invoice: a UBL CreditNote or a CII document of type 381 that names the invoice it corrects. When the contract has an early-payment discount, Pleaxy writes it into the invoice's payment terms (BT-20) in XRechnung's coded form:
#SKONTO#TAGE=10#PROZENT=2.00#What runs before a file is served
Pleaxy checks every e-invoice it writes in three steps before you get the file:
- Its own rules, the same subset it checks on the way in. A format is served only when no gap and no fatal finding remains. Otherwise you get
409 E_INVOICE_NOT_READYwith the problems. - The schema: OASIS UBL 2.1 or UN/CEFACT CII D16B. A document that fails it is never served.
- The official validators: KoSIT's validator for the EN 16931 and XRechnung rules, which refuses the file on a fatal or error finding and names the rule, and veraPDF's PDF/A-3b check on the Factur-X PDF.
If the validators can't be reached, the file is served on the checks that already ran. Passing all three is a strong sign, but it isn't a certificate: no check proves an invoice meets every national rule.
The archive
Every e-invoice Pleaxy receives or serves is archived byte for byte, before it is processed or downloaded, and locked so that no one can change or delete it until January 1 of the eleventh year after the invoice year. If the archive can't take the file, Pleaxy refuses the request with a 503 instead of handling an invoice it couldn't keep. The invoice keeps the key to its original, so you can always show what the supplier actually sent.
Good to know
- No network exchange. Pleaxy doesn't send or receive e-invoices over Peppol, SdI or any other platform. You download the file and send it the way your rules require.
- A subset of the rules. Pleaxy checks a published subset of the EN 16931 and XRechnung rules, plus the official validators before serving. Facturae, NF-e and NFS-e are read with no published rules run on them.
- Supplier-issued only. Pleaxy writes e-invoices only for invoices and credit notes the supplier issued in Pleaxy, not for ones a buyer entered.
- The rest of the API: how invoices, the feed and webhooks work is in the API reference.
FAQ
Which e-invoice formats does Pleaxy read?
UBL 2.1 (including Peppol BIS Billing 3.0 and XRechnung), UN/CEFACT CII (XRechnung, Factur-X and ZUGFeRD), Factur-X and ZUGFeRD PDFs through their embedded XML, FatturaPA, cXML, and Spain's Facturae and Brazil's NF-e and NFS-e. Each is read into one EN 16931 model and then checked like any other invoice.
Does Pleaxy send e-invoices over Peppol or Italy's SdI?
No. Pleaxy reads and writes e-invoice files, but it doesn't exchange them over Peppol, SdI or any other network. You send Pleaxy a file and download a file; how it travels between companies is up to you and your access point.
Which formats can a supplier issue from Pleaxy?
XRechnung 3.0 in UBL or CII, Peppol BIS Billing 3.0, EN 16931 in UBL, and Factur-X / ZUGFeRD, as XML or inside a PDF/A-3. Before a file is served it passes Pleaxy's own rules, the schema and, when they can be reached, KoSIT's validator and veraPDF.
About the author
Ryan Brown
Lead developer, Pleaxy platform
Ryan Brown is the lead developer of the Pleaxy platform. He builds the API, the webhooks and the integrations that connect Pleaxy to the accounting and ERP systems finance teams already run.


