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