2

Any option to update order status processing to complete in Magento 2 using Rest API.

Abdul Pathan
2,84212 silver badges22 bronze badges
asked Jul 5, 2019 at 15:26
2
  • You should create shipment throught API. The status will automatically change to complete. Commented Jul 5, 2019 at 17:07
  • Depending on whether you actually want to actually create a shipment or not, through Magento's API, this SO post shows another way and after trying it out, it works fine. magento.stackexchange.com/questions/315169/… Commented Mar 12, 2021 at 9:43

2 Answers 2

1

For changing order status processing to complete You need to call following API.

Endpoint

POST <host>/rest/<store_code>/V1/order/3/ship

where 3 is the order id.

Headers

Content-Type application/json
Authorization Bearer <administrator token>

You will get Shipment ID in resonse and status of order will changed to completed.

answered Jul 9, 2019 at 4:34
0

Use SalesShipOrder

POST https://{host}/index.php/rest/V1/orders/{orderId}/ship with the payload described at the link above for each item (product) within the order and when all have been "shipped", the order will be automatically changed to "complete"

answered Jul 9, 2019 at 4:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.