Helpcenter +918010117117 https://cdn1.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" support@storehippo.com https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

API Throttling / Limiter

As per the current API implementation, we have a limit on the number of requests per second per store.

The current request limit is 2 API requests per second (~ 120 API requests per minute) per store.

Methods to handle API rate limits

We suggest some methods to handle the limitations:

Using wait/sleep between API calls

While hitting the API, you can add a sleep/wait time of 1 second after every 2 consecutive requests.

Sample Nodejs code to implement sleep:

function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}
<loop>
   <apicall>
   await sleep(1000);
<endloop>

Use Bulk Import

You can use the CSV import feature in order to insert or update bulk data to the entity. Using the import feature, you can add 10,000 add/update/delete requests at a time. The records added/edited through CSV are executed in the background in a sequential manner without explicit throttling limit. Please note that only one import process run at a time for one store.

The bulk import feature is available for products, users, sellers, shipments, coupon codes, etc.

Share:

2019-04-15T11:36:39.271Z