BR-KSA-07: Export invoices cannot be self-billed

Explained by Matheel from ZATCA's rule text and the condition SDK 3.4.8 executes · Updated

Error: the invoice is rejectedConditional, see belowFields: KSA-2

Applies when position 5 (export) of cbc:InvoiceTypeCode/@name (KSA-2) is '1': position 7 (self-billed) must then not be '1'.

How to fix it

For an export invoice set position 7 of the name attribute to 0, e.g. name="0100100".

ZATCA's official text

[BR-KSA-07]-Self billing is not allowed (KSA-2, position 7 cannot be "1") for export invoices (KSA-2, position 5 = 1).
Source: ZATCA SDK 3.4.8 · ZATCA KSA rules

Fails when (the condition ZATCA's SDK runs)

not(substring(./@name,7,1) != '1')

Related rules

Validate your invoice against ZATCA's rules

Paste the XML and see every error and warning. It runs in your browser; the invoice goes nowhere.

Validate an invoice or try Matheel