I want to update order status using magento's rest api
-
14-04-2021 - |
Question
I want to use Magento Api for Updating Status of order in Magento 2.3.5 so anyone can guide me from scratch how can i use api. I also want to know in Magento how many default api is there and how to use api in php file. so anyone have idea then please share with me.
Thank you In Advace.
La solution
Check this api {{your url}}rest/V1/orders and apply following params to update status
{
"entity": {
"entity_id": orderid,
"state":"processing",
"status": "processing"
}
}
Autres conseils
Please follow link create module and still you face any problem let me know
https://meetanshi.com/blog/create-custom-rest-api-in-magento-2/
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange