Playground
Break an invoice. Fix it. Generate the XML.
This page runs @attestwire/en16931 0.5.0
— the same MIT engine behind the hosted API — compiled for the browser.
Your invoice is validated on this machine. There is no API key, no
upload and no request: close the tab and nothing was sent anywhere.
The sample is one field short of conformant
It is a complete XRechnung invoice with buyerReference
removed, which is the field BR-DE-15 exists to
require. Press Validate to see what the engine says,
Fix it to put the field back, then
Generate XML.
The buttons need JavaScript, because the engine runs here rather than
on a server. Everything below is what the build got when it ran this
exact invoice.
Install the library
The output choice sets the invoice's own profile field
before generating — that field is what selects the rule sets and the
specification identifier.
valid: false — 1 error.
-
BR-DE-15BT-10XRechnung requires a buyer reference (BT-10). For German public-sector buyers this is the Leitweg-ID; business buyers may supply any reference, but the field must be present.
Fix: Ask your client for their Leitweg-ID (public sector) or an order/customer reference, and set buyerReference.
valid: true here means the document data passed every rule
Attestwire implements. It is not a promise that a receiver, an
access point or a national overlay will accept the document.
Read the exact limits →