/ubl:Invoice/cac:BillingReference

Preceding Invoice Reference

Saudi Arabia | VRBL-Invoice-SA-1p2
Context ID INV0167
Usage C
Usage Description

Required in case of Invoice Type Codes: 381, 383, 261, 527

Description

A group of business terms providing information on one or more preceding Invoices. A credit note or an invoice correction can refer to one or more initial or preceding invoices. Also used for debit notes and other invoice like messages which make references to preceding invoices.

For invoice issuers to the ZATCA system, if the document is a credit or debit note (also for self-billing), the document must contain an invoice reference number indicating the original invoice number. Additionally, the reason for the correction must be provided in textual form.

Child elements
Usage Element Description Cardinality
O cac:InvoiceDocumentReference Invoice Document Reference

A reference to an invoice.

0..1
Details

Example: SA_Creditnote_381.xml

<ubl:Invoice>
  <!-- ... omitted for readability -->
  <cac:BillingReference>
    <cac:InvoiceDocumentReference>
      <ext:UBLExtensions>
        <ext:UBLExtension>
          <ext:ExtensionContent>
            <vrbl:InvoiceDocumentReferenceExtension>
              <vrbl:CorrectionData>
                <vrbl:CorrectionReason>CANCELLATION_OR_TERMINATION</vrbl:CorrectionReason>
              </vrbl:CorrectionData>
            </vrbl:InvoiceDocumentReferenceExtension>
          </ext:ExtensionContent>
        </ext:UBLExtension>
      </ext:UBLExtensions>
      <cbc:ID>SME00002</cbc:ID>
    </cac:InvoiceDocumentReference>
  </cac:BillingReference>
  <!-- ... omitted for readability -->
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-SA-1p2-59 The Preceding Invoice Issue Date must be formatted YYYY-MM-DD, in accordance to the "Calendar date complete representation" as specified by ISO 8601:2004, format YYYY-MM-DD
VRBL-INV-EN16931-M-132 The Preceding Invoice Reference ID must exist within the Preceding Invoice Reference.