[#874] REST API: Sort / Order booking results

Migrated from Redmine #874 | Author: Rehan H
Status: New | Priority: High, I’m very impatient | Created: 2022-04-28


Hi, is there a way to sort the listings response by id, start date, or any other parameter?

I see the ‘order’ field under the API documentation section, but it’s not working for the REST API.

Thanks

Rehan H wrote:

Rehan H wrote:

Hi, is there a way to sort the listings response by id, start date, or any other parameter?

I see the ‘order’ field under the API documentation section, but it’s not working for the REST API.

API documentation | SimplyBook.me Online Scheduling

Thanks

Redmine Admin wrote:

hi, it is sorted by id by default. There is no way to sort it by any field

Rehan H wrote:

Is there a way to change the order direction? Ascending to Descending order?

Redmine Admin wrote:

unfortunately no. You can reorder data your side if needed

Rehan H wrote:

The problem is that the date is paginated and is in ascending order so its not possible to sort the data on my own. Can you give me an example of how to sort data on my end?