Skip to main content
BR-KSA-56ErrorZATCA Phase 2 UBL 2.1implemented

Credit/Debit Note Billing Reference Mandatory (BT-25)

Credit notes (381) and debit notes (383) must reference the original invoice number in cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID.

Scope
Credit & Debit Notes
Applicable Invoice Types
Credit Note, Debit Note
Catalog Version
v1.0.0 (2026-11-23)
Target XPath
/Invoice/cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID

Typical Reason for Failure

Standalone return notes are exported without linking to the original invoice ID.

Invalid Synthetic Example

Before (Fails)xml
<!-- Credit note 381 without cac:BillingReference -->

Corrected Synthetic Example

After (Fixed)xml
<cac:BillingReference><cac:InvoiceDocumentReference><cbc:ID>SME-2026-0001</cbc:ID></cac:InvoiceDocumentReference></cac:BillingReference>

Explanation of the Fix

Insert cac:BillingReference pointing to the original invoice's cbc:ID.

Official Source Reference

ZATCA Electronic Invoice XML Implementation Standard (Phase 2)

Open official specification

Related Rules

Test your invoice against BR-KSA-56 now

Browser quick check; raw XML is never stored.

Open Validator