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.
Change Type to POST instead of GET. It will work
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.
what parameters should i pass in headers and should i pass an body
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.
Change Type to POST instead of GET. It will work
How can i reorder using the REST API