-
Notifications
You must be signed in to change notification settings - Fork 9.4k
On creating shipment via rest API order status remains unchanged #3307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is json with minimal data , that I have used. Any updates on the issue? |
Same behaviour here while making POST v1/shipment call, the status of the order is not changing. Any news on this? |
Hi guys, |
@NadiyaS Just wanted to inform you that per my conversation with another team member of yours (Maura), this issue is also being tracked by MAGETWO-48530 ticket. Pls link both the tickets as applicable. |
Hi, @rohitgupta4, |
@NadiyaS Could you please tell which release would this be in? And any ETA on that release? |
@NadiyaS is there any ETA on this bug fix? |
We are also getting this problem, is there any update on when a fix might be available? |
Is there any update on this issue? |
@NadiyaS Any updates on the release milestone related to this issue? |
Hey @NadiyaS , This issue has been blocker for development work we are doing, Please let us know the updates regarding this issue. |
Hi, I am also facing this issue in case of invoice creation. Any ETA for this ?? |
Hi Any update on this bug fix |
Same issue here on 2.0.6. A work around would be to mark the sales_order_item table and set qty_shipped to qty you ship. Also, update the order status in sales_order table columns state and status. Don't like this solution but it might help. |
@NadiyaS , @MomotenkoNatalia , is there any update on this issue ? |
@NadiyaS, any update on this. Its been open for three months without any updates.Its a very critical bug for integrating Magento with external system. Any ideas if this been actively worked on? |
We got the the same issue on 2.0.7, is there any update on 2.1.0? |
Hi, |
Thanks for this info. What does “as soon as possible according to other items priority” really mean though? Is this just not very high priority in the team’s view and so it will continue to be prioritized below other bugs?
|
I cannot see how this is not:
Most larger webshops do not use Magento in their warehouse to ship orders, and Magento is focussing on these larger webshops. Non of these webshops can mark orders as completed in Magento 2. It blows my mind. @NadiyaS Does a community pull request to fix this have a serious chance to be accepted? |
@NadiyaS : This bug is one major blocker for any kind of integration to 3rd party softwares. |
@NadiyaS I think this should be fixed asap as this will be blocking alot of integration partners who are into shipping integration. Please make this super priority. |
@NadiyaS , this issues seems to be a terrible problem for so many people developing integrations! |
We're experiencing the same issue, but it seems to be even more severe as the problem extends beyond updating the order status. Looks like no business rules enforcement takes place, for instance, it is possible to ship the same items multiple times and in quantities exceeding the ordered ones. Moreover, it appears possible to create a shipment with items that do not even belong to an order at all. The lack of the business rules validation applies to shipping addresses as well. @olysenko, please confirm the newly introduced API endpoints obey the business rules in exactly the same way as manipulations through the admin panel. What's the timeline for 2.1.3 release? Thanks |
@sshymko Yes I also noticed that the "ShipQty" against the item on the line is not updated when you use the REST, well am actually using the SOAP, API call. It's a bit of a PITA but if you
|
@sshymko Yes, I confirm. |
Did this get solved in 2.1.3 ? |
Yes, see description of /V1/order/{orderId}/ship in http://devdocs.magento.com/swagger/index.html |
Why does "POST /V1/order/{orderId}/ship" not work in Magento 2.1.1 CE? |
@marcosdba I had to change the payload sent as follows in order to get it working:
|
@cloudjibao Thanks for answering me and Forgive me I messed up the version. It's in 2.1.1 , /V1/order/{orderId}/ship not working !!! returns : "Request does not match any route error" |
Still the Status remains Unchanged after create the shipment in version 2.1.1 Is any other way to update the Order status to complete using Rest API call? |
@itzRamkumar, did you created an invoice before? As far as I know it doesn't change the order status to "complete" if the shipment or the invoice doesn't exist |
@itzRamkumar Read the comment! It's fixed in 2.1.3, so obviously in 2.1.1 it's still a bug. |
@apluzhnikov Yes Invoice is Created. @stephangroen How to upgrade 2.1.1 to 2.1.3 version. |
@apluzhnikov @stephangroen @NadiyaS Not worked in 2.1.5 version. OrderStatus : Processing URL : http://mysite.com/rest/V1/shipment Example Request : { Got Response Successfully but status not changed. Is anything need to change. Magento Version : 2.1.5 Update: http://mysite.com/rest/V1/order/30/ship above link worked in version 2.1.5. and status is updated. |
Hey I've been working on this and having a hard time with the order status changing much like a lot of people here. I've been Posting to http://siteURL.bz/rest/default/V1/order/111779/ship and have been getting shipment ids back. However it never updates the order status. Is what I read correct that an invoice needs to be created in order for the status to automatically update? |
@nem6087 If you want order status to go to "complete", yes, my understanding is that you also need to invoice the order. A complete order must be both invoiced and shipped. |
I am always getting the message 'You can't create a shipment without products.' Anyone, please guide me how to get order_item_id from the order? |
@Nishadup when you get the order data by id from magento, you always have a list of items, there you can find your order_item_id as "itemId" in JSON response (http://devdocs.magento.com/swagger/index_20.html -> salesOrderRepositoryV1 -> GET /V1/orders/{id}): |
@apluzhnikov, Thanks a ton. that resolved my issue. |
@Nishadup @apluzhnikov { |
@danscan1712 hi, I run this json and all is ok, shipment has been raised. In our case with id 16: |
Here is the stack over flow question: |
@amardeepthadisetty Hi, we got the same issue here, but then after we removed the block with arguments, it worked: |
@apluzhnikov Thank you for replying back. I am waiting for a new order to check. Will look into that and keep you posted. Thank you once again!!! |
Hey, Thank you @apluzhnikov , i have removed the one which you have mentioned, it did not work. Then i removed entire things, which i am not using. then it worked. This is the one I am using: Finally, tracking number, carrier code and title are being updated. Thanks for everything!!! |
@https://github.com/marcosdsdba Did you get the solution for above issue on 2.1.1v ? if not to upgrade. |
Solved in versions 2.4.x |
After creating order for an item with specified quantity , if shipment record for same is created via

"POST /V1/shipment/" ,(http://devdocs.magento.com/swagger/index.html#/ ),order status doesn't change to "Processing" from "Pending" as it is happening on creating shipment from Magento2.x back-end . Also in "Order information" data there is no info about shipped quantity whereas it shipped quantity is visible on creating shipment from Magento back end.
Also as shown in above image shipment record no-36 i,created via rest API, is having no value for column "ship-to name" ,

whereas shipment record created from back-end appears in following way
The text was updated successfully, but these errors were encountered: