# Empty response body from reporting API

**URL:** <https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137>\
**Category:** Clearance and Reporting\
**Created:** [August 23, 2025, 8:19am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137 "2025-08-23T08:19:33Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemanthsr](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@hemanthsr](https://zatca1.discourse.group/u/hemanthsr)\
**Post date:** [August 23, 2025, 8:19am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/1 "2025-08-23T08:19:33Z")

</div>

We are getting empty response body for some of the B2C invoices from reporting API.

Response Code: 200  
Response Body: (empty)

This has happened to 4 of our invoices in the last 12 hours.

---

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://zatca1.discourse.group/u/Abhishek)\
**Post date:** [August 23, 2025, 2:12pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/2 "2025-08-23T14:12:50Z")

</div>

The same thing happened to me as well. I receive statusCode 200 or 202, but the response from the reporting API is empty.

---

<div class="post-metadata">

**Author:** ![anusv](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@anusv](https://zatca1.discourse.group/u/anusv)\
**Post date:** [August 23, 2025, 3:35pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/3 "2025-08-23T15:35:21Z")

</div>

We also receiving the empty responses with 200 and 202 status codes

---

<div class="post-metadata">

**Author:** ![vjsrdev](https://avatars.discourse-cdn.com/v4/letter/v/e9c0ed/32.png) [@vjsrdev](https://zatca1.discourse.group/u/vjsrdev)\
**Post date:** [August 23, 2025, 3:56pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/4 "2025-08-23T15:56:17Z")

</div>

We are also getting similar issue, seems to be an empty response. Exception=No content to map due to end-of-input  
at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1]. This error not specific to reporting it is happening for clearance api also.

---

<div class="post-metadata">

**Author:** ![hemanthsr](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@hemanthsr](https://zatca1.discourse.group/u/hemanthsr)\
**Post date:** [August 23, 2025, 4:54pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/5 "2025-08-23T16:54:49Z")

</div>

@Ankit.K.Tiwari @idaoud Please refer to the attached screenshot of our server log. For some invoices, there is a response. But for some of then, even though the status code is 200, the response body is empty.

At least 20 invoices are affected by this today. Please help us rectify this.

 ![Screenshot 2025-08-23 at 22.16.58](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/2X/7/773c008329adbdc4591f4f9593c53bef27e764b4.png)

 ![Screenshot 2025-08-23 at 22.17.34](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/2X/1/19e9a5fea26d5ea2a60d72649c8a7f89f93479b8.png)

---

<div class="post-metadata">

**Author:** ![mnuaimi](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@mnuaimi](https://zatca1.discourse.group/u/mnuaimi)\
**Post date:** [August 23, 2025, 7:25pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/6 "2025-08-23T19:25:51Z")

</div>

@Ankit.K.Tiwari  
We are also getting similar issue, seems to be an empty response.  
For Hash

> 2u9R92YIYoUc0JOF7AXSICHGR6rmN0iHGhaGpTJlWMY=

The problem is that the system considered it unreported, canceled it, and didn’t approve its hash or ICV for the next invoice.

What is the appropriate procedure for such a case? We have the XML file.

---

<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 24, 2025, 4:56pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/7 "2025-08-24T16:56:12Z")

</div>

Dear All,  
@hemanthsr @mnuaimi @Abhishek @anusv @vjsrdev  
Thanks for reaching out,  
Can you please send more examples of `invoice_hash` with the same issue by email, so we can investigate further?

It would also help if you include a sample full request and the percentage of times this issue happens compared to successful ones.  
SP support mail: [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa)

---

<div class="post-metadata">

**Author:** ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)\
**Post date:** [August 24, 2025, 5:00pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/8 "2025-08-24T17:00:56Z")

</div>

@Abhishek @hemanthsr @anusv @vjsrdev @mnuaimi could you please share some sample hash values and screenshot of exact response from API call from ZATCA here as well?

---

<div class="post-metadata">

**Author:** ![mnuaimi](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@mnuaimi](https://zatca1.discourse.group/u/mnuaimi)\
**Post date:** [August 24, 2025, 5:39pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/9 "2025-08-24T17:39:04Z")

</div>

Thanks @Ankit.K.Tiwari.  
Some hash values ​​for a sample of invoices:

```auto
Z83clqG+jut7z/qb+KcggkLh4MaqHf4Iuo+IOhHiO4E=
gnNmVqpllWjBQ8Y7m+kOLkZ7qi8aY/ykyohmOT9Xd9Q=
hNRDejR4tYB9awomgr1pfREfIFzfzKTf+Y8t9ImKBGg=
iEchDlat5JZH+gG7jnXzDtEeUmxbTfQOTG87RU06Qts=
X1/oGFU8mZxnJfVuCGxnR0zwIlkP5Vr+QvG9P+Qpbe4=

```

They all belong to different taxpayers, and all standard tax.

By the way also, **the compliance endpoint** is not working for more than 2 hours, always status code = 401

---

<div class="post-metadata">

**Author:** ![hemanthsr](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@hemanthsr](https://zatca1.discourse.group/u/hemanthsr)\
**Post date:** [August 25, 2025, 3:49am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/10 "2025-08-25T03:49:04Z")

</div>

@Ankit.K.Tiwari I’ve already shared the screenshot of our server logs indicating empty response body.

Below are some of the invoice\_hash for which we faced this issue.

> M4qcRmLS0EJG+Rn8hxyJjmV6qblBLOTBRHRwnbo9nhE=
> 
> ThAO/rh9hjiEcrk9t6154IzSKMewwNrvIC3mBAG7I8Y=
> 
> Y/W0CCKgd7Koyvt9nvqlUxQZAbo9LwwuhDZNPlONFCk=
> 
> QPOdJyL7HW77jjg5J4Wnx7Qj98t1EsQyf2MGKXH7lOc=
> 
> O8okuxyrJgwQh5wyizdne4FBXsJD4Ow1sj0BDKq6rLo=
> 
> t8/jUxiy2+MWVbXWiTMmf6KfO8OlACWx8ULGoId3LvI=
> 
> OXEztX31yz0HDHfEAq5R48Mx7axotiZHz8s/5ybM7qU=
> 
> C8THwCulGa0lokUY0q6kOqXHcZ0Iq8hjK8IC4Mc7c5U=
> 
> WY+Kk22yRM62NOg0BwgIKhrQO15wXjpyFk35Me5JF0I=
> 
> gjbL39Z9Tgj+nrDXJPCjBLxLLjUQ0IQdCx9kdkwtM84=
> 
> uKveC+QuDKX9ZaKErAcj94871aG05HEARMltl6AHv34=
> 
> wjhufU3TjP2RB7yCn5V5nPGZ49mHoRkw4BN+m+CBzvI=
> 
> ilCjPEejFYeDRocsCECGhwLIDYveAICnT44MfAPk2KU=
> 
> EbON11Jf1XQMGcOPO2LFwkkdRasH/fDjG63m00+apUo=
> 
> Eu2VveDc45cKF4pFbIKN6CsxoSNj3cYOMIb+iE29RR8=
> 
> PTuMXwHfRSDIRijHkjvU8qJQSgaKROfK07NQZYWd8B4=
> 
> WY+Kk22yRM62NOg0BwgIKhrQO15wXjpyFk35Me5JF0I=
> 
> CIbRSMKlS/9Lo7SmAf5rmXVUR4yDleGGMg11ru/ajes=
> 
> kIVdo9f2bpSiAb+j1R/l6qk7SAdAt/jXmiDLp35vnik=

@MaShalaby This issue occurred for 30 out of 2600 documents processed yesterday, which is slightly more than 1%.

I’ve shared these information to support email as well.

 ![Screenshot 2025-08-23 at 22.16.58](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/2X/7/773c008329adbdc4591f4f9593c53bef27e764b4.png)

 ![Screenshot 2025-08-23 at 16.35.21](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/2X/0/0f27ac052d8268f4441a7c141aba0fde45536f9f.png)

---

<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 25, 2025, 5:50pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/11 "2025-08-25T17:50:44Z")

</div>

@hemanthsr @mnuaimi @vjsrdev @Abhishek @anusv  
Could you please try resubmitting these invoices and let me know if you receive the response body, or if the issue still persists?

---

<div class="post-metadata">

**Author:** ![hemanthsr](https://avatars.discourse-cdn.com/v4/letter/h/5e9695/32.png) [@hemanthsr](https://zatca1.discourse.group/u/hemanthsr)\
**Post date:** [August 26, 2025, 5:16am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/12 "2025-08-26T05:16:59Z")

</div>

@MaShalaby  
Our system is set up to automatically retry invoice submissions if a response isn’t received or decoded correctly. It waits 60 seconds before making a second attempt with the same invoice hash and PIH.

This is exactly what happened on August 23rd. The initial submission received an empty response, and 60 seconds later, the system automatically retried. The second attempt was successful and received the correct response. While this mechanism prevented us from being blocked, we’ve been monitoring this behavior, as our system has been flagging this issue since August 23rd.

We’re _ **still seeing that around 1% of our documents receive an empty response body every day** _.

cc: @Ankit.K.Tiwari

---

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://zatca1.discourse.group/u/Abhishek)\
**Post date:** [August 26, 2025, 6:49am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/13 "2025-08-26T06:49:12Z")

</div>

Hi Everyone,  
If I receive a 200 or 202 status code but the response body is empty or null, does that mean the invoice has been successfully received, or do I need to resubmit it?

---

<div class="post-metadata">

**Author:** ![brahmos](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@brahmos](https://zatca1.discourse.group/u/brahmos)\
**Post date:** [August 26, 2025, 7:00am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/14 "2025-08-26T07:00:19Z")

</div>

We are also facing this error from 23-August-2025 onwards. We are waiting for early resolution. Please reply once anyone of you got response from ZATCA

---

<div class="post-metadata">

**Author:** ![anusv](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@anusv](https://zatca1.discourse.group/u/anusv)\
**Post date:** [August 26, 2025, 8:38am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/15 "2025-08-26T08:38:30Z")

</div>

Dear @MaShalaby

Our system rely on the status code of invoice submission. In this case we got the status code as 200 with blank response. Because of this status code our system identified those invoices as successful and submitted new invoices. If we resubmit the same invoices with response blank then there will be discrepancy in ICV’s and PIH. The hash of already submitted invoice is not ZATCA side so it will consider as new invoice. How to handle this situation ?

---

<div class="post-metadata">

**Author:** ![Malik](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/malik/32/708_2.png) [@Malik](https://zatca1.discourse.group/u/Malik)\
**Post date:** [August 26, 2025, 5:08pm UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/16 "2025-08-26T17:08:17Z")

</div>

Salam,

I had faced the same issue and I feel it can happen due to Internet connection or Zatca server over occupied and I solved,

Loop status is xml generated

Get response code

If response code = reported and status code 200 or 202 then mark invoice reported

Elseif status code 409

then mark invoice reported

End if

It is working fine. Thanks

---

<div class="post-metadata">

**Author:** ![mr\_iffi](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/mr_iffi/32/1121_2.png) [@mr\_iffi](https://zatca1.discourse.group/u/mr_iffi)\
**Post date:** [September 3, 2025, 6:38am UTC](https://zatca1.discourse.group/t/empty-response-body-from-reporting-api/8137/17 "2025-09-03T06:38:22Z")

</div>

I also faced this issue from 24 august. I thought maybe my production CSID is expired i tried to renew it several time but its return me every time 428 response code with binary security token and secret, i didn’t replace these keys with actual keys, can someone verify my existing keys is auto revoked or not, if not then its return me every invoice compliance empty response with 401 code.

regards  
Iftikhar Ali
