Magento2: Missing REST API info: Order statuses

Created on 19 Oct 2016  路  8Comments  路  Source: magento/magento2

Preconditions

  1. Magento 2.0.9 here (local test vagrant), but applies to all versions.

Problem description

  • An admin in Magento2 can create custom order statuses.
  • I'm making an integration for Magento2 with an external platform.
  • I sync orders, and want to take action on order status change to any of a number of order statuses.
  • An end user can configure which order status to take action on.
  • I cannot access the available order statuses.

Expected solution

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.

bug report feature request

All 8 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings