Get Items not getting all items!

I am using the endpoint https://api.merchantos.com/API/Account/{accountID}/Item.json to retrieve all the items.
However I have spotted a live item that isn't included when I get all the pages on the above endpoint. How is the endpoint filtering the data? I can't call the missing item since I don't know it's itemID. I only know the EAN/UPC/systemSKU.
The reason for my question is that the missing item is a duplicate of another item. I am therefore scared that I have other duplicate products that I can't see!
Thanks in advance!
1 comment
Hey @reports ,
Great question! Lightspeed returns 100 objects (items in this case) per API request and requires you to use the "offset" parameter to page through the results
Your first API request might look like this:
https://api.lightspeedapp.com/API/Account/{{accountID}}/Item.json?offset=0
Your second API request would look like this:
https://api.lightspeedapp.com/API/Account/{{accountID}}/Item.json?offset=
100You would continue increasing the offset until you receive no more results, then you would be getting all the data
You can read more about this here:
Hope this helps!
Adrian Samuel
Software Developer
Lightspeed HQ