BR-DE-20 XRechnung: IBAN for the direct debit isn't valid
For a SEPA direct debit (code 59), the debited account should be a valid IBAN.
What the rule says
"Debited account identifier" (BT-91) soll eine korrekte IBAN enthalten, wenn in "Payment means type code" (BT-81) mit dem Code 59 SEPA als Zahlungsmittel gefordert wird.
The rule's official wording (CEN / KoSIT). The German XRechnung rules are published in German.
Why it happens
The payment method is SEPA direct debit (BT-81 = 59), but the customer's account (BT-91) isn't a valid IBAN. It's a warning, but the bank will return a debit from a wrong IBAN.
How to fix it
Use the IBAN from the customer's signed SEPA mandate, without spaces in the file.
Applies to
XRechnung only (German rules by KoSIT).
More about BR-DE-20
With a direct debit, the account on the invoice is the customer's, not yours: it tells them which account you'll debit. XRechnung checks its IBAN check digits just as BR-DE-19 does for transfers. Some software shows only part of the IBAN for privacy; the file still needs the full number.
The fields involved
- BT-81 Payment means type code
- CII
ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode - UBL
cac:PaymentMeans/cbc:PaymentMeansCode - BT-91 Debited account identifier
- CII
ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerPartyDebtorFinancialAccount/ ram:IBANID - UBL
cac:PaymentMeans/cac:PaymentMandate/ cac:PayerFinancialAccount/ cbc:ID
Typical situations
- Only the last digits of the customer's IBAN were written (DE** **** 2051).
- The seller's own IBAN was put in the debited account.
Example
A SEPA direct debit in CII:
<ram:CreditorReferenceID>DE98ZZZ09999999999</ram:CreditorReferenceID>
...
<ram:SpecifiedTradeSettlementPaymentMeans>
<ram:TypeCode>59</ram:TypeCode>
<ram:PayerPartyDebtorFinancialAccount>
<ram:IBANID>DE02120300000000202051</ram:IBANID>
</ram:PayerPartyDebtorFinancialAccount>
</ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradePaymentTerms>
<ram:DirectDebitMandateID>MANDAT-2026-017</ram:DirectDebitMandateID>
</ram:SpecifiedTradePaymentTerms>