API PROBLEM with filter orders by orderStatusId

Hi,

I try to get a list of orders <> canceld and <> completed to sync the stock with a pos system.

But every time I get the error:

 {"success":false,"message":"Errormesage: [Semantical Error] line 0, col 131 near 'orderStatusId': Error: Class Shopware\\Models\\Order\\Order has no field or association named orderStatusId"}

I use an own perl api, not the php api, so here is the link which is called:

https://shop.domain:443/api/orders?filter[0][expression]=%3D&filter[0][value]=0&filter[0][property]=orderStatusId

decoded:

https://shop.domain.com:443/api/orders?filter[0][expression]==&filter[0][value]=0&filter[0][property]=orderStatusId

Other properties works fine. E. g. invoiceAmount:

https://shop.domain:443/api/orders?filter[0][property]=invoiceAmount&filter[0][value]=10&filter[0][expression]=>%3D

decoded:

https://shop.domain:443/api/orders?filter[0][property]=invoiceAmount&filter[0][value]=10&filter[0][expression]=>=

Any ideas?

 

Best regards

Daniel