REST API Order Update request getting 400 error (Bad Request)
-
Hi
We have the Rest API integration working for our client, numerous requests work without issue however when trying to update the status to “completed” (the orders are already in processing status) I always get a https status code of 400, the curl raw response is a HTML 400 bad requests page. The request end point and body look correct :-
URL :https://<domain>.com/wp-json/wc/v2/orders/111827?consumer_key=<key>&consumer_secret=<secret>
Body : {“body”:”{“status”:”completed”}
The Added Rest API has correct permissions Read/Write.
On my localhost test instance the same request (different Order ID of course) works without any issues.
Any help here from what the issue could be to how to help debug the API request on the server would be greatly appreciated as I am stumped !
Thanks
- You must be logged in to reply to this topic.