# Zatca API failuer

**URL:** <https://zatca1.discourse.group/t/zatca-api-failuer/4255>\
**Category:** Clearance and Reporting\
**Created:** [November 20, 2024, 12:19pm UTC](https://zatca1.discourse.group/t/zatca-api-failuer/4255 "2024-11-20T12:19:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moalnatour](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@moalnatour](https://zatca1.discourse.group/u/moalnatour)\
**Post date:** [November 20, 2024, 12:19pm UTC](https://zatca1.discourse.group/t/zatca-api-failuer/4255/1 "2024-11-20T12:19:23Z")

</div>

all API’s from zatca return this error

cause: Error: unable to verify the first certificate  
at TLSSocket.onConnectSecure (node:\_tls\_wrap:1679:34)  
at TLSSocket.emit (node:events:518:28)  
at TLSSocket.emit (node:domain:489:12)  
at TLSSocket.\_finishInit (node:\_tls\_wrap:1078:8)  
at ssl.onhandshakedone (node:\_tls\_wrap:864:12) {  
code: ‘UNABLE\_TO\_VERIFY\_LEAF\_SIGNATURE’  
}

---

<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:** [November 21, 2024, 6:15am UTC](https://zatca1.discourse.group/t/zatca-api-failuer/4255/2 "2024-11-21T06:15:04Z")

</div>

Morning @moalnatour

Thanks for reaching out,

Can I kindly ask you to elaborate more with your concerns with one of the cases that return the above error, to provide comprehensive support as usual.

Additionally, please note that all the APIs in both environments (Simulation and production) are working fine with now blocker.

Thanks,  
Ibrahem Daoud.
