Belgium E-Invoice Validator: Peppol BIS 3.0
Pricing
from $2.60 / 1,000 apify-default-dataset-items
Belgium E-Invoice Validator: Peppol BIS 3.0
Validate Belgian B2B e-invoices in bulk: Peppol BIS Billing 3.0 UBL invoices and credit notes checked against EN 16931 and the OpenPeppol rules. Also XRechnung and Factur-X. Get a verdict, kind, profile and findings with rule ID and XPath location per invoice.
Pricing
from $2.60 / 1,000 apify-default-dataset-items
Rating
0.0
(0)
Developer
bite-sized-insights
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Validate Belgian e-invoices in bulk - Peppol BIS Billing 3.0 (UBL invoices and credit notes) against EN 16931 and the OpenPeppol rules, plus XRechnung, ZUGFeRD and Factur-X, with every error and warning listed by rule, stage and location.
Belgium's B2B e-invoicing mandate has been in force since 1 January 2026: domestic invoices between VAT-registered businesses are structured documents exchanged over the Peppol network, in the Peppol BIS Billing 3.0 format (UBL 2.1, based on EN 16931). Send invoices as XML text, base64 XML or a base64 PDF with an embedded invoice and get one result per invoice: valid or not, the syntax, whether it is an invoice or a credit note, the Peppol ProfileID, and the full list of findings from the XML Schema check, the EN 16931 rules and the OpenPeppol rules. Use it to test the invoices your billing system generates before they go to your Peppol access point, or to check supplier invoices before booking them.
No login required. No cookies needed. Pay-per-event pricing.
Why Choose This Actor?
"Know whether a Peppol invoice will pass before your access point or your customer's system rejects it"
Our E-Invoice Validator provides:
- Peppol BIS Billing 3.0: UBL invoices and credit notes with the specification identifier
urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0, checked against EN 16931 and the OpenPeppol rules (release 3.0.22), which is what Belgian B2B invoices use - XRechnung, ZUGFeRD, Factur-X: UBL Invoice, UBL CreditNote and CII XML, plus PDFs with an embedded invoice, for invoices from German and French partners
- Peppol BIS Billing 3.0: UBL invoices and credit notes checked against EN 16931 and the OpenPeppol rules (release 3.0.22), including the national DE, DK, GR, IS, IT, NL, NO and SE rules the BIS carries
- The Reference Rules: XML Schema, then the EN 16931 rules (1.3.16) and the OpenPeppol Peppol BIS Billing 3.0 rules (3.0.22); XRechnung invoices use the official KoSIT validator configuration (XRechnung 3.0.2)
- Findings You Can Act On: every error and warning with rule id (
BR-CO-16,PEPPOL-EN16931-R003, ...), stage (xsd,en16931,peppol,xrechnung), severity, XPath location and message - Profile Detection: for PDFs the ZUGFeRD / Factur-X profile and the attachment the XML was read from
- Bad Invoices Never Stop the Run: a file that is not XML, not well-formed or has no embedded XML comes back with
valid: falseand areason - Safe by Design: nothing in a PDF is executed or rendered and XML with a DOCTYPE is refused, so there is no entity expansion or network access
- Cost-Effective: Pay only for the invoices you validate:
$4.00 / 1k invoices - No Third-Party Dependency: runs on bundled rules, with no upstream service to fail or rate-limit you
Quick Start
{"invoices": [{ "name": "skeleton.xml", "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ubl:Invoice xmlns:ubl=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"/>" }]}
This empty skeleton runs as is and comes back with valid: false and the reason that no specification identifier (BT-24) was found. Replace it with your own invoices; the input prefilled in the Console is a complete, valid Peppol BIS Billing 3.0 invoice between two Belgian companies (fictitious parties). For a PDF with an embedded invoice pass its base64 as value (see the table below).
Usage Examples
Each entry of invoices is one of:
| Entry | Notes |
|---|---|
| Invoice XML as text | Starts with < |
| Base64 of the invoice XML | |
| Base64 of a PDF | Detected by the %PDF- header. The XML is read from the attachment factur-x.xml, zugferd-invoice.xml or xrechnung.xml. Encrypted PDFs are not supported. Peppol invoices are XML documents; a PDF only helps when it carries one of these attachments |
{"value": "...", "name": "invoice-001.pdf"} | Wraps any of the above; name is an optional label copied to the result |
"https://example.com/invoice.xml" | A URL (text starting with http:// or https://): the actor fetches the XML or PDF itself |
{"url": "https://example.com/invoice.pdf", "name": "invoice-001.pdf"} | The same as an object; name is an optional label copied to the result |
Whitespace in base64 is ignored. For documents that are online, pass their URL instead of the content: the actor downloads the XML or PDF itself (at most 5 MB per document) and validates what it received. There is no key-value store input, so for local files read them yourself and pass their content (base64 for binary PDFs).
URLs and content can be mixed in one run:
{"invoices": ["https://example.com/invoices/2026-001.xml",{ "url": "https://example.com/invoices/2026-002.pdf", "name": "2026-002.pdf" }]}
Only public http and https URLs on the default ports (80 and 443) are fetched, with up to 5 redirects. Addresses on private or internal networks (loopback, private ranges, link-local and cloud metadata addresses) are blocked, also after a redirect, and no cookies, logins or credentials are sent, so documents behind a login cannot be fetched: pass their content instead. A URL that cannot be fetched (HTTP error, timeout, larger than 5 MB, not XML or PDF, blocked address) gets no record and is not charged; see Pricing.
Output Example
Each invoice that was validated produces one dataset record (long values are abbreviated with … here). The example is a Belgian invoice without a buyer reference or order reference, which the Peppol rules require.
{"index": 1,"name": "2026-0042.xml","invoice": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Invoice xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\" xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:Co…","valid": false,"syntax": "ubl","kind": "invoice","source": "xml","profile": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0","customization_id": "urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0","scenario": "Peppol BIS Billing 3.0 (UBL Invoice)","embedded_filename": null,"error_count": 1,"warning_count": 0,"errors": [{"stage": "peppol","rule": "PEPPOL-EN16931-R003","level": "fatal","location": "/*:Invoice[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:Invoice-2'][1]","message": "[PEPPOL-EN16931-R003]-A buyer reference or purchase order reference MUST be provided."}],"warnings": [],"findings_truncated": false,"reason": "1 validation error(s), first: [PEPPOL-EN16931-R003]-A buyer reference or purchase order reference MUST be provided."}
An invoice that is not a readable e-invoice (not XML, not well-formed, no embedded XML, unsupported profile) is validated like any other: valid: false, no findings and the cause in reason. An entry that cannot be validated at all (not text, missing value, over 5 MB, or failed in the rule engine) gets no record and is not charged; see Pricing.
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
invoices | array | Yes | 1-1,000 invoices: XML text, base64 XML, base64 PDF, or {value, name?} objects. At most 5 MB per invoice (after base64 decoding). Each entry can also be a URL ("https://..." or {url, name?}) |
Output Fields
| Field | Type | Description |
|---|---|---|
index | integer | Position of the invoice in the input, starting at 1 |
name | null/string | The name given with the invoice, otherwise null |
url | null/string | The URL the invoice was fetched from, null when the invoice was given as content |
invoice | string | The start of the invoice as provided, cut to 100 characters. For a URL entry: the start of the URL |
valid | boolean | True when there are no errors. Warnings do not make an invoice invalid |
syntax | null/string | ubl, cii, ksef (Polish KSeF FA(3)), fatturapa (Italian FatturaPA) or facturae (Spanish Facturae); null when the document was not recognized |
kind | null/string | invoice, credit_note or corrective_invoice (Polish or Spanish correction invoice) |
source | null/string | xml (XML text or base64 XML) or pdf |
profile | null/string | Peppol BIS invoices: the ProfileID (BT-23), e.g. urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 (the Peppol business process). PDFs: the ZUGFeRD / Factur-X profile, null when unknown |
customization_id | null/string | The specification identifier (BT-24); for KSeF the form code (FA (3) 1-0E), for FatturaPA the versione (FPA12) |
scenario | null/string | The validation scenario that was applied |
embedded_filename | null/string | PDFs only: the attachment the XML was read from |
error_count, warning_count | integer | Number of entries in errors and warnings |
errors, warnings | array | Findings {stage, rule, level, location, message}; at most 100 each |
findings_truncated | boolean | True when a findings list was cut at 100 entries |
reason | null/string | Why the invoice is not valid: the first error, or the cause when no verdict was possible |
Findings
stage is xsd (XML Schema), en16931, xrechnung, ciusro, hrcius, peppol (the OpenPeppol rules) or ksef (the few KSeF checks beyond the schema). rule is the rule id, and null for schema errors. level is the effective severity: fatal and error findings go to errors, warning and information to warnings, following the KoSIT scenario configuration (for example BR-CL-21 and BR-CL-23 are warnings and UBL-CR-646 is an error in the XRechnung UBL invoice scenario). A failed XML Schema check stops the run for that invoice, since the Schematron rules only run on schema-valid documents.
What is checked, and what is not
The scenario is chosen from the document type and the exact specification identifier. urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 (UBL Invoice or UBL CreditNote) gives the scenario Peppol BIS Billing 3.0 (UBL Invoice) or (UBL CreditNote): the XML Schema, the EN 16931 business rules, then the OpenPeppol rules of release 3.0.22 (identifiers, endpoint and code-list rules such as PEPPOL-EN16931-R001 to R130 and -CL*). The ProfileID (business process) is checked by the Peppol rules themselves: urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 and urn:peppol:bis:billing_with_response are approved, anything else is a finding. The BIS also carries national rules for DE, DK, GR, IS, IT, NL, NO and SE; they apply by the countries of the parties, so a domestic Belgian invoice is checked by the common Peppol rules only: the BIS has no additional Belgian rules, and this actor adds none.
Not checked: delivery over the Peppol network, SMP and participant lookups, whether the endpoint identifiers of buyer and seller are registered, the access point's own acceptance rules and the receiving system's business rules, Belgian enterprise and VAT number check digits, structured payment references (+++...+++), tax authority checks and signatures. The legacy Belgian UBL.BE profile and other Peppol identifiers (extensions, self-billing) have no scenario and come back with valid: false and a reason; they are never silently checked against plain EN 16931. Peppol BIS has no CII binding, so a Peppol identifier on a CII document is not validated either. An XRechnung invoice (its own identifier) is checked against the XRechnung rules, and ZUGFeRD / Factur-X BASIC, EXTENDED and EN 16931 invoices against the plain EN 16931 rules; MINIMUM and BASIC WL, unknown XRechnung versions and invoices without a specification identifier are not validated (valid: false with a reason, no findings). The invoice is checked, not archived, sent or signed.
Pricing
| Cost | Description |
|---|---|
| $0.0001 / start | Charged per actor run |
| $4.00 / 1,000 invoices | Charged per invoice validated |
| Description | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|
| Charged per invoice validated | $4.00 / 1,000 invoices | $3.80 / 1,000 invoices | $3.40 / 1,000 invoices | $2.60 / 1,000 invoices |
Gold, Platinum and Diamond share one price. The price depends on your Apify subscription plan and applies automatically.
Every record in the dataset is charged, valid or not. Entries that were never validated are not charged: an entry that is not text or has no value, an invoice over 5 MB and an invoice the validation engine failed on are left out of the dataset and listed in the FAILED_RECORDS record of the run's key-value store (with the start of the input, so the record stays small). Retrying them will not change the outcome, so the run does not fail for them. Entries that could not be checked for a temporary reason are also not charged, and the run ends with a message so you can retry them. The same applies to a URL that could not be fetched (HTTP error, timeout, larger than 5 MB, neither XML nor PDF, blocked address, too many redirects): it is listed in FAILED_RECORDS with the error code fetch_failed and a short reason, and is not charged.
API Integration
cURL
curl -X POST "https://api.apify.com/v2/acts/bite-sized-insights~bulk-e-invoice-validator/runs?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"invoices": [{"name": "invoice-001.xml", "value": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ubl:Invoice xmlns:ubl=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\"/>"}]}'
Python
import base64from pathlib import Pathfrom apify_client import ApifyClientclient = ApifyClient("YOUR_API_TOKEN")pdf = base64.b64encode(Path("rechnung.pdf").read_bytes()).decode()run = client.actor("bite-sized-insights/bulk-e-invoice-validator").call(run_input={"invoices": [{"name": "rechnung.pdf", "value": pdf}]})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(f"{item['name']}: valid={item['valid']} errors={item['error_count']} profile={item['profile']}")for finding in item["errors"]:print(f" {finding['rule']}: {finding['message']}")
JavaScript
import { ApifyClient } from 'apify-client';import { readFileSync } from 'node:fs';const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });const run = await client.actor('bite-sized-insights/bulk-e-invoice-validator').call({invoices: [{ name: 'invoice-001.xml', value: readFileSync('invoice-001.xml', 'utf8') }],});const { items } = await client.dataset(run.defaultDatasetId).listItems();items.forEach(item => {console.log(`${item.name}: valid=${item.valid} errors=${item.error_count}`);});
Use Cases
- Billing Software Testing: Check the Peppol BIS 3.0 files your system generates against the OpenPeppol rules in CI or before a release
- Mandate Readiness: Batch-check sample invoices of a Belgian business before the first live invoice goes to the Peppol access point
- Accounts Payable: Reject non-compliant supplier invoices before they reach booking or approval
- Accountants and Bookkeepers: Check a client's e-invoices for rule violations before filing them
- Service Providers: Add a validation step with a clear findings list to an invoicing or conversion service
FAQ
Is the verdict the same as the official Peppol validator's?
The rules are the OpenPeppol Peppol BIS Billing 3.0 validation artefacts (release 3.0.22) on top of the same EN 16931 rules (1.3.16) the Peppol configuration uses. They were checked against the OpenPeppol unit tests and all official example invoices. A valid result is a technical pre-flight, not an acceptance by an access point or by the receiver.
Is Belgium's mandate covered?
The format is: Belgian B2B e-invoices are Peppol BIS Billing 3.0 documents, and that is what this actor validates. Whether and when you must issue or may receive an e-invoice, tolerance periods and penalties are legal questions this actor does not answer.
Does it send or look up anything on the Peppol network?
No. There is no delivery, no SMP lookup and no check that a participant identifier is registered. Everything runs offline on bundled rules.
Does it support XRechnung and Factur-X?
Yes, the same way as the general e-invoice validator: XRechnung (UBL and CII, KoSIT configuration 3.0.2) and ZUGFeRD / Factur-X (PDF with embedded XML). An XRechnung invoice sent over Peppol carries its own XRechnung identifier and is validated as XRechnung, never with the Peppol rules.
What are the size limits?
5 MB per invoice after base64 decoding (the XML, or the embedded XML for a PDF). Larger invoices are not validated or charged (see Pricing). One run takes up to 1,000 invoices; the platform also limits the total size of the run input (about 9 MB for an API call), so send PDFs in several runs. Runs are split into backend requests automatically.
What happens to an entry that is not text, has no value or is too large?
It is skipped, with no dataset record and no charge (details under Pricing). The index of the other records still counts the skipped entries.
Which URLs can I pass, and what happens when one cannot be fetched?
Public http:// and https:// URLs (ports 80 and 443, up to 5 redirects, at most 5 MB per document, no login or cookies). The document must be XML or a PDF. Addresses on private or internal networks are blocked for safety. The actor fetches all URLs first and then validates the content, so very slow servers can cost time: a URL that does not fit into the time left of the run counts as not fetched. A URL that cannot be fetched is skipped with no dataset record and no charge, and is listed in FAILED_RECORDS with the error code fetch_failed (the index of the other records still counts it). Run it again once the document is reachable.
What happens to an invoice that is not valid XML?
The run continues. That invoice gets valid: false, no findings and a reason such as "not well-formed XML" or "no embedded invoice XML", and it is counted like any other invoice.
Are the results in the same order as my input?
Yes. The record with index: N belongs to invoice number N of the input.
Is my data stored or shared anywhere?
No. Input is processed for the duration of the run only and results are written to your own private run dataset, same as any other Apify actor.
Free plan
Free-plan users get 5 runs in total. Each free run validates only the first 10 entries of your input (the rest is ignored without an error) and returns at most 10 results. Console test runs have the same cap.
Related Actors
- e-invoice validator - XRechnung, ZUGFeRD and Factur-X; also Peppol BIS Billing 3.0, Polish KSeF FA(3) and Italian FatturaPA.
- bulk email checker - Check deliverability and syntax in bulk.
- email, phone, IBAN and BIC validator - Validate mixed lists in one run.
- check phone numbers in bulk - Normalize to E.164 and detect line types.
Disclaimer
This actor validates invoices against format and rule sets and does not give legal or tax advice, including on Belgium's e-invoicing obligations. A valid result means no rule violation was found by the checks described above; it does not guarantee that a Peppol access point or a recipient's system accepts the invoice. Rules change over time; results reflect the version of the actor you run.
Attribution: the Peppol BIS Billing 3.0 validation rules are published by OpenPeppol AISBL (copyright OpenPeppol AISBL) and are built on the CEN EN 16931 validation artefacts (EUPL-1.2). Not affiliated with, endorsed by or certified by OpenPeppol AISBL. Peppol is a name of OpenPeppol AISBL; it is used here only to describe the format this actor validates. This actor is not a Peppol Access Point or Service Provider and does not send or receive documents over the Peppol network.
Need help? Open an issue on the actor's repository or contact support through Apify Console.