question

ivan-garcia avatar image
ivan-garcia asked ivan-garcia commented

Rest V3 API - Get All inventory Items error in the API

Hello,

We are trying to get all inventory items from a merchant calling the:

https://api.clover.com/v3/merchants/{...

But not all items on the inventory are being returned in the call. Is there any restriction for the API? Do I need to change anything in the setup from the merchant?

I've tried in our test merchant in our developer account and in a liver merchant using Clover with the same results, more than a half of the items in the inventory are not returned via the API.

I've checked in the web access, inventory, items, category view, modify a category, and only the items in the last row are being returned via the API.

Inventory
1 comment
10 |2000

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

ivan-garcia avatar image ivan-garcia commented ·

I've checked the API v2 and it is returning all the items.

0 Likes 0 ·

1 Answer

jim-patel avatar image
jim-patel answered

According to the pagination section of the REST API documentation, the default limit is 100 items, with the hard limit being 1000 items, returned by any one call. You might be hitting the limit and need to use the limit and offset tags in order to get all of the items.

10 |2000

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