How to Fix KoSIT Error BR-55: Missing Preceding Invoice Reference (BT-25)
KoSIT 1.6.3 rejects invoices where BG-3 (Preceding Invoice reference) lacks BT-25 (IssuerAssignedID). The fix is to populate ram:IssuerAssignedID in the InvoiceReferencedDocument element.
1. Why KoSIT Validator v1.6.3 Rejects This Invoice
EN 16931 mandates that each Preceding Invoice reference (BG-3) must include a document identifier (BT-25). In CII, this is enforced by checking that ram:IssuerAssignedID is not empty at /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument. In UBL, the equivalent is cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID. A missing or empty value violates BR-55 and causes a fatal error.
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocumentnormalize-space(ram:IssuerAssignedID) != ''cac:BillingReference2. KoSIT-Verified XML Example: Broken vs. Fixed
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:InvoiceReferencedDocument>
<ram:FormattedIssueDateTime>
<qdt:DateTimeString format="102">20261121</qdt:DateTimeString>
</ram:FormattedIssueDateTime>
</ram:InvoiceReferencedDocument>
</ram:ApplicableHeaderTradeSettlement>
</rsm:SupplyChainTradeTransaction>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:InvoiceReferencedDocument>
<ram:IssuerAssignedID>RE-2026-00003</ram:IssuerAssignedID>
<ram:FormattedIssueDateTime>
<qdt:DateTimeString format="102">20261121</qdt:DateTimeString>
</ram:FormattedIssueDateTime>
</ram:InvoiceReferencedDocument>
</ram:ApplicableHeaderTradeSettlement>
The broken XML lacks <ram:IssuerAssignedID> in the InvoiceReferencedDocument, violating BR-55. The fixed XML includes <ram:IssuerAssignedID>RE-2026-00003</ram:IssuerAssignedID>, satisfying the requirement and passing KoSIT 1.6.3 validation with no errors.
3. Step-by-Step Fix Checklist
- Step 1: Inspect the exact element/field: Check for the presence of <ram:IssuerAssignedID> in the <ram:InvoiceReferencedDocument> element within BG-3.
- Step 2: Apply the EN 16931 / XRechnung correction: Populate <ram:IssuerAssignedID> with the original invoice number (e.g., RE-2026-00003).
- Step 3: Re-validate with Beleq's free KoSIT v1.6.3 validator: Upload your hybrid ZUGFeRD PDF to Beleq's validator to confirm BR-55 compliance.
4. Common Shopify Store & DATEV Workflow Trigger
In German Shopify B2B, partial refunds must be issued as immutable Stornorechnungen (TypeCode 381) referencing the original invoice. The original invoice number must be included in BG-3/BT-25 (ram:IssuerAssignedID). If this field is missing, the invoice fails BR-55. Beleq ensures that Shopify merchants correctly populate BT-25 when creating correction invoices, aligning with DATEV EXTF and GoBD requirements.
5. Frequently Asked Questions
Can I use the original invoice number for BT-25?
Yes. BT-25 (ram:IssuerAssignedID) must contain the original invoice number being referenced. This ensures traceability and compliance with EN 16931 and GoBD.
Does this rule apply to ZUGFeRD and XRechnung?
Yes. BR-55 applies to both ZUGFeRD 2.3 (Factur-X) and XRechnung 3.0, as both are based on EN 16931. The rule is enforced in both CII and UBL formats.
Related KoSIT Error Codes
Check your hybrid ZUGFeRD PDF or XRechnung XML in under 1 second against the official German KoSIT Validator v1.6.3 — 100% RAM-based on Frankfurt servers with zero retention and no registration.
Open Free KoSIT v1.6.3 Validator → See Beleq for Shopify