# How to fetch all orders of last 12 hours only instead of all using Order API ?

**URL:** <https://forum.shopware.com/t/how-to-fetch-all-orders-of-last-12-hours-only-instead-of-all-using-order-api/62515>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [21. Oktober 2019 um 11:37 UTC](https://forum.shopware.com/t/how-to-fetch-all-orders-of-last-12-hours-only-instead-of-all-using-order-api/62515 "2019-10-21T11:37:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)\
**Post date:** [21. Oktober 2019 um 11:37 UTC](https://forum.shopware.com/t/how-to-fetch-all-orders-of-last-12-hours-only-instead-of-all-using-order-api/62515/1 "2019-10-21T11:37:31Z")

</div>

Hello,

Thank you in advance,

How to fetch all orders of the last 12 hours only instead of all using Order API ?

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [22. Oktober 2019 um 08:16 UTC](https://forum.shopware.com/t/how-to-fetch-all-orders-of-last-12-hours-only-instead-of-all-using-order-api/62515/2 "2019-10-22T08:16:46Z")

</div>

You may want to look at filters:&nbsp;[https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid](https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid)

---

<div class="post-metadata">

**Author:** ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)\
**Post date:** [22. Oktober 2019 um 11:24 UTC](https://forum.shopware.com/t/how-to-fetch-all-orders-of-last-12-hours-only-instead-of-all-using-order-api/62515/3 "2019-10-22T11:24:10Z")

</div>

> [@NextMike schrieb:](https://forum.shopware.com/profile/19433/NextMike "NextMike")
> 
> You may want to look at filters:&nbsp;[https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid](https://developers.shopware.com/developers-guide/rest-api/examples/order/?_ga=2.153585978.324635711.1571643715-1178017134.1563952751&_gac=1.216138018.1568643432.EAIaIQobChMIvOWh98PV5AIVB9KyCh1Iiw9tEAAYASAAEgK-jPD_BwE#filter-by-orderstatusid)
> 
> \*\*Hello, Thank you so much for your response&nbsp; @[NextMike](https://forum.shopware.com/profile/19433/NextMike), yes i visited your link but there is filter option like&nbsp; filter by `paymentStatusId, orderStatusId, clearedDate `\*\ ***here where and how can i pass the date range or order for last 12 hours, please help**

---

<div class="post-metadata">

**Author:** ![ronaksolanki10](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ronaksolanki10](https://forum.shopware.com/u/ronaksolanki10)\
**Post date:** [22. Oktober 2019 um 11:54 UTC](https://forum.shopware.com/t/how-to-fetch-all-orders-of-last-12-hours-only-instead-of-all-using-order-api/62515/4 "2019-10-22T11:54:59Z")

</div>

> [@NextMike schrieb:](https://forum.shopware.com/profile/19433/NextMike "NextMike")
> 
> You may want to look at filters:&nbsp;[https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid](https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid)
> 
> &nbsp;
> 
> &nbsp;
> 
> Hello, I tried with `https://domains/api/orders?filter[0][property]=orderTime&filter[0][expression]=>=&filter[0][value]=2019-10-21`
> 
> and this is returning the order whose ordertime is greater than equals to 2019-10-21, and it’s look ok but how can i pass time with that also
