Change order of updated_at when getting shipped orders

Hi there,

Is it possible to give us the oldest orders first – either updated_at or created_at, but ascending instead of descending?

Thanks,
Tawny

Hey Tawny,

It should be as simple as:
https://app.veeqo.com/orders?page=1&page_size=100&order_by=created_at&order_direction=desc&status=awaiting_fulfillment

With the crucial bit being the order_direction=desc

Hey Phil,

Hmm I can’t seem to get this to work at all… Not sure what I’m doing wrong?

This is the URL I’m calling:

https://api.veeqo.com/orders?page_size=10&page=1&updated_at_min=2017-10-01+00%3A00%3A00&status=shipped&channel_ids[]=CHANIDHERE&order_by=updated_at&order_direction=asc

All other parameters are working as expected, just not order by or order direction (trying it asc/desc etc)… also trying the call you gave me but still can’t get it to work? I want the ones to appear from October first! :slight_smile:

Thanks,
Tawny

Hey Tawny,

Nope, I can’t get it to work for me at the moment either. I’ll create a ticket for our engineers to fix.

The alternative way is to specify a date range:

https://app.veeqo.com/orders?page=1&query=&tag_filter=false&page_size=100&order_by=created_at&order_direction=desc&created[before]=2018-02-01&created[after]=2018-01-01&status=shipped

key bits created%5Bbefore%5D=2018-02-01 and created%5Bafter%5D=2018-01-01