FROM CACHE - en_header

Trouble getting pagination link past page 3

Shopify Partner
24 1 2

I'm trying to retrieve a list of orders from a given time frame chosen by the user, usually about a 1 month period. I have written a script in php using curl and also in c#. The results are the same once the pagination reaches past 3 the link element of the header only returns a next link, no previous and it is the same link no matter what.  So say there are 7 pages (1750 orders /250 limit) the link returned in the header will be the same for pages 3-7 (no previous link in the header data) and extra data will come through. Say, for example I choose the date range 8-29-2021 to 10-03-2021 I will get data from 8-26-2021 to 8-28-2021 and from 11-1-2021 to the present day. An example request id would be 549a7edd-f967-4bc3-b828-8d130ee42369. 



Reply 1 (1)
Shopify Staff
Shopify Staff
267 40 44

Hi @JamesTankersley 

Thanks for providing the x-request-id! I took a look in our logs and found that the endpoint URL is incorrect - it looks as though you are duplicating the URL and including it as the first parameter. I would recommend logging your outgoing requests in order to debug this 🙂 I hope this is helpful - please let me know if you have further questions!

Kind Regards,

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog