Update order API

Hace 3 semanas
Hello,

We have gotten the nopCommerce API and have been experimenting with it. When testing one of the endpoints ( api-backend/Order/Update ) we noticed that it seems to reset all the data that we didn't update in the request. So, let's say that we updated the stock and price, then it would reset the description, title, etc. We work with a lot of API's and this kind of behaviour doesn't make much sense to us. Are we using the endpoint wrong, or is there a parameter we need to give to tell it that we only wish to update the fields we send on the REST API?
Hace 3 semanas
Thanks a lot for using our web API.

It's a default behaviour and there's no way to change it. It updates all properties of any entity sent with an HTTP request.

The same way like it updates all properties of any entity that you pass to any update methods in the core (not just in the web API plugin). For example, "UpdateProductAsync" method of "ProductService".
Hace 3 semanas
(Thus, just do a GET before you do the Update)