Error codes

BR-DE-26: Corrected invoice without a preceding invoice reference

Severity: warning · Syntax: CII, UBL

Official message

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.

What this means

When BT-3 is 384 (corrected invoice), PRECEDING INVOICE REFERENCE (BG-3) should occur at least once. Severity warning. UBL accepts cac:BillingReference/cac:InvoiceDocumentReference. CII accepts ram:InvoiceReferencedDocument.

Typical cause

A corrected invoice was exported without the number of the original invoice.

How to fix it

Add the reference to the preceding invoice when the type is 384.

UBL

<cac:BillingReference>
  <cac:InvoiceDocumentReference>
    <cbc:ID>R2026-001</cbc:ID>
  </cac:InvoiceDocumentReference>
</cac:BillingReference>

CII

<ram:InvoiceReferencedDocument>
  <ram:IssuerAssignedID>R2026-001</ram:IssuerAssignedID>
</ram:InvoiceReferencedDocument>

Business term

Invoice type code (BT-3), BG-3

Related rules

Context and assertion

UBL /ubl:Invoice | /cn:CreditNote

CII /rsm:CrossIndustryInvoice

UBL

((not(normalize-space(cbc:InvoiceTypeCode) = '384' or normalize-space(cbc:CreditNoteTypeCode) = '384') or (cac:BillingReference/cac:InvoiceDocumentReference)))

CII

not(normalize-space(rsm:ExchangedDocument/ram:TypeCode) = '384') or (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument)

Check a file now, free of charge

curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate

Questions

What does BR-DE-26 actually check?

When BT-3 is 384 (corrected invoice), PRECEDING INVOICE REFERENCE (BG-3) should occur at least once. Severity warning. UBL accepts cac:BillingReference/cac:InvoiceDocumentReference. CII accepts ram:InvoiceReferencedDocument.

How do I fix BR-DE-26?

Add the reference to the preceding invoice when the type is 384.

If BR-DE-26 passes, is the invoice legally compliant?

No. This page helps you read this one Schematron assertion. A pass is not a statement about tax law, portal acceptance, or bank overlays.