Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Trouble getting pagination link past page 3

Trouble getting pagination link past page 3

JamesTankersley
Shopify Partner
31 1 3

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)

csam
Shopify Staff (Retired)
267 40 51

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,

To learn more visit the Shopify Help Center or the Community Blog.