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

Hello,

Thank you in advance,

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

You may want to look at filters: https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid

@NextMike schrieb:

You may want to look at filters: https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid

**Hello, Thank you so much for your response  @NextMike, yes i visited your link but there is filter option like  filter by paymentStatusId, orderStatusId, clearedDate **here where and how can i pass the date range or order for last 12 hours, please help

@NextMike schrieb:

You may want to look at filters: https://developers.shopware.com/developers-guide/rest-api/examples/order/#filter-by-orderstatusid

 

 

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