Web API call to /V1/orders changes Order Increment ID
Preconditions
- Magento 2.
Steps to reproduce
- Create an Order.
- Note the Order Increment ID
- Update order via REST API:
POST http://ce.dev.local/rest/V1/ordersAccept: */*Cache-Control: no-cacheContent-Type: application/jsonAuthorization: Bearer <API key>{"entity": {"entityId": "<Order ID>","state": "complete","status": "complete"}}
Expected result
- Order Increment ID remains the same.
Actual result
- Order Increment ID is changed.
Hi @Sunil-Nethues. Thank you for your report. To help us process this issue please make sure that you provided the following information:
- [ ] Summary of the issue
- [ ] Information on your environment
- [ ] Steps to reproduce
- [ ] Expected and actual results
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me {$VERSION} instance
where {$VERSION} is version tags (starting from 2.2.0+) or develop branches (2.2-develop +).
For more details, please, review the Magento Contributor Assistant documentation.
@Sunil-Nethues do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
- [ ] yes
- [ ] no
@magento-engcom-team give me 2.2.0 instance
Hi @Sunil-Nethues. Thank you for your request. I'm working on Magento 2.2.0 instance for you
Hi @Sunil-Nethues, here is your Magento instance.
Admin access: https://i-17828-2-2-0.engcom.dev.magento.com/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.
thanks @magento-engcom-team can i please request for sample data to reduce time replicating the issue ?
@Sunil-Nethues, thank you for your report. We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation or latest release.
hi @magento-engcom-team i asked for the installation to have sample data installed, i am doing it manually give me some time to replicate it and send you a message.
hi @magento-engcom-team we are succeeded in trying to replicate the issue on the fresh instance provided by you as well.
- I have done following, completed an order using Check/money order
- created a user with API access
- Run the shipment creation script from a thrdparty server in this case URL was : https://www.skinoracle.com/shiptest.php?oid=1 {you can use this url too by changing the order id}
I have attached the content of shiptest file with this comment.
After above url was run the shipment is created but the order increment is changes from 000000001 to 000000002
Please advise further.
just an additional information if we pass the increment id while changing the status to complete in above file last call, the order increment id does not changes.
hi @magento-engcom-team any information on this ticket please.
Regards Sunil
hi @magento-engcom-team any information on this ticket please.
Regards Sunil
@Sunil-Nethues, thank you for your report. We've acknowledged the issue and added to our backlog.
@engcom-backlog-pb Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-95038, MAGETWO-95039 were created
thanks @magento-engcom-team for acknowledging the issue, looking forward for the fix.
For more information if we send the order increment id with the call above the order increment id is not changed, i thought this might help.
Hi @milindsingh. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if your want to validate it one more time, please, go though the following instruction:
-
[x] 1. Add/Edit
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to. -
[ ] 2. Verify that the issue is reproducible on
2.3-developbranchDetails
- Add the comment@magento-engcom-team give me 2.3-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.3-developbranch, please, add the labelReproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
-
[ ] 3. Verify that the issue is reproducible on
2.2-developbranch.Details
- Add the comment@magento-engcom-team give me 2.2-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.2-developbranch, please add the labelReproduced on 2.2.x -
[ ] 4. If the issue is not relevant or is not reproducible any more, feel free to close it.
@magento-engcom-team give me 2.3-develop instance
Hi @milindsingh. Thank you for your request. I'm working on Magento 2.3-develop instance for you
Hi @milindsingh, here is your Magento instance.
Admin access: https://i-17828-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.
@magento-engcom-team @engcom-backlog-pb I am not able to produce the issue regarding increment id change, but I found a new one in Magento 2.3-develop instance.
- Create shipment with API with following data, and I see a broken Magento Admin UI for Shipment View.
{
"entity": {
"increment_id": "000000002",
"order_id": 1,
"items": [
{
"sku": "Test",
"qty": 1
}
],
"tracks": [
{
"order_id": 1,
"qty": 1,
"track_number": "123",
"title": "Test",
"carrier_code": "dhl"
}
]
}
}


#dmcdindia1