BR-KSA-40 Rejects the invoice

Seller VAT number invalid — 15 digits starting and ending with 3

The format rule for the Saudi VAT number, and the numbers people put in its place: the unified number, the CR number, and Arabic-Indic digits.

The message text as the Authority sends it in English, unedited

If it exists in the invoice, the seller VAT registration number (BT-31) must contain 15 digits. The first and the last digits are "3"..

What does this mean?

The Saudi VAT registration number is 15 digits long, the first digit is 3 and the last digit is 3. Anything else is rejected before the rest of the invoice is even read.

The eleventh digit carries an extra meaning: if it is 1, the establishment is a member of a VAT group, and the unified number then becomes mandatory alongside the VAT number.

Why does it happen?

Ordered from the most common to the least — your cause is most likely the first or the second.

  • Putting the CR number (10 digits) in the VAT number field.
  • Using the unified number of the establishment, which starts with 7.
  • A space or a dash inside the number or at either end — it counts as a character.
  • Arabic-Indic digits instead of Latin ones; they look correct to the eye and fail validation.
  • Using the number of the VAT registration certificate rather than the VAT number itself; the two are different.

How to fix it

2 steps, then send the invoice again.

  1. 1
    Copy the number from the VAT registration certificate

    The number you need is the one the certificate labels as the VAT number: 15 digits starting and ending with 3. Then confirm it really is the right number with the VAT number lookup: if the name of your business appears, the number is valid and registered.

  2. 2
    Clean the number before you save it

    Strip spaces and dashes, convert any Arabic-Indic digits to Latin ones, then check that the length is exactly 15 and that both ends are 3.

Once corrected, send the invoice again. A rejected invoice was never recorded with the Authority, so it needs no credit note — send the corrected invoice itself.

Does ZATCA Tools prevent it?

Yes. ZATCA Tools checks the format as the number is entered and will not connect to the Authority with a number that does not match, so the error never reaches an invoice in the first place.

Related codes

Frequently asked questions

What is the difference between the VAT number and the unified number? +
The VAT number is 15 digits starting and ending with 3, and it is the one used on a tax invoice. The unified number of an establishment is 10 digits starting with 7 and is a general government identifier. The CR number is 10 digits issued by the Ministry of Commerce. All three are different, and none of them can stand in for the VAT number on an invoice.
My number is correct and the invoice is still rejected +
Make sure you are looking at the right number: the rejection may be about the buyer number (BR-KSA-44) rather than yours. Read the rejection message and look for BT-31 for the seller or BT-48 for the buyer.
You fixed this one — now avoid the next

ZATCA Tools builds the signature, the PIH, the counter and the encoding for you, and validates your data before it is sent. Completely free for now, and no credit card.

Start for free

← All ZATCA error codes