# BR-DE-25-a: Direct debit group (BG-19) for code 59

Source: https://veriport.io/einvoice-rules/br-de-25-a (published 2026-11-17)

When the payment means code (BT-81) is 59 (SEPA direct debit), exactly one direct debit group, BG-19, must be present: `cac:PaymentMandate` in UBL, the mandate reference and debited account in CII. Below: the message, the cause and the fix, and an invoice our validator checked, failing and fixed.

- **Specification:** [XRechnung 3.0 rules](/einvoice-rules/xrechnung), XRechnung 3.0.2 schematron 2.6.0
- **Severity:** error
- **Business terms:** BT-81, BG-19
- **Reported by** `POST /einvoice/validate` and our free validators, with a link to this page

## The message validators print

BR-DE-25-a is a rule of the XRechnung 3.0 rules (xrechnung-schematron 2.6.0 (XRechnung 3.0.2)) for UBL and CII. It is an error (fatal): a validator rejects the invoice.

```text
[BR-DE-25-a] Wenn BT-81 "Payment means type code" einen Schlüssel für Lastschriften enthält (59), muss genau BG-19 "DIRECT DEBIT" übermittelt werden.
```

## What it checks

When the payment means code (BT-81) is 59 (SEPA direct debit), exactly one direct debit group, BG-19, must be present: `cac:PaymentMandate` in UBL, the mandate reference and debited account in CII.

## Why invoices fail it

Code 59 is written but the mandate reference and the buyer’s IBAN are missing.

## How to fix it

Add the mandate reference (BT-89), the creditor identifier (BT-90) and the debited account (BT-91).

## A failing invoice and its fix, checked

We start from our sample invoice (two lines at 19 %, Berlin to Stuttgart), written by our own generator as XRechnung 3.0 in UBL. The change below (`-` the failing version, `+` the fixed one) makes the rule fail. Both versions went through our validator on 2026-11-17 (the XML schema and the official rule files, as `POST /einvoice/validate` runs them): the fixed one is valid, the failing one reports BR-DE-25-a and 2 other rules, as a real file with this mistake would.

| Rule | Severity | Where | Message |
|---|---|---|---|
| PEPPOL-EN16931-R061 | error | `/ubl:Invoice/cac:PaymentMeans` | Mandate reference MUST be provided for direct debit. |
| **BR-DE-25-a** | error | `/ubl:Invoice/cac:PaymentMeans` | Wenn BT-81 "Payment means type code" einen Schlüssel für Lastschriften enthält (59), muss genau BG-19 "DIRECT DEBIT" übermittelt werden. |
| [BR-DE-20](/einvoice-rules/br-de-20) | warning | `/ubl:Invoice/cac:PaymentMeans` | "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. |

```diff
  …
    <cac:PaymentMeans>
      <cbc:PaymentMeansCode>59</cbc:PaymentMeansCode>
+     <cac:PaymentMandate>
+       <cbc:ID>MANDAT-2026-17</cbc:ID>
+       <cac:PayerFinancialAccount>
+         <cbc:ID>DE89370400440532013000</cbc:ID>
+       </cac:PayerFinancialAccount>
+     </cac:PaymentMandate>
    </cac:PaymentMeans>
    <cac:TaxTotal>
  …
```

## The rule as published

Where the rule applies (`context`) and what must hold (`test`), unmodified from XRechnung 3.0.2 schematron 2.6.0. An `assert` fails when its test is false.

Text and test: © KoSIT, Apache License 2.0. Quoted unmodified; the explanations on this page are Veriport’s.

```xpath
context: /ubl:Invoice/cac:PaymentMeans[normalize-space(cbc:PaymentMeansCode) = '59'] | /cn:CreditNote/cac:PaymentMeans[normalize-space(cbc:PaymentMeansCode) = '59']
test:    cac:PaymentMandate
```

```xpath
context: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementPaymentMeans[normalize-space(ram:TypeCode) = '59']
test:    /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:CreditorReferenceID or ram:PayerPartyDebtorFinancialAccount/ram:IBANID
```

## Check your own invoice

Drop your XRechnung, ZUGFeRD or Peppol file into a free validator ([Peppol BIS](/tools/peppol-validator), [XRechnung](/tools/xrechnung-pruefen), [Factur-X](/tools/valider-factur-x)): each runs the same rule files and links every finding to its rule page. From your own code, `POST /einvoice/validate` ([reference](/docs/einvoice)) returns the same check as JSON, each finding with an `explanation` field pointing here (5 calls a check, anonymous within the daily allowance).

## Read next

- [BR-DE-24-a: Card group (BG-18) for codes 48, 54, 55](https://veriport.io/einvoice-rules/br-de-24-a)
- [BR-DE-24-b: Transfer or debit data with a card code](https://veriport.io/einvoice-rules/br-de-24-b)
- [BR-DE-25-b: Transfer or card data with code 59](https://veriport.io/einvoice-rules/br-de-25-b)
- [BR-DE-26: Corrected invoice (384) without a preceding invoice](https://veriport.io/einvoice-rules/br-de-26)
- [BR-49: Payment means type code (BT-81) missing](https://veriport.io/einvoice-rules/br-49)
- [BR-61: Payment account (BT-84) for codes 30 and 58](https://veriport.io/einvoice-rules/br-61)
- [All XRechnung 3.0 rules](https://veriport.io/einvoice-rules/xrechnung)
- [All e-invoice rules, search](https://veriport.io/einvoice-rules)
- [Check an e-invoice free (XRechnung prüfen)](https://veriport.io/tools/xrechnung-pruefen)
- [Create a valid e-invoice free (German form)](https://veriport.io/tools/e-rechnung-erstellen)

## Sources

- XRechnung — the German CIUS of EN 16931 (standard, versions and bundles; version 3.0.2 in force) — https://xeinkauf.de/xrechnung/ (2026-10-28)
- Validator configuration XRechnung v2026-08-31 (XRechnung 3.0.2, CEN schematron 1.3.16, xrechnung-schematron 2.6.0) — https://github.com/itplr-kosit/validator-configuration-xrechnung/releases/tag/v2026-08-31 (2026-10-28)
- XRechnung schematron (xrechnung-schematron) and the XRechnung validator configuration: licence, Apache License 2.0 (LICENSE files; NOTICE of the configuration: « Copyright 2020 Koordinierungsstelle für IT-Standards ») — https://github.com/itplr-kosit/xrechnung-schematron/blob/master/LICENSE (2026-11-17)
