I would expect either the store configuration (since that's where an admin can set it) or a separate REST endpoint to provide information on available order statuses.
@fvschie do you mean the status for a particular order, or a list of all possible statuses including custom ones?
I meant the list of all possible statuses.
We want to trigger a campaign, but not all customers assign statuses to states properly, so we'd rather allow them to select statuses that should trigger the campaign.
Should probably be in the same endpoint as the store config, as that's where you configure it in the Admin panel.
@misha-kotov please review
Any update?
Is there any update on this?
@fvschie , please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this issue. The GitHub issue tracker is intended for Magento Core technical issues only.
@magento-engcom-team i know the issue should be discussed in Community Forums or the Magento Stack Exchange site. but i cannot get solution yet. Do magento2 api has this endpoint?
Imao the ReST api endpoint for order statuses is part of the core func - just like listing orders. Statuses are not module functionality, so if you wanna for example be able to update particular order with specific status, you should be able to retrieve all possible order statuses, right ?
So, atm you cant change orders status, because there is no api func to retrieve them.