# Status 400, Without any error code - Invoice Rejected for Reporting API

**URL:** <https://zatca1.discourse.group/t/status-400-without-any-error-code-invoice-rejected-for-reporting-api/6721>\
**Category:** General\
**Created:** [April 20, 2025, 7:58am UTC](https://zatca1.discourse.group/t/status-400-without-any-error-code-invoice-rejected-for-reporting-api/6721 "2025-04-20T07:58:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnunair](https://avatars.discourse-cdn.com/v4/letter/v/eb9ed0/32.png) [@vishnunair](https://zatca1.discourse.group/u/vishnunair)\
**Post date:** [April 20, 2025, 7:58am UTC](https://zatca1.discourse.group/t/status-400-without-any-error-code-invoice-rejected-for-reporting-api/6721/1 "2025-04-20T07:58:01Z")

</div>

Hi team,

We have encountered rejections for 9 B2C invoice records we have submitted today (17-04) early morning.

However there is no error/warning code we have received for these Rejected records.

Please find the ZATCA response below:

_{_

- “statusCode”: 400,\*
- “data”: “\r\nBad Request\r\n\<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"\>\r\n
## Bad Request - Invalid Hostname
\r\n
* * *

HTTP Error 400. The request hostname is invalid.

\r\n\r\n”\*  
_}_

We haven’t encountered any issues for the rest of our submissions and it is working fine as usual.

@Ankit.K.Tiwari , kindly advise if we can go-ahead and try resubmitting these records.

Much appreciated your support and response in this matter.

Thanks

---

<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:** [April 20, 2025, 8:18am UTC](https://zatca1.discourse.group/t/status-400-without-any-error-code-invoice-rejected-for-reporting-api/6721/2 "2025-04-20T08:18:48Z")

</div>

@vishnunair could you please specify to which API endpoint are you sending these invoices to?

---

<div class="post-metadata">

**Author:** ![Aturkistani](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Aturkistani](https://zatca1.discourse.group/u/Aturkistani)\
**Post date:** [April 20, 2025, 8:49am UTC](https://zatca1.discourse.group/t/status-400-without-any-error-code-invoice-rejected-for-reporting-api/6721/3 "2025-04-20T08:49:28Z")

</div>

dear @vishnunair,

Would you please send the full API request of the infected invoices to`SP_Support@zatca.gov.sa` to investigate this furtherly?, including the following:

1- the exact API endpoint  
2- the headers of the API request, excluding the secret “password” in authorization section.  
3- the body of the API request  
4- the full API response ( **from ZATCA’s side** )  
5- the IP address of the device/solution that sent the invoices.

Thank you in advance.  
Regards,
