# In case we sent an Invoice with errors and got the response from Reporting API «status: NOT\_REPORTED», what should we do next?

**URL:** https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258
**Category:** Clearance and Reporting
**Created:** [July 15, 2023, 10:16pm UTC](https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258 "2023-07-15T22:16:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ehab](https://avatars.discourse-cdn.com/v4/letter/e/e36b37/32.png) [@Ehab](https://zatca1.discourse.group/u/Ehab)
#### Post date: [July 15, 2023, 10:16pm UTC](https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258/1 "2023-07-15T22:16:10Z")

</div>

In case we sent an Invoice with errors and got the response from Reporting API «`status: NOT_REPORTED`», what should we do next?

---

<div class="post-metadata">

### Author: ![Ehab](https://avatars.discourse-cdn.com/v4/letter/e/e36b37/32.png) [@Ehab](https://zatca1.discourse.group/u/Ehab)
#### Post date: [July 15, 2023, 10:17pm UTC](https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258/2 "2023-07-15T22:17:31Z")

</div>

In the case that an invoice is not accepted, the error should be checked, the invoice should be cancelled via a credit note and a new invoice generated. Once `Not Reported` the invoice is deemed invalid.

---

<div class="post-metadata">

### Author: ![leonidas.s](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@leonidas.s](https://zatca1.discourse.group/u/leonidas.s)
#### Post date: [July 27, 2023, 11:03am UTC](https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258/3 "2023-07-27T11:03:57Z")

</div>

Does this process apply to both B2C and B2B?  
B2C Scenario:

1. Customer buys item A
2. Receipt is printer for amount X with valid QR
3. Customer leaves
4. XML Invoice is submitted to ZATCA and ‘NOT REPORTED’

When saying ‘should be cancelled via a credit note and a new invoice generated’ does cancelling apply on the XML Invoice level, meaning we can do it automatically without Customer involvement, or on Business level, meaning that the transaction needs to be cancelled In the accounting system

---

<div class="post-metadata">

### Author: ![MaShalaby](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@MaShalaby](https://zatca1.discourse.group/u/MaShalaby)
#### Post date: [July 30, 2023, 3:44pm UTC](https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258/4 "2023-07-30T15:44:47Z")

</div>

When you receive the “status: NOT\_REPORTED” response from the Reporting API after sending an invoice with errors, the first step is to identify the reason for the non-reporting status. Common reasons could include KSA Rules Violation, Invalid QR Code, InvalidInvoiceHash, XML Schema Error, Invalid Signature, and more.

Once you have determined the specific reason, you should address the issue accordingly. Correct any errors in the invoice as per the guidelines then you can simply resubmit the corrected invoice through the reporting API without the need to cancel it through a credit note.

---

<div class="post-metadata">

### Author: ![sotos.h](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@sotos.h](https://zatca1.discourse.group/u/sotos.h)
#### Post date: [July 31, 2023, 2:26pm UTC](https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258/5 "2023-07-31T14:26:08Z")

</div>

When submitting a corrected invoice with **status: REPORTED** will this affect the number of the Rejected invoices that show up on Fatoora Portal? i.e. will the new **accepted** invoice overwrite the old **rejected** one?

---

<div class="post-metadata">

### Author: ![MaShalaby](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@MaShalaby](https://zatca1.discourse.group/u/MaShalaby)
#### Post date: [August 1, 2023, 9:32pm UTC](https://zatca1.discourse.group/t/in-case-we-sent-an-invoice-with-errors-and-got-the-response-from-reporting-api-status-not-reported-what-should-we-do-next/258/6 "2023-08-01T21:32:29Z")

</div>

No, The newly accepted invoice will not overwrite the old rejected one. The number of accepted invoices will increase, while the number of rejected invoices will remain the same.
