BR-DE-31 XRechnung: account for the direct debit missing
When an XRechnung has direct debit details, it must include the customer's account to be debited.
What the rule says
Wenn "DIRECT DEBIT" BG-19 vorhanden ist, dann muss "Debited account identifier" BT-91 übermittelt werden.
The rule's official wording (CEN / KoSIT). The German XRechnung rules are published in German.
Why it happens
The invoice has direct debit details (BG-19), such as a mandate reference or creditor ID, but no debited account identifier (BT-91).
How to fix it
Add the customer's IBAN from the signed SEPA mandate as the debited account.
Applies to
XRechnung only (German rules by KoSIT).
More about BR-DE-31
The partner rule of BR-DE-30: a direct debit needs the mandate, your creditor ID and the customer's IBAN together. The IBAN tells the customer which account the money will be taken from; BR-DE-20 then checks that it's valid.
The fields involved
- BG-19 Direct debit
- CII
ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID, ram:CreditorReferenceID, ram:PayerPartyDebtorFinancialAccount - UBL
cac:PaymentMeans/cac:PaymentMandate - BT-91 Debited account identifier
- CII
ram:SpecifiedTradeSettlementPaymentMeans/ram:PayerPartyDebtorFinancialAccount/ ram:IBANID - UBL
cac:PaymentMeans/cac:PaymentMandate/ cac:PayerFinancialAccount/ cbc:ID
Typical situations
- The customer's IBAN isn't saved, only the mandate reference.
- The software writes the IBAN in the payment terms text instead.
Example
The debited account 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>