Payment details in XRechnung: payment means, IBAN, direct debit (BR-DE-1, BR-DE-23, BR-61)

Missing or contradictory payment details are among the most common reasons why an XRechnung is rejected. Usually the IBAN is in the letterhead of the PDF but not in the XML, or the payment means code does not match the details. This page shows which fields belong to which payment means.

Mandatory in every XRechnung: the payment instructions

XRechnung requires the group payment instructions (BG-16) in every invoice (BR-DE-1). It contains at least the payment means code (BT-81, rule BR-49) from the code list UNTDID 4461. Free text such as “bank transfer” is not a valid code.

Which code, which details?

Payment meansCode BT-81Required detailsNot allowed
Credit transfer (general)30Credit transfer group (BG-17) with account ID/IBAN (BT-84)Card and direct debit data (BG-18, BG-19)
SEPA credit transfer58BG-17 with a valid IBAN in BT-84BG-18, BG-19
SEPA direct debit59Direct debit group (BG-19) with mandate reference (BT-89), creditor ID (BT-90) and the customer’s IBAN (BT-91)BG-17, BG-18
Card payment48, 54, 55exactly one card group (BG-18), card number truncated onlyBG-17, BG-19

The related rules: BR-DE-23-a and BR-DE-23-b for credit transfer, BR-DE-24-a/-b for card, BR-DE-25-a/-b as well as BR-DE-30 and BR-DE-31 for direct debit, BR-61 and BR-50 for the account number in a credit transfer.

The most common errors

1. IBAN only in the PDF

The invoice template prints the bank details in the footer of the PDF, but the XML contains only code 58. Result: BR-DE-23-a and BR-61. Solution: store the bank details in the invoicing software as payment details, not just as text in the layout.

2. IBAN with spaces or a typo

With code 58, BR-DE-19 checks whether the IBAN is valid (country code, length, check digits). Write it without spaces: DE02120300000000202051 instead of DE02 1203 0000 0000 2020 51. BR-DE-19 is a warning and the invoice stays valid; many recipients, however, do not book a wrong IBAN automatically.

3. Direct debit with credit transfer data

If you collect by direct debit, set code 59 and do not send your own bank account as credit transfer details (rule BR-DE-25-b). Instead, the mandate reference, the creditor identifier (Gläubiger-ID) and the customer’s IBAN belong in the direct debit group. In UBL the creditor ID is given at the payee or seller as an identifier with the scheme SEPA, in CII in the payment details of the invoice (ApplicableHeaderTradeSettlement) as CreditorReferenceID.

4. Several payment means mixed

“Please transfer or pay by card” cannot be expressed in one payment instruction. The German rules forbid sending groups of other payment means as well. Name in the XML the payment means you expect and, at most, mention further options as text in the payment terms (BT-20).

5. Full card number

An invoice must never contain the full card number. At most the first 6 and the last 4 digits are allowed (rule BR-51, following the requirements of the PCI Security Standards Council).

6. Due date missing

If an amount is due (BT-115 greater than 0), the invoice needs a due date (BT-9) or payment terms (BT-20), otherwise BR-CO-25 applies. Skonto (early-payment discount) has its own notation in BT-20, see Rounding, discounts and Skonto.

What a SEPA credit transfer looks like in the XML

UBL (simplified):

<cac:PaymentMeans>
  <cbc:PaymentMeansCode>58</cbc:PaymentMeansCode>
  <cbc:PaymentID>RE-2026-0042</cbc:PaymentID>
  <cac:PayeeFinancialAccount>
    <cbc:ID>DE02120300000000202051</cbc:ID>
    <cbc:Name>Muster GmbH</cbc:Name>
  </cac:PayeeFinancialAccount>
</cac:PaymentMeans>

CII (simplified):

<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>58</ram:TypeCode>
  <ram:PayeePartyCreditorFinancialAccount>
    <ram:IBANID>DE02120300000000202051</ram:IBANID>
  </ram:PayeePartyCreditorFinancialAccount>
</ram:SpecifiedTradeSettlementPaymentMeans>

The IBAN in the examples is a public test IBAN.

Check before the invoice goes out

  1. Open the invoice in the free validator. It uses the KoSIT rule files and runs in your browser; the file is not uploaded.
  2. Fix messages about BG-16 to BG-19 first: check the payment means code, then add the matching details and remove the unsuitable ones.
  3. Change the setting in the invoicing software so that the next invoice is correct.

New invoice with credit transfer and IBAN? Create an XRechnung sets payment means 58 and checks the file right away.

For your own software and automations the same check is available as an API. More reasons for rejection: XRechnung rejected – understanding the validation report.

Technical notes on the data format, not tax or legal advice. Whether VAT rate, supply and amounts are correct in substance is a question for your tax adviser. eRechio is not an offering of KoSIT.