- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
which end point should i use to cancel and reorder the user orders in magento 2. i tried like this. help me
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change Type to POST instead of GET. It will work
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How can i cancel an order of a customer and reorder in Magento2 using REST API
Hello @pratap_penmetsa
You can use predefined endpoint: http://www.example.com/rest/V1/orders/rderid/cancel to cancel order.
Please check your URL once.
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How can i cancel an order of a customer and reorder in Magento2 using REST API
what parameters should i pass in headers and should i pass an body
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How can i cancel an order of a customer and reorder in Magento2 using REST API
Please pass below mentioned param:
[{"key":"Authorization","value":"Bearer lljno83kuf9rgy0t3wxl1aj8huxb4bn",},{"key":"Content-Type","value":"application/json","description":""}]
In Get method you cannot pass body.
Just pass order id in URL.
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change Type to POST instead of GET. It will work
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How can i cancel an order of a customer and reorder in Magento2 using REST API
How can i reorder using the REST API