question

brokenoval avatar image
brokenoval asked ·

Can we get a temporary API Rate Limit increase?

We will be doing a roll out of a new ERP across a 75 site client and I'm expecting to hit the API Rate Limit when we run the POST /items API. As we need to update the inventory separately for each location I expect we will be sending the POST /items request around 150,000 times in a short period of time.

Is it possible to get a temporary rate limit increase for a particular account and/or certain API Keys?

I have looked at doing the CSV upload manually for each site, but we need to store the Clover Item ID separately in the ERP, and only get this on response from the POST /item API. Other suggestions are welcome though.

Thanks in advance!
REST APIInventoryAPI Tokenrate limits
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Raymond Lee avatar image
Raymond Lee answered ·
Unfortunately we do not do temporary API rate limit increases, as in order for us to increase your API rate limits, you will have to go through an approval process where we verify that you are still hitting the rate limits even after optimizing all your API calls.

However, I see multiple solutions to your use case:

1. Use the CSV upload manually for each site, and then use a GET /items API call to get all the Clover Item IDs.

2. Use our BulkItems endpoint to create a bulk of inventory items.

Here is an example call with 2 items with the minimum required fields:
POST /v3/merchants/{
                {merchantId}}/bulk_items
Body:
{
    "items": [
        {
            "name": "item1",
            "price": 100
        },
        {
            "name": "item2",
            "price": 200
        }
    ]
}
Response:
[
    {
        "id": "SKEJQ5Z6NZ9E4",
        "hidden": false,
        "name": "item2",
        "price": 200,
        "priceType": "FIXED",
        "defaultTaxRates": true,
        "isRevenue": true,
        "modifiedTime": 1541097884000
    },
    {
        "id": "6VP1XV8E562G4",
        "hidden": false,
        "name": "item1",
        "price": 100,
        "priceType": "FIXED",
        "defaultTaxRates": true,
        "isRevenue": true,
        "modifiedTime": 1541097884000
    }
]

Note: You can pass in more fields, the same ones as the ones from our CreateItem endpoint.

1 comment Share
10 |2000 characters needed characters left characters exceeded

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

Thanks Raymond - the bulk upload might do the trick.

0 Likes 0 · ·

Welcome to the
Clover Developer Community