BR-KSA-06: Transaction code (KSA-2) is incomplete

An error: the invoice is rejected, so fix the cause and send it again.

Official text

The invoice transaction code (KSA-2) must exist and respect the following structure: NNPNESB where NN (positions 1 and 2) = invoice subtype: - 01 for tax invoice - 02 for simplified tax invoice P (position 3) = 3rd Party invoice transaction, 0 for false, 1 for true N (position 4) = Nominal invoice transaction, 0 for false, 1 for true E (position 5) = Exports invoice transaction, 0 for false, 1 for true S (position 6) = Summary invoice transaction, 0 for false, 1 for true B (position 7) = Self billed invoice

Error · Source: ZATCA E-Invoicing SDK 238-R3.3.8 · Electronic Invoice XML Implementation Standard v1.2, 19 May 2023, §13.3.1, p. 48 · Checked: 26 October 2026

What it means

The name attribute on the invoice type code must be seven digits in the order NNPNESB: the first two are 01 for a tax invoice or 02 for a simplified one, followed by five digits that are each 0 or 1 (third party, nominal, export, summary, self-billed).

When it happens

How to fix it

  1. For an ordinary simplified invoice at the point of sale, write 0200000.
  2. For an ordinary tax invoice between two businesses, write 0100000.
  3. Set a flag in positions three to seven to 1 only when the transaction really is of that kind.

Example

Wrong: raises BR-KSA-06
<cbc:InvoiceTypeCode name="02">388</cbc:InvoiceTypeCode>
Correct
<cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>

We ran the wrong example through ZATCA's SDK 238-R3.3.8 on 26 October 2026 and it raised BR-KSA-06, along with BR-KSA-31. The example is an excerpt of ZATCA's sample Simplified/Invoice/Simplified_Invoice.xml with one change; the sample without it does not raise the code.

Related codes

Terms on this page

Frequently asked questions

What does BR-KSA-06 mean?

The name attribute on the invoice type code must be seven digits in the order NNPNESB: the first two are 01 for a tax invoice or 02 for a simplified one, followed by five digits that are each 0 or 1 (third party, nominal, export, summary, self-billed).

Is the invoice rejected when BR-KSA-06 appears?

An error: the invoice is rejected, so fix the cause and send it again. This is its severity in ZATCA's SDK 238-R3.3.8.

How do I fix BR-KSA-06?

1. For an ordinary simplified invoice at the point of sale, write 0200000. 2. For an ordinary tax invoice between two businesses, write 0100000. 3. Set a flag in positions three to seven to 1 only when the transaction really is of that kind.

Last updated: 26 October 2026 · What we don't do · Methodology · Correct us · Changelog

First published 2026-10-26 · Archived copy

First 500 restaurants, cafés, bakeries and sweet shops: a SAR 99 monthly cap.

Instead of SAR 149, per branch, for a full year. Free to join, no commitment.

Reserve your seat