Context
SA
/ubl:Invoice/cac:BillingReference
VRBL-Invoice-SA-1p2 - Preceding Invoice Reference
Saudi Arabia |
VRBL-Invoice-SA-1p2
| Context ID | INV0167 |
| Usage | C |
| Usage Description | Required in case of Invoice Type Codes: |
Description
Group for references to one or more preceding invoices. A credit note or corrective invoice can refer to one or more original or preceding invoices. Also used for debit notes and other invoice-like messages that reference 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. |