I want to update the status of an order to completed, via api
I’m trying to change the status like this:
method: PUT
URL: https://example.com/wp-json/wc/v3/orders/#IB.065.01.00140
BODY:
{
“status”: “completed”
}
and I get this:
{
“code”: “rest_no_route”,
“message”: “No route was found matching the URL and request method.”,
“data”: {
“status”: 404
}
}
but If i made the same request as a GET I get the order correctly