question

kcdev avatar image
kcdev asked Nicholas Ho answered

429 too many requests with a single api call

Hi,

We randomly get a 429 on the orders endpoint when we only make one API call. We run these overnight as cron jobs. When they fail and we rerun them, they always work. The calls are setting a limit of 1000 and the code will make additional calls if pagination is required. However, I can see for all the dates involved, that the number of results is always less than this.

Hope you can help.

Regards

Graham

REST API
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nicholas Ho avatar image Nicholas Ho ♦♦ commented ·

Hello Graham, which orders endpoint are you using? REST Platform API, E-Commerce, export?

0 Likes 0 ·
kcdev avatar image kcdev commented ·

Hi Nicholas, I'm using REST

0 Likes 0 ·

1 Answer

·
Nicholas Ho avatar image
Nicholas Ho answered

Hello we recommend you use our Export API for obtaining bulk order data from your merchants. It is possible that the extra pagination calls, multiplied by the number of merchants you are pulling data from, is causing you to hit your rate limit and resulting in the 429 response. More details on rate limits and 429 prevention here.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community