# Change order of updated\_at when getting shipped orders

**URL:** <https://developer-forum.veeqo.com/t/change-order-of-updated-at-when-getting-shipped-orders/121>\
**Category:** API Queries (How To)\
**Created:** [June 19, 2018, 4:12pm UTC](https://developer-forum.veeqo.com/t/change-order-of-updated-at-when-getting-shipped-orders/121 "2018-06-19T16:12:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![littlepixiez](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/littlepixiez/32/17_2.png) [@littlepixiez](https://developer-forum.veeqo.com/u/littlepixiez)\
**Post date:** [June 19, 2018, 4:12pm UTC](https://developer-forum.veeqo.com/t/change-order-of-updated-at-when-getting-shipped-orders/121/1 "2018-06-19T16:12:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![phil](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/phil/32/43_2.png) [@phil](https://developer-forum.veeqo.com/u/phil)\
**Post date:** [June 22, 2018, 12:17pm UTC](https://developer-forum.veeqo.com/t/change-order-of-updated-at-when-getting-shipped-orders/121/2 "2018-06-22T12:17:46Z")

</div>

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**

---

<div class="post-metadata">

**Author:** ![littlepixiez](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/littlepixiez/32/17_2.png) [@littlepixiez](https://developer-forum.veeqo.com/u/littlepixiez)\
**Post date:** [June 25, 2018, 3:27pm UTC](https://developer-forum.veeqo.com/t/change-order-of-updated-at-when-getting-shipped-orders/121/3 "2018-06-25T15:27:54Z")

</div>

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](https://api.veeqo.com/orders?page_size=10&page=1&updated_at_min=2017-10-01+00%3A00%3A00&status=shipped&channel_ids%5B%5D=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! 🙂

Thanks,  
Tawny

---

<div class="post-metadata">

**Author:** ![phil](https://yyz1.discourse-cdn.com/flex033/user_avatar/developer-forum.veeqo.com/phil/32/43_2.png) [@phil](https://developer-forum.veeqo.com/u/phil)\
**Post date:** [June 27, 2018, 11:51am UTC](https://developer-forum.veeqo.com/t/change-order-of-updated-at-when-getting-shipped-orders/121/4 "2018-06-27T11:51:19Z")

</div>

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](https://app.veeqo.com/orders?page=1&query=&tag_filter=false&page_size=100&order_by=created_at&order_direction=desc&created%5Bbefore%5D=2018-02-01&created%5Bafter%5D=2018-01-01&status=shipped)

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