question

hj02 avatar image
hj02 asked mkonnekt commented

Only getting 100 inventory results

When I get my inventory using the web api, I only receive 100 items at a time. How do I get all items in one query?

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.

hj02 avatar image
hj02 answered mkonnekt commented

The default setting for items view in the web API is a limit of 100 items. Is there any way to bypass this or do I always need to enter a limit value?

1 comment
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.

What if you have more than 1000 items?

0 Likes 0 ·
jim-patel avatar image
jim-patel answered

https://docs.clover.com/build/web-apps/web-api/#pagination

The Paginiation entry indicates that 100 is the default limit and 1000 is the hard limit, so you have to use multiple queries to get more than that many results.

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.

Welcome to the
Clover Developer Community