# Zatca services returning HTML page

**URL:** <https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724>\
**Category:** Clearance and Reporting\
**Created:** [December 22, 2024, 3:34am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724 "2024-12-22T03:34:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kogabr](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kogabr](https://zatca1.discourse.group/u/kogabr)\
**Post date:** [December 22, 2024, 3:34am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/1 "2024-12-22T03:34:46Z")

</div>

Hi everyone,

I’d like to ask if Zatca is dealing of any kind of outage on your API. Our services are erroring since 6 hours ago (around 9pm UTC). Our logs show that the Zatca API is returning HTML code instead of a JSON response, which indicates an internal server error for me.

```auto
Unexpected JSON token at offset 0: Expected '{, kind: CLASS'.\n JSON input: <!DOCTYPE html>\r\n<html lang=\"a....

```

Do you have any information regarding that?

Regards,

Bruno.

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [December 22, 2024, 5:50am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/2 "2024-12-22T05:50:47Z")

</div>

Dear @kogabr

Thanks for reaching out,

To provide comprehensive support as usual, can I kindly ask you to share more details (logs, full request, and the exact response from ZATCA)?

Thanks,  
Ibrahem Daoud.

---

<div class="post-metadata">

**Author:** ![Sachin.Pathare](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@Sachin.Pathare](https://zatca1.discourse.group/u/Sachin.Pathare)\
**Post date:** [December 22, 2024, 8:15am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/3 "2024-12-22T08:15:45Z")

</div>

We are receiving similar issue from Zatca and all the clients are impacted. Kindly assist here asap.

---

<div class="post-metadata">

**Author:** ![Sachin.Pathare](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@Sachin.Pathare](https://zatca1.discourse.group/u/Sachin.Pathare)\
**Post date:** [December 22, 2024, 8:16am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/4 "2024-12-22T08:16:36Z")

</div>

```
<title> Request Rejected </title>

```

```
<style>
    /* Font-face rule to define the custom font */
    @font-face {
        font-family: 'Somar';
        src: url('fonts/Somar-Regular.eot');
        src: url('fonts/Somar-Regular.eot?') format('embedded-opentype'),
            url('fonts/Somar-Regular.woff2') format('woff2'),
            url('fonts/Somar-Regular.woff') format('woff'),
            url('fonts/Somar-Regular.ttf') format('truetype');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }

    @font-

```

---

<div class="post-metadata">

**Author:** ![Sachin.Pathare](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@Sachin.Pathare](https://zatca1.discourse.group/u/Sachin.Pathare)\
**Post date:** [December 22, 2024, 10:10am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/5 "2024-12-22T10:10:06Z")

</div>

Dear @idaoud @Ankit.K.Tiwari , can this issue be happening due to change in API URL done at Zatca end?

[Important Breaking Change (decommissioning gw-apic-gov.gazt.gov.sa) - Announcements - Fatoora Developer Community](https://zatca1.discourse.group/t/important-breaking-change-decommissioning-gw-apic-gov-gazt-gov-sa/4487)

---

<div class="post-metadata">

**Author:** ![Lina-alrehaili1](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@Lina-alrehaili1](https://zatca1.discourse.group/u/Lina-alrehaili1)\
**Post date:** [December 22, 2024, 11:14am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/6 "2024-12-22T11:14:02Z")

</div>

Dear @Sachin.Pathare,

Thank you for your inquiry.

To clarify, the old URL has not been decommissioned. Our team is investigating on top priority basis.

To assist us in expediting the investigation, we kindly request you to share the following details via email to [sp\_support@zatca.gov.sa](mailto:sp_support@zatca.gov.sa):  
• The specific endpoint being used.  
• Request headers (excluding the authorization header).  
• The full API request, including the response (In HTML for one of the affected invoices).

Please feel free to reach out if you have any further concerns or need additional clarification.

Best regards,

---

<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:** [December 22, 2024, 11:58am UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/7 "2024-12-22T11:58:55Z")

</div>

@kogabr could you please check and confirm if the issue is resolved now?

---

<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:** [December 22, 2024, 12:33pm UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/8 "2024-12-22T12:33:02Z")

</div>

@Ankit.K.Tiwari we are facing this issue for reporting API can you guide how to resolve this

---

<div class="post-metadata">

**Author:** ![kogabr](https://avatars.discourse-cdn.com/v4/letter/k/958977/32.png) [@kogabr](https://zatca1.discourse.group/u/kogabr)\
**Post date:** [December 22, 2024, 1:55pm UTC](https://zatca1.discourse.group/t/zatca-services-returning-html-page/4724/9 "2024-12-22T13:55:38Z")

</div>

@Ankit.K.Tiwari

Yes, the operation has resumed a few hours ago. Can you give more details on what happened? We had a lot of documents impacted.
