All the document amounts and quantities must be positive, unless specified otherwise.
What does this mean?
The rule applies across the document: line quantities, line prices and totals — a negative value is rejected in all of them.
A discount is not an exception that needs a minus sign: it has its own allowance fields and is written there as a positive value, and the system subtracts it for you.
A correction after issuing is not a negative line on a later invoice; it is a separate document of type credit note that references the original invoice.
Why does it happen?
Ordered from the most common to the least — your cause is most likely the first or the second.
- A store integration that passes a return as a negative line inside a new invoice instead of creating a credit note.
- A discount written as a negative price on a line of its own (Discount: -50) instead of the dedicated discount fields.
- A settlement or rounding entry keyed in as a negative quantity to balance the total.
How to fix it
2 steps, then send the invoice again.
-
1
Turn the return into a credit note
Create a credit note that references the original invoice, with the returned value as a positive number and a reason for issuing. The steps are in how to issue a credit note for an electronic invoice.
-
2
Move the discount into its own fields
Write the discount in the discount fields at line or document level as a positive value, and remove the negative discount lines from the template and from the integration.
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. Lines whose quantity or price is not positive never enter an invoice in ZATCA Tools, and returns from connected stores become credit notes automatically.
Related codes
Frequently asked questions
How do I record a partial return, then? +
What about the end-of-invoice discount I used to write as a negative line? +
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