Pointer Based Pagination For Draft Orders

Shopify Partner
25 0 1

Hi there!


In attempting to upgrade to pointer based pagination when using the draft_order endpoint, there are a few conceptual issues that make it difficult to use effectively.


The issue is in regard to sorting. There is no way to sort the API results so that the most recently created or updated draft orders are displayed first. With page based API calls, we could simply reverse the order of the pages shown, and get the desired result, or skip to the last page. With pointer based pagination, the only option to find the most recent page of draft orders is to make api calls until each page shown, then return the last page.


Additional search and filtering options for this API feature would be greatly beneficial!