How to fetch all orders of 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