Peppol UBL to JSON Parser
Pricing
from $5.00 / 1,000 document processeds
Peppol UBL to JSON Parser
Parse Peppol BIS Billing UBL invoices and credit notes into stable JSON with document-level technical conformance findings. Transport is not included.
Pricing
from $5.00 / 1,000 document processeds
Rating
0.0
(0)
Developer
Kamer Ozkan
Maintained by CommunityActor stats
0
Bookmarked
3
Total users
0
Monthly active users
6 days ago
Last modified
Categories
Features
Share
Turn Peppol BIS Billing UBL invoices and credit notes into clean JSON, checked against the official Peppol BIS Billing 3.0.21 and EN 16931 rules in the same run.
Who it is for
- Accounts payable and ERP teams that receive Peppol invoices and want seller, buyer, lines, VAT and payment data as JSON instead of UBL XML.
- Developers of e-invoicing integrations who need one stable JSON shape for Invoice and CreditNote documents, with every field traced back to its EN 16931 business term (BT-1, BT-27, ...).
- Finance and compliance teams that want a clear ACCEPTED or REJECTED answer with rule IDs before a document is booked or sent.
What it does
- Accepts UBL 2.1 Invoice and CreditNote XML: file upload, HTTPS URL, inline XML, Base64 or a key-value store record. Up to 100 documents per run.
- Detects CustomizationID, ProfileID, document type and a SHA-256 digest of the source.
- Runs XSD, CEN EN 16931 (1.3.16) and Peppol BIS Billing document rules through the pinned KoSIT validator.
- Uses Peppol BIS Billing
3.0.21, the ruleset mandatory since 17 August 2026, from the pinned KoSITrelease-3.0.21configuration. - Does not execute the retired
3.0.20-hotfix: asking for it returns a freeRULESET_NOT_ACTIVErow. - Normalizes the full declared UBL binding with business-term trace entries.
- Can unwrap exactly one business document from an SBDH envelope when
unwrapSbdhis enabled. The result then reportsUNWRAPPED_NOT_VALIDATED: the SBDH header is not silently treated as validated. - Can store the KoSIT XML and XHTML reports as opt-in key-value store records.
Input settings
| Parameter | Type | Default | Description |
|---|---|---|---|
invoiceFiles | array | - | Upload Peppol BIS Billing UBL Invoice or CreditNote XML files (up to 100 per run). |
documents | array | 1 sample | API documents list; each item supplies one of url, xml, base64, or keyValueStoreKey, plus optional documentId and fileName. |
sourceKeyValueStoreId | string | - | Key-value store ID when reading XML from keyValueStoreKey. |
documentType | string | AUTO | Auto-detect Invoice/CreditNote or require INVOICE or CREDIT_NOTE. |
ruleset | string | LATEST_SUPPORTED | LATEST_SUPPORTED (resolves to 3.0.21), 3.0.21, or retired 3.0.20-hotfix (returns free RULESET_NOT_ACTIVE row). |
unwrapSbdh | boolean | true | Unwrap a supported Standard Business Document Header before parsing (UNWRAPPED_NOT_VALIDATED). |
allowPartialNormalization | boolean | true | Return safely mapped fields when full semantic coverage cannot be proven. |
storeTechnicalReports | boolean | false | Save KoSIT XML and XHTML technical reports in the run key-value store. |
maxFindingsPerDocument | integer | 100 | Maximum validation findings returned per document (1 to 500). |
How to use it
- Open the Input tab and upload your UBL XML files, or add documents under API documents
(each item has exactly one of
url,xml,base64orkeyValueStoreKey). - Leave Peppol ruleset on
Latest supported(resolves to 3.0.21) unless you need to pin it. - Click Start. Each document becomes one row in the dataset; export it as JSON, CSV or Excel.
Example input:
{"documents": [{"documentId": "official-peppol-valid-sample","fileName": "base-example.xml","url": "https://raw.githubusercontent.com/itplr-kosit/validator-configuration-bis/release-3.0.21/test-files/good/ubl/base-example.xml"}],"ruleset": "LATEST_SUPPORTED","maxFindingsPerDocument": 100}
Output
One row per document. Shortened example from a real run of the input above:
{"itemId": "official-peppol-valid-sample","fileName": "base-example.xml","processingStatus": "SUCCEEDED","conformanceStatus": "ACCEPTED","billable": true,"source": {"syntax": "UBL_INVOICE","sha256": "1b7cc3ff1834c8963f2c93f30f171b58002cbf0b2c52dc8765e7e83aebb9f7c9","standard": { "family": "PEPPOL_BIS_BILLING", "version": "3.0.21", "profile": "PEPPOL_BILLING_01" }},"normalizationStatus": "COMPLETE","report": {"overall": "CONFORMANT","counts": { "error": 0, "warning": 0, "information": 0 },"findings": []},"invoice": {"document": { "invoiceNumber": "Snippet1", "issueDate": "2017-11-13", "dueDate": "2017-12-01", "invoiceCurrencyCode": "EUR" },"parties": {"seller": { "name": "SupplierOfficialName Ltd", "vatIdentifier": "GB1232434", "electronicAddress": { "value": "9482348239847239874", "schemeId": "0088" } },"buyer": { "name": "Buyer Official Name", "vatIdentifier": "SE4598375937" }},"lines": [{ "id": "1", "quantity": { "value": "7", "unitCode": "DAY" }, "netAmount": { "amount": "2800", "currency": "EUR" }, "vat": { "categoryCode": "S", "rate": "25" } }],"vatBreakdowns": [ { "taxableAmount": { "amount": "1325", "currency": "EUR" }, "taxAmount": { "amount": "331.25", "currency": "EUR" }, "categoryCode": "S", "rate": "25" } ],"trace": [ { "normalizedPath": "/document/invoiceNumber", "businessTermIds": ["BT-1"], "sourceXPath": "/ubl:Invoice/cbc:ID" } ]}}
Main fields:
| Field | Meaning |
|---|---|
conformanceStatus | ACCEPTED or REJECTED against XSD, EN 16931 and Peppol BIS rules |
report.findings | The failed rules of the document (up to maxFindingsPerDocument); report.counts gives the totals |
report.rulesetSnapshot | Exact ruleset versions and SHA-256 digests used for this row |
invoice | Normalized EN 16931 invoice: document, references, parties, lines, allowances and charges, VAT breakdown, payment instructions |
invoice.trace | For each JSON field: the business term (BT-xx) and the source XPath |
invoice.unmapped | Source elements that could not be mapped, so nothing is dropped silently |
Pricing
Pay per event:
| Event | Price |
|---|---|
| Document processed (one document that produced a result) | $0.005 |
| Actor start (per GB of memory, once per run) | $0.00005 |
Example: 1,000 invoices in one run cost 1,000 x $0.005 = $5.00, plus a few hundredths of a cent for
the start. Rows for the retired 3.0.20-hotfix ruleset are free.
Integrations and API
Run it from your own code with the Apify API or client libraries (Python, JavaScript), or connect it
to Make, Zapier or n8n. Send documents as xml or base64 items in documents, then read the
dataset items of the run. The API tab of this page shows ready-made code.
Use with n8n & Make
Add the Apify Run Actor node in n8n or Make, choose kamerozkan/peppol-ubl-to-json-parser, pass
documents (inline XML, Base64, or HTTPS URLs), and read the resulting dataset items directly into
your ERP, accounting webhook, or Google Sheets workflow.
Use with AI Agents (Apify MCP)
Connect this Actor to Claude, ChatGPT, or custom AI agents via the Apify Model Context Protocol (MCP) server. With small default inputs, a single Peppol UBL invoice is validated and normalized to EN 16931 JSON in seconds, ready for automated AP triage or exception handling.
What it does not do
Peppol here means Peppol BIS Billing document rules only. This Actor does not provide an Access
Point, SMP or SML participant discovery, AS4 transport, invoice sending or receiving, delivery
receipts, or Peppol certification. It does not make legal, tax, authenticity, signature or recipient
acceptance decisions.
FAQ
Which Peppol version is used?
Peppol BIS Billing 3.0.21 with CEN EN 16931 1.3.16. Every row lists the exact versions and digests in
report.rulesetSnapshot.
Does it accept credit notes?
Yes. documentType AUTO detects Invoice and CreditNote; set INVOICE or CREDIT_NOTE to require one.
What happens with an invalid invoice?
You still get a row: conformanceStatus is REJECTED and report.findings lists the failed rules
(for example BR-02), so you can fix the document at the source.
Can I parse XRechnung or ZUGFeRD? This Actor reads Peppol UBL. For XRechnung and ZUGFeRD or Factur-X documents, see the other e-invoice parsers from the same author.
Is my invoice data stored?
Only in your own run storage. Technical reports are stored only when you turn on
storeTechnicalReports.
Support and feedback
- Found a bug or missing a field? Open an issue on the Issues tab of this Actor. We reply within 48 hours and ship most fixes within a few days.
- Have an idea for a feature? Issues are the fastest way to get it built.
- If the Actor saves you time, a short review on this page helps other users find it.