-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Order cancel api "/V1/orders/{order_id}/cancel" doesn't fail for completely invoiced order #4479
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
It seems the API call always return true, even if the order is already cancelled or invoiced. Instead it should returning some error code. |
Hi I think this function in OrderService.php this function
was using Order.php cancel which is always return order information even though canCancel() returns false.
I think this is the issue |
@vzabaznov , @NadiyaS any update on it?? |
@ruby10 Hi, thank you for your report. Internal ticket was created MAGETWO-70442. |
@ruby10, thank you for your report. |
@ruby10 thank you for your report. Unfortunately, we are archiving this ticket now as it did not get much attention from both Magento Community and Core developers for an extended period. This is done in an effort to create a quality, community-driven backlog which will allow us to allocate the required attention more easily. You may learn more about this initiative following this link. Please feel free to comment or reopen the ticket if you think it should be reviewed once more. Thank you for collaboration. |
[honey] MC-17875: Refactor GraphQl Integration tests
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
As per observation on Magento2.0 on back-end there is no "Cancel" option for the order which is invoiced completely, which goes as per logic. But If I make cancel call via api "/V1/orders/{order_id}/cancel" in response I am getting "true" ,which is not correct. According to my understanding we should not be allowed to make cancel call for such orders. Also , On making cancel call for already "cancelled" orders , we get "true" in response, instead of some error message.
The text was updated successfully, but these errors were encountered: