0

Is it possible to change the order state via the REST API?

My issue at the moment is that I have orders stuck in the Payment Review state and I can not Invoice/Cancel/Ship them via the back end or the API.

I feel like I need to get the state of the order back to processing to be able to do any of these things but I can not find any way to move an order out of the Payment Review state either with the back end or the API.

As such these orders do not correctly track to customers or update stock information.

  • yes this is possible. what have you tried to achieve this? – Philipp Sander Nov 4 '19 at 16:46
0

POST {{baseUrl}}/V1/orders/

{
    "entity": {
        "entity_id":<entity_id>,
        "state":<state>,
    }
}
  • Oh my god! thanks! I was trying a very similar method and having zero luck... this worked perfectly – Krishan Patel Nov 4 '19 at 18:14
  • please upvote and accept if it helped. – Philipp Sander Nov 5 '19 at 8:16
  • Done, sadly stack wont accept my upvote yet (<15 rep) – Krishan Patel Nov 5 '19 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.