# Rate limit increase

**URL:** <https://zatca1.discourse.group/t/rate-limit-increase/1961>\
**Category:** Clearance and Reporting\
**Created:** [July 17, 2024, 10:41am UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961 "2024-07-17T10:41:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![malhamdan](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@malhamdan](https://zatca1.discourse.group/u/malhamdan)\
**Post date:** [July 17, 2024, 10:41am UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/1 "2024-07-17T10:41:07Z")

</div>

Dear Zatca support team,

We are facing an issue where the number of invoices we are issuing is very big and we are being rate limited by Zatca clearance endpoint sometimes for a whole minute. This is making it so that invoices are piling up and soon there will be invoices that have been waiting for longer than 2 weeks to be reported due to the sheer volume.

Is there a way to increase the rate threshold for our service? We are already parallelizing our calls to Zatca API but it does not seem to help much since we are being rate-limited.

---

<div class="post-metadata">

**Author:** ![malhamdan](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@malhamdan](https://zatca1.discourse.group/u/malhamdan)\
**Post date:** [July 17, 2024, 10:42am UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/2 "2024-07-17T10:42:16Z")

</div>

In terms of numbers, it is taking around 30-40 minutes to clear 1,000 standard invoices.

---

<div class="post-metadata">

**Author:** ![Embro](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/embro/32/1689_2.png) [@Embro](https://zatca1.discourse.group/u/Embro)\
**Post date:** [July 17, 2024, 12:58pm UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/3 "2024-07-17T12:58:32Z")

</div>

this rate is good 1000 per 30-40 minutes …  
i am not zatca team  
my advice to u …is to distribute POS to more than one sending server  
each sending server with its CCISD  
I hope it helps

---

<div class="post-metadata">

**Author:** ![malhamdan](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@malhamdan](https://zatca1.discourse.group/u/malhamdan)\
**Post date:** [July 17, 2024, 1:41pm UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/4 "2024-07-17T13:41:30Z")

</div>

Does ZATCA team share their rate limit / throttle policy? I can’t find it anywhere in documentation or in Q&A forum.

Unfortunately the current rate is not sufficient for our usecase, and I would like to hear from Zatca if it is possible to know the exact throttle policy to know if there is another way to do it than generate and manage multiple CCISDs.

---

<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:** [July 17, 2024, 1:50pm UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/5 "2024-07-17T13:50:29Z")

</div>

Dear @malhamdan

Thanks for reaching out.

To ensure a comprehensive support, please provide the below info:

What is the avg size for invoices?  
If you can share the full API requests and response to the SP mail.

Thanks.

---

<div class="post-metadata">

**Author:** ![malhamdan](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@malhamdan](https://zatca1.discourse.group/u/malhamdan)\
**Post date:** [July 18, 2024, 8:38am UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/6 "2024-07-18T08:38:11Z")

</div>

Dear @idaoud , be advised that the issue is no longer occurring when we checked our systems today and the requests are being reported quickly with no issue. Thank you for your response and I wil be sure to provide these details if it were to happen again to SP email.

---

<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:** [July 18, 2024, 9:28am UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/7 "2024-07-18T09:28:40Z")

</div>

Dear @malhamdan

It’s great to hear that you are now able to send your invoices without any issues. However, if possible, could you please share the detailed information mentioned above? This will greatly aid us in our investigation and troubleshooting.

Thank you for your cooperation.

---

<div class="post-metadata">

**Author:** ![asyed4u](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@asyed4u](https://zatca1.discourse.group/u/asyed4u)\
**Post date:** [July 21, 2024, 10:38am UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/8 "2024-07-21T10:38:22Z")

</div>

hi @idaoud

http-response something like “gateway timeout , 503 … ” at first attempt ( there is no fixed day or time ) and also its takes 30 seconds to 62 seconds

but its accepted at second http-request attempt …

---

<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:** [July 21, 2024, 11:13am UTC](https://zatca1.discourse.group/t/rate-limit-increase/1961/9 "2024-07-21T11:13:30Z")

</div>

Dear @asyed4u,

Thanks for reaching out, and welcome in our community.

Yes, it’s a known issue and our team working on it, will get back to you ASAP.

Additionally, if possible, could you please share the detailed information (Full request and response) to SP email?

This will greatly aid us in our investigation and troubleshooting.

Thank you for your cooperation, and welcome again in our community.
