BR-KSA-56: Billing Reference ID Mandatory for Credit & Debit Notes
BR-KSA-56: مرجع الفاتورة الأصلية إلزامي للإشعارات الدائنة والمدينة
For credit notes ((BT-3) has value 381) and debit notes ((BT-3) has value 383), the billing reference ID (BT-25) is mandatory.
/ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID 📌 Overview & Impact
For credit notes (code 381) and debit notes (code 383), the original invoice billing reference ID (BT-25) is mandatory.
⚠️ Common Causes for Rejection
- ✕ Omitting <cac:BillingReference> block when submitting a credit note (381) or debit note (383)
- ✕ Leaving <cbc:ID> empty inside <cac:InvoiceDocumentReference>
- ✕ Referencing a non-existent or invalid original invoice number
✅ How to Fix & Resolve
Insert BillingReference Node
Add <cac:BillingReference><cac:InvoiceDocumentReference><cbc:ID>ORIGINAL-INV-NO</cbc:ID></cac:InvoiceDocumentReference></cac:BillingReference>.
Add Reason Note (BR-KSA-17)
Also ensure <cac:PaymentMeans><cbc:InstructionNote>Reason for Credit Note</cbc:InstructionNote></cac:PaymentMeans> is provided.
💻 Code Comparison: Invalid vs Compliant UBL 2.1 XML
<cbc:InvoiceTypeCode name="0100000">381</cbc:InvoiceTypeCode>
<!-- Missing cac:BillingReference --> <cbc:InvoiceTypeCode name="0100000">381</cbc:InvoiceTypeCode>
<cac:BillingReference>
<cac:InvoiceDocumentReference>
<cbc:ID>INV-2026-00042</cbc:ID>
</cac:InvoiceDocumentReference>
</cac:BillingReference> Verify Your Invoice XML Online
Use Qeemah's free developer tools to inspect transforms, C14N digests, and Phase 2 QR codes.
❓ Frequently Asked Questions
Can I issue a credit note without referencing an original invoice?
Under ZATCA Phase 2 rules, stand-alone unlinked credit/debit notes are prohibited. Every credit/debit note must reference the original invoice number.
🔗 Related ZATCA Rules
BR-KSA-05: Invalid Invoice Type Code (BT-3)
Invoice type code must be one of the agreed UN/CEFACT 1001 codes: 388 (Tax Invoice), 381 (Credit Note), 383 (Debit Note), or 386 (Prepayment).
BR-KSA-06: Invalid Invoice Transaction Subtype Code (NNPNESB / KSA-2)
The invoice transaction code (KSA-2) must exist in @name attribute of InvoiceTypeCode and respect the 7-digit NNPNESB structure.
Stop Fighting Cryptic ZATCA XML Errors
Qeemah handles Phase 2 e-invoicing, cryptographic signing, and real-time clearance automatically. Integrate in minutes.