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.

1
  • yes this is possible. what have you tried to achieve this? Commented Nov 4, 2019 at 16:46

1 Answer 1

0

POST {{baseUrl}}/V1/orders/

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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