Ordering the Orders API response

I work with a number of shops to set them up to integrate with a point of sale system via the API.

Up until recently we set up a private app which authenticated with a key and secret and by default returned orders with the most recent ones first when we called the API to the app.

Today I was setting up a new client for the first time since Shopify seems to have sunsetted private apps. I created a new app and found that the key and secret method for authentication no longer works. I was eventually able to authenticate with the access token so that part is fine now.

My problem is controlling the order of what is returned. Instead of by default returning most recent orders first I am now getting oldest orders first, and I can neither figure out how to change the sort order (I could not find anything in the API docs about that) or to paginate. This is complicated a bit since I am using a third party PHP library (https://github.com/phpclassic/php-shopify) to do the calls, so I am not working directly with calls to the API.

Any suggestions on how to either create a private app the way we used to, or control the API with the new app?

Thanks,

Barry

Hi there @barrytuber !

I just wanted to let you know I have moved your query here to our dedicated API forums.

As we’re not able to provide developer-level support ourselves, we have provided these threads which are monitored and responded to by our developers and Partners.

This is therefore the best place to get some input on your query from our wider Community.

All the best!

When private apps were “retired” was there any information that outlined the changes between how private apps behaved and how custom apps behave?