woocommerce / woocommerce-rest-api

This is the WooCommerce core REST API Package. It runs standalone as a feature plugin too.
71 stars 46 forks source link

Update the order status, error 404 is appearing #245

Closed thivapraba closed 3 years ago

thivapraba commented 3 years ago

I am trying to update the order status through Woocommerce REST API but i egt 404 error and could not archieve this even via Postman. I am using Axios to perform request in VUE.js. I could not realize in which part I am doing wrong.

This is my request axios.put('https://staging/wp-json/wc/v3/orders/1977/consumer_key=123&consumer_secret=456', {status: "completed"});

Any suggestions please...

vedanshujain commented 3 years ago

The issue is before consumer_key it should be ? and not a / since consumer key are params and not part of the URL. So your URL should be https://staging/wp-json/wc/v3/orders/1977?consumer_key=123&consumer_secret=456.

Closing the issue, but feel free to reply back if it does not solve it, or there are more errors.