How to Fix KoSIT Error BR-DE-23-a: Missing BG-17 for BT-81 30/58
KoSIT 1.6.3 rejects invoices when BT-81 is 30 or 58 and BG-17 is missing. Add the PayeePartyCreditorFinancialAccount block to fix it.
1. Why KoSIT Validator v1.6.3 Rejects This Invoice
According to BR-DE-23-a, if the Payment Means Type Code (BT-81) is 30 or 58 (indicating a credit transfer), the CREDIT TRANSFER block (BG-17) must be included. The official XPath test ensures that when BT-81 is 30 or 58, the element ram:PayeePartyCreditorFinancialAccount exists. In both CII and UBL, this rule is enforced to ensure complete and accurate payment information for compliance with EN 16931 and German tax requirements.
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans[normalize-space(ram:TypeCode) = ('30','58')]ram:PayeePartyCreditorFinancialAccount/ubl:Invoice/cac:PaymentMeans[normalize-space(cbc:PaymentMeansCode) = ('30','58')] | /cn:CreditNote/cac:PaymentMeans[normalize-space(cbc:PaymentMeansCode) = ('30','58')]2. KoSIT-Verified XML Example: Broken vs. Fixed
<ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
<ram:SpecifiedTradeSettlementPaymentMeans>
<ram:TypeCode>58</ram:TypeCode>
</ram:SpecifiedTradeSettlementPaymentMeans>
<ram:ApplicableTradeTax>
<ram:CalculatedAmount>380.00</ram:CalculatedAmount>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:BasisAmount>2000.00</ram:BasisAmount>
<ram:CategoryCode>S</ram:CategoryCode>
<ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
<ram:SpecifiedTradeSettlementPaymentMeans>
<ram:TypeCode>58</ram:TypeCode>
<ram:PayeePartyCreditorFinancialAccount>
<ram:IBANID>DE89370400440532013000</ram:IBANID>
<ram:AccountName>Nordwerk Kaffee & Technik GmbH</ram:AccountName>
</ram:PayeePartyCreditorFinancialAccount>
<ram:PayeeSpecifiedCreditorFinancialInstitution>
<ram:BICID>COBADEFFXXX</ram:BICID>
</ram:PayeeSpecifiedCreditorFinancialInstitution>
</ram:SpecifiedTradeSettlementPaymentMeans>
The broken XML lacks the BG-17 block (ram:PayeePartyCreditorFinancialAccount) even though BT-81 is 58. The fixed XML includes IBAN (BT-84), account name (BT-85), and BIC (BT-86) under BG-17, satisfying BR-DE-23-a and passing KoSIT 1.6.3 validation.
3. Step-by-Step Fix Checklist
- Step 1: Inspect the exact element/field: Check if ram:SpecifiedTradeSettlementPaymentMeans contains TypeCode 30 or 58.
- Step 2: Apply the EN 16931 / XRechnung correction: Add the BG-17 block with IBAN, account name, and BIC under ram:PayeePartyCreditorFinancialAccount.
- Step 3: Re-validate with Beleq's free KoSIT v1.6.3 validator: Upload the invoice to Beleq's online validator to confirm the fix.
4. Common Shopify Store & DATEV Workflow Trigger
In a German Shopify B2B setup, when a Net-14 or Net-30 DraftOrder is invoiced with SEPA (code 58), the invoice must include BG-17. If the Shopify app or accounting integration (e.g., DATEV EXTF) omits this block, KoSIT validation fails. Beleq helps by flagging this error during XML generation, preventing rejected invoices and ensuring smooth DATEV import.
5. Frequently Asked Questions
What happens if I ignore BR-DE-23-a in a German B2B invoice?
Ignoring BR-DE-23-a causes the invoice to fail KoSIT validation, leading to rejection by tax authorities and accounting systems like DATEV. This delays payments and creates compliance risks.
Does this rule apply to ZUGFeRD 2.3 (Factur-X) as well?
Yes, the rule applies to ZUGFeRD 2.3 as it is based on the same EN 16931 standard. The same BG-17 and BT-81 logic must be followed.
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