Germany EN 16931 · BR-DE-15
How to Fix XRechnung Error BR-DE-15 (BT-10 BuyerReference)
German XRechnung 3.0 requires element BT-10 (<cbc:BuyerReference> in UBL or <ram:BuyerReference> in CII). For public-sector buyers this is the Leitweg-ID; for private B2B buyers it can be a PO or cost-center reference.
Exact Fix
Populate top-level "buyerReference" in your Invora JSON payload (or Stripe metadata.leitweg_id / metadata.buyer_reference).
Failing Payload
{
"format": "DE_XRECHNUNG_UBL",
"invoiceNumber": "INV-2027-001"
// Missing buyerReference -> triggers BR-DE-15
}Fixed Payload
{
"format": "DE_XRECHNUNG_UBL",
"invoiceNumber": "INV-2027-001",
"buyerReference": "991-12345-67"
}Verify Fix via Free Preflight API
curl -sS -X POST https://api.invora.dev/v1/einvoice/preflight -H "Content-Type: application/json" -d '{"format":"DE_XRECHNUNG_UBL","invoiceNumber":"INV-2027-001","buyerReference":"991-12345-67"}'What if my private German B2B customer does not have a Leitweg-ID?
Pass their purchase order number, customer ID, or "B2B" in buyerReference to satisfy BR-DE-15.