← All e-invoice error codes

BR-DE-25-b XRechnung: direct debit mixed with transfer or card

A direct debit must not come with transfer or card details.

Auf Deutsch · En français

What the rule says

Wenn BT-81 "Payment means type code" einen Schlüssel für Lastschriften enthält (59), dürfen BG-17 und BG-18 nicht übermittelt werden.

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 (code 59), but the invoice also has transfer details (BG-17) or card details (BG-18).

How to fix it

Remove your own bank account from this invoice: with a direct debit, you collect the money, so the customer doesn't need it.

Applies to

XRechnung only (German rules by KoSIT).

More about BR-DE-25-b

XRechnung checks that the payment details match the payment method code (BT-81): a transfer comes with bank account details for the payee (BG-17), a card payment with card details (BG-18), a direct debit with mandate details (BG-19), and each method with its own group only.

The usual cause is the same as for BR-DE-24-b: the company IBAN is added to every invoice automatically, here next to the customer's IBAN for the debit.

The fields involved

BT-81 Payment means type code
CII ram:SpecifiedTradeSettlementPaymentMeans/ram:TypeCode
UBL cac:PaymentMeans/cbc:PaymentMeansCode
BG-17 Credit transfer
CII ram:SpecifiedTradeSettlementPaymentMeans/ram:PayeePartyCreditorFinancialAccount
UBL cac:PaymentMeans/cac:PayeeFinancialAccount
BG-18 Payment card information
CII ram:SpecifiedTradeSettlementPaymentMeans/ram:ApplicableTradeSettlementFinancialCard
UBL cac:PaymentMeans/cac:CardAccount
BG-19 Direct debit
CII ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID, ram:CreditorReferenceID, ram:PayerPartyDebtorFinancialAccount
UBL cac:PaymentMeans/cac:PaymentMandate

Typical situations

  • Your IBAN appears as payee account on a direct debit invoice.
  • Two payment methods were entered, and only one is used.

Example

A direct debit on its own, 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>