E-Invoice Viewer & Checker
Read UBL (Peppol BIS 3, XRechnung), CII and Factur-X / ZUGFeRD PDFs into one EN 16931 JSON, pre-validate business rules, and create UBL or CII from JSON.
Result
Press “Run” to see the result.
action=parse (or validate) takes an XML invoice (xml, a file or a raw body) or a Factur-X / ZUGFeRD 2.x PDF (the embedded factur-x.xml / zugferd-invoice.xml is extracted). UBL 2.1 Invoice / CreditNote (Peppol BIS Billing 3.0, XRechnung UBL, plain EN 16931) and UN/CEFACT CII (Factur-X / ZUGFeRD profiles MINIMUM to EXTENDED, XRechnung CII) are normalised to one JSON: number, dates, type code, currencies, references, seller / buyer / payee / tax representative (VAT ID, legal ID, electronic address, address, contact), delivery, payment means (IBAN, BIC, card, mandate), document allowances and charges, VAT breakdown, totals and lines (quantity, unit, price, item identifiers, classification, VAT category).
The validation block is a pre-validation: our own JavaScript implementation of the main EN 16931 business rules — cardinality rules BR-01…BR-65, the calculation rules BR-CO-10…BR-CO-16 (line sum, allowances, charges, totals, VAT total, amount due), VAT category rules for S, Z, E, AE, K, G, O, L, M (taxable amount and tax per rate, exemption reasons, VAT identifiers), BR-DEC decimals — plus Peppol (PEPPOL-EN16931-R001, R003, R010, R020, R120…) and XRechnung (BR-DE-1…BR-DE-17) profile rules, chosen from the customization ID. It does not run the XSD or the official Schematron (EUPL): confirm with the official validator before going live.
action=create builds UBL (syntax=ubl, profile peppol by default, xrechnung or en16931) or CII (syntax=cii, Factur-X EN 16931 / XRechnung) from the same JSON; missing line nets, VAT breakdown and totals are calculated, the result is re-parsed and validated. Send a pdf with syntax=cii to embed factur-x.xml into it (associated file + XMP metadata; the PDF itself is not converted to PDF/A-3).
Use this in your code
curl -X POST "https://apibox.io.vn/v1/eu-einvoice" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"create","syntax":"ubl","profile":"peppol","invoice":{"number":"INV-2026-0042","issue_date":"2026-11-11","due_date":"2026-12-11","currency":"EUR","buyer_reference":"PO-778","seller":{"name":"Saigon Software JSC","vat_id":"VN0312345678","electronic_address":{"id":"0312345678","scheme":"9901"},"address":{"line1":"12 Nguyen Hue","city":"Ho Chi Minh City","postcode":"700000","country":"VN"}},"buyer":{"name":"Brussels Retail SA","vat_id":"BE0123456749","electronic_address":{"id":"0123456749","scheme":"0208"},"address":{"line1":"Rue Neuve 1","city":"Brussels","postcode":"1000","country":"BE"}},"payment":{"means_code":"58","accounts":[{"iban":"BE71096123456769"}]},"lines":[{"quantity":10,"unit":"HUR","price":{"net":45},"item":{"name":"Software development","vat_category":"AE","vat_rate":0}}]}}'const res = await fetch('https://apibox.io.vn/v1/eu-einvoice', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"action": "create",
"syntax": "ubl",
"profile": "peppol",
"invoice": {
"number": "INV-2026-0042",
"issue_date": "2026-11-11",
"due_date": "2026-12-11",
"currency": "EUR",
"buyer_reference": "PO-778",
"seller": {
"name": "Saigon Software JSC",
"vat_id": "VN0312345678",
"electronic_address": {
"id": "0312345678",
"scheme": "9901"
},
"address": {
"line1": "12 Nguyen Hue",
"city": "Ho Chi Minh City",
"postcode": "700000",
"country": "VN"
}
},
"buyer": {
"name": "Brussels Retail SA",
"vat_id": "BE0123456749",
"electronic_address": {
"id": "0123456749",
"scheme": "0208"
},
"address": {
"line1": "Rue Neuve 1",
"city": "Brussels",
"postcode": "1000",
"country": "BE"
}
},
"payment": {
"means_code": "58",
"accounts": [
{
"iban": "BE71096123456769"
}
]
},
"lines": [
{
"quantity": 10,
"unit": "HUR",
"price": {
"net": 45
},
"item": {
"name": "Software development",
"vat_category": "AE",
"vat_rate": 0
}
}
]
}
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/eu-einvoice",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"action": "create", "syntax": "ubl", "profile": "peppol", "invoice": {"number": "INV-2026-0042", "issue_date": "2026-11-11", "due_date": "2026-12-11", "currency": "EUR", "buyer_reference": "PO-778", "seller": {"name": "Saigon Software JSC", "vat_id": "VN0312345678", "electronic_address": {"id": "0312345678", "scheme": "9901"}, "address": {"line1": "12 Nguyen Hue", "city": "Ho Chi Minh City", "postcode": "700000", "country": "VN"}}, "buyer": {"name": "Brussels Retail SA", "vat_id": "BE0123456749", "electronic_address": {"id": "0123456749", "scheme": "0208"}, "address": {"line1": "Rue Neuve 1", "city": "Brussels", "postcode": "1000", "country": "BE"}}, "payment": {"means_code": "58", "accounts": [{"iban": "BE71096123456769"}]}, "lines": [{"quantity": 10, "unit": "HUR", "price": {"net": 45}, "item": {"name": "Software development", "vat_category": "AE", "vat_rate": 0}}]}},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/eu-einvoice');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"action":"create","syntax":"ubl","profile":"peppol","invoice":{"number":"INV-2026-0042","issue_date":"2026-11-11","due_date":"2026-12-11","currency":"EUR","buyer_reference":"PO-778","seller":{"name":"Saigon Software JSC","vat_id":"VN0312345678","electronic_address":{"id":"0312345678","scheme":"9901"},"address":{"line1":"12 Nguyen Hue","city":"Ho Chi Minh City","postcode":"700000","country":"VN"}},"buyer":{"name":"Brussels Retail SA","vat_id":"BE0123456749","electronic_address":{"id":"0123456749","scheme":"0208"},"address":{"line1":"Rue Neuve 1","city":"Brussels","postcode":"1000","country":"BE"}},"payment":{"means_code":"58","accounts":[{"iban":"BE71096123456769"}]},"lines":[{"quantity":10,"unit":"HUR","price":{"net":45},"item":{"name":"Software development","vat_category":"AE","vat_rate":0}}]}}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Is the validation official?
No. It is a pre-validation written from the public EN 16931 rule descriptions, labelled as such. Use the official validator (or your Peppol access point) for the final check.
Can it send invoices on the Peppol network?
No. It creates and checks the files; sending needs a certified Peppol access point.
Which countries does this help with?
Belgium (Peppol B2B from 2026), France (Factur-X / UBL / CII via PDPs from September 2026), Germany (XRechnung / ZUGFeRD) and every Peppol country.