Order by date ASC

According to this : https://developer.infusionsoft.com/docs/rest/#!/E-Commerce/listOrdersUsingGET - I can order by date.

But https://api.infusionsoft.com/crm/rest/v1/orders?access_token=my-token&contact_id=xxxxxx&since=2019-06-03T15:41:06.000Z&until=2019-06-03T19:41:06.000Z&paid=true&order=order_date doesn’t seem to be right. What is the right way to order by order_date ascending ?

Seems that the Documentation is Incomplete, or the API function is.

If you look here, the List Contacts function has an “order_direction” field.
https://developer.infusionsoft.com/docs/rest/#!/Contact/listContactsUsingGET

I see the values are “ascending” and “descending”.

Try adding “&order_direction=descending” to your Query to see if it works.

Cheers

I tried. Both ascending and descending is giving the same result.

You can raise an API Support Ticket here: https://developer.infusionsoft.com/support/tickets/create/