← All e-invoice error codes

BR-DE-26 XRechnung: corrected invoice without its original

A corrected invoice (code 384) should name the invoice it corrects.

Auf Deutsch · En français

What the rule says

Wenn im Element Invoice type code (BT-3) der Code 384 (Corrected invoice) übergeben wird, soll PRECEDING INVOICE REFERENCE BG-3 mind. einmal vorhanden sein.

The rule's official wording (CEN / KoSIT). The German XRechnung rules are published in German.

Why it happens

The invoice is a corrected invoice or cancellation (BT-3 = 384), but has no preceding invoice reference (BG-3). It's a warning, but without the reference the receiver can't tell which invoice to replace.

How to fix it

Add the number (and ideally the date) of the original invoice as the preceding invoice reference.

Applies to

XRechnung only (German rules by KoSIT).

More about BR-DE-26

A corrected invoice cancels or replaces an earlier one, so it has to say which. The original number in the text or subject line isn't enough: it belongs in the preceding invoice reference, where the receiver's software looks for it.

Filekin's cancellation invoices always carry this reference, taken from the invoice you cancel.

The fields involved

BT-3 Invoice type code
CII rsm:ExchangedDocument/ram:TypeCode
UBL cbc:InvoiceTypeCode
BG-3 Preceding invoice reference
CII ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument
UBL cac:BillingReference/cac:InvoiceDocumentReference
BT-25 Preceding invoice number
CII ram:InvoiceReferencedDocument/ram:IssuerAssignedID
UBL cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID

Typical situations

  • The original number was only written in the invoice text.
  • Code 384 was used for an invoice that isn't a correction.

Example

A cancellation that names its original, in CII:

<ram:InvoiceReferencedDocument>
  <ram:IssuerAssignedID>RE-2026-0042</ram:IssuerAssignedID>
  <ram:FormattedIssueDateTime>
    <qdt:DateTimeString format="102">20261023</qdt:DateTimeString>
  </ram:FormattedIssueDateTime>
</ram:InvoiceReferencedDocument>