# BR-KSA-92

Source: https://xmlvalid.com/rules/BR-KSA-92

> If it's a B2G invoice transaction type (KSA 2, position 9 = 01), then the Contract ID (BT-12) must be present in a tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01).

- Level: error
- Rule sets: ZATCA e-invoicing rules (Saudi Arabia) SDK 3.4.6
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `not(exists(cac:ContractDocumentReference/cbc:ID))`

Validate a document against these rules: https://xmlvalid.com/validate
