The invoice type code must be one of the accepted ZATCA UNTDID 1001 codes (388 tax invoice, 383 debit note, 381 credit note, 386 prepayment).
Why ZATCA invoices fail rule ZATCA-HDR-005 (ERROR) and how to fix it: The invoice type code must be one of the accepted ZATCA UNTDID 1001 codes (388 tax invoice, 383 debit note, 381 credit note, 386 prepayment).
What this rule checks
The invoice type code must be one of the accepted ZATCA UNTDID 1001 codes (388 tax invoice, 383 debit note, 381 credit note, 386 prepayment).
Affected element: Invoice › TypeCode.
Standard: ZATCA (KSA) — EN 16931 + BR-KSA. Severity: ERROR.
Why your invoice is rejected
ZATCA validates EN 16931 and BR-KSA business rules before clearance/reporting. When this rule fails the invoice is rejected — fix it before you submit.
How to fix it
Use one of the accepted code values for Invoice › TypeCode (see the ZATCA / UNTDID code list).
Verify before you send
Upload your ZATCA UBL invoice to the validator to confirm this rule — and every other EN 16931 / BR-KSA rule — passes before it reaches ZATCA.