BR-KSA-53 Rejects the invoice

Line amount with VAT (KSA-12) missing

The twin of the line VAT amount, emitted from the same block. The UBL element it lives in is called RoundingAmount, and that name alone is behind most cases of this rejection: the field is not a rounding difference, it is the line total after VAT.

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

The line amount with VAT (KSA-12) is mandatory for tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01).

What does this mean?

The place is cac:InvoiceLine/cac:TaxTotal/cbc:RoundingAmount, beside cbc:TaxAmount in the same block. The family is the same one BR-KSA-52 names: the tax invoice and its credit and debit notes, KSA-2 carrying 01 in positions 1 and 2.

The element name misleads, and it is worth saying plainly: RoundingAmount in UBL is a rounding field, and the Saudi specification reuses it as the home of KSA-12 — the line total including VAT. Read the name at face value and you either write a rounding difference into it or leave it out because there is no rounding on your invoice, and both give you this rejection.

Its value is set by BR-KSA-51: the invoice line net amount (BT-131) plus the line VAT amount (KSA-11). It is not the quantity times a VAT-inclusive unit price — once a line carries a discount of its own, or the price was entered inclusive of VAT, those two calculations part by halalas.

One case turns the requirement into a zero: BR-KSA-82 requires KSA-12 — together with KSA-11, the line net and the item price — to be zero on a prepayment line. Zero there is a value to write, not a field to drop.

Why does it happen?

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

  • Reading RoundingAmount at face value: left out because the document has no rounding, or filled with the halala difference instead of the line total.
  • The same European template that drops BR-KSA-52: an EN 16931 line carries no tax block at all, so both fields go missing together.
  • Computing it as the quantity times a VAT-inclusive price rather than the line net plus its VAT — which passes on a plain invoice and drifts by a halala the moment a line discount exists.
  • Dropping it from a zero-rated or exempt line on the reasoning that it equals the net and adds nothing.
  • Emitting it with more than two decimals, which is a separate warning — BR-KSA-DEC-04, not this code — but arrives in the same list and confuses the reading.

How to fix it

3 steps, then send the invoice again.

  1. 1
    Emit it beside the VAT amount

    In the cac:TaxTotal block inside the line: cbc:TaxAmount, then cbc:RoundingAmount, both with the attribute currencyID="SAR". Two elements in one block, not one.

  2. 2
    Make it the line net plus its VAT, literally

    Take the two numbers you already wrote on that line — cbc:LineExtensionAmount and cbc:TaxAmount — and add them, to two decimals. Do not re-derive it from the unit price or from the document total: a derived figure lands a halala away from the sum, and the schema adds rather than derives.

  3. 3
    Then check both fields on every line before sending

    Walk the lines and confirm both numbers are there, because a file that dropped one usually dropped the other — BR-KSA-52 is the matching code. And if the document is a credit or debit note the requirement stands on it exactly as on an invoice; notes are covered in credit and debit notes.

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. The payload builder writes the VAT-inclusive line total on every line as the line net plus its VAT, rounded to two decimals, from the same two numbers that go into the file — so the BR-KSA-51 arithmetic holds by construction rather than by review, and so do the two decimals BR-KSA-DEC-04 asks for. There is no field anywhere in the product where this amount can be typed.

Related codes

BR-KSA-52 Rejects the invoice
Line VAT amount (KSA-11) missing
BR-KSA-51
The official message text is in the Full reference.
BR-KSA-DEC-04
The official message text is in the Full reference.

Frequently asked questions

The element is called RoundingAmount. Is it not the rounding difference? +
Not in the Saudi specification. The name is inherited from UBL; the meaning the Authority validates here is KSA-12, the line total after VAT. Putting a rounding difference in it leaves this rule outstanding and breaks the BR-KSA-51 arithmetic as well.
The line has a discount. Do I add before or after it? +
After. The figure you need is the line net as you wrote it in cbc:LineExtensionAmount — that is, after the line discount — plus the VAT on that net. Always add the two numbers already written on the line, never work back from the original price.
Must it equal the quantity times a VAT-inclusive unit price? +
Not necessarily, and it can differ by a halala. What the schema checks is the sum BR-KSA-51 states: line net plus line VAT. The relationship between quantity and unit price is a separate rule on the net itself, BR-KSA-EN16931-11.
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