Asapeca E-Invoice

Validation rules explained

BT-25 Preceding invoice reference

Official description

Die Kennung der vorausgegangenen Rechnung, auf die Bezug genommen wird.

Source: KoSIT, XRechnung specification 3.0.2 (original text, in German).

What the field is for

The specification's description (above, in German) translates as: "The identifier of the preceding invoice that is referred to." BT-25 refers to an earlier invoice: a correction or credit note uses it to say which invoice it changes. The field is in the group "Preceding invoice reference" (BG-3); that invoice's date is in BT-26.

When the field is needed

Invoice type (BT-3) BG-3 with BT-25
384 corrected invoice should be given — BR-DE-26
381 credit note not required by any rule; without the reference, though, the buyer cannot match the credit note to an invoice

If the number alone is not unique, the specification says the date BT-26 should be given as well.

Which rules check the field

Rule What it requires Level in XRechnung
BR-55 every BG-3 has a BT-25 error
BR-DE-26 with 384 there is at least one BG-3 warning

Where the field is in the file

Syntax Element
CII ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument/ram:IssuerAssignedID
UBL cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID

Common mistakes

Example

<!-- CII: correction of invoice RE-2026-0001 of 20 October 2026 -->
<ram:ApplicableHeaderTradeSettlement>
  ...
  <ram:SpecifiedTradeSettlementHeaderMonetarySummation>
    ...
  </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:InvoiceReferencedDocument>
    <ram:IssuerAssignedID>RE-2026-0001</ram:IssuerAssignedID>   <!-- BT-25 -->
    <ram:FormattedIssueDateTime>
      <qdt:DateTimeString format="102">20261020</qdt:DateTimeString>  <!-- BT-26 -->
    </ram:FormattedIssueDateTime>
  </ram:InvoiceReferencedDocument>
</ram:ApplicableHeaderTradeSettlement>

<!-- UBL -->
<cac:BillingReference>
  <cac:InvoiceDocumentReference>
    <cbc:ID>RE-2026-0001</cbc:ID>
    <cbc:IssueDate>2026-10-20</cbc:IssueDate>
  </cac:InvoiceDocumentReference>
</cac:BillingReference>

Sources: KoSIT, XRechnung specification 3.0.2 (BT-25, BT-26, section 11.25, BR-55, BR-DE-26).

Based on the official documentation · sources · Last checked: 2026-11-07

Check an invoice →