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.
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.
The same thing happened to me as well. I receive statusCode 200 or 202, but the response from the reporting API is empty.
We also receiving the empty responses with 200 and 202 status codes
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.
@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.
@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.
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
@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?
Thanks @Ankit.K.Tiwari.
Some hash values for a sample of invoices:
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
@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.
@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?
@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
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?
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
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 ?
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
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