Question

I want to trace records of all the completed orders which has been received from my Magento store to my ERP store through Rest API. I have created custom column through SQL query in sales_order so that I can get all those orders whose custom order value is set to 0 (default value).

I am using this API

index.php/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=custom_attribute&searchCriteria[filter_groups][0][filters][0][value]=1

to get all the records of matching custom column value which is working perfect. However I need an API through which I can update the custom column value to 1 once I receive that order.

Is there any API available through which I can able to update the custom column value by order id?

Était-ce utile?

La solution

Never mind just found out the answer by myself. Magento2 Update Order attributes API index.php/rest/V1/orders/:orderid does not allow to update custom order attributes. So i have created my own custom API to cater my requirement

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top