API Response only retrieves 100 elements at a time!
As I just started working with a new LightSpeed API I need to obtain the historical Sales and Items for my company from 01-07-2018. When I make this request I receive a large amount of data (about 100000 sales) but each response is limited to only 100 sales.
I know that the limit is set by adding &limit=(number of records you need) in your URL. In my case I need to retrieve so many that if this is limited to 100 per request it will take me a really long time to build my historical database.
I have tried to increase the limit to 10000 and to 1000 but with no success. Apparently it is set to be 100 at the most (I have been able to decrease the limit to 1, 10 and other figure < 100). Below the code I'm using to get my item information:
I know this technically is okay, but I'm just not getting the results I need.
I have already looked into the API documentation but I wasn't able to find any information on the subject.
How can I get all my information in just one call?
And if it's not possible to do so: How can I build my historical database in batches?