cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 REST API: changing product's price doesn't work

Magento 2 REST API: changing product's price doesn't work

Hi,

 

I'm using the following endpoint to add items to my cart:

/V1/carts/{cartId}/items/{itemId} 

According to the documentation, the payload should be at least:

cartItem {
  quote_id: ...,
  qty: ...
}

I personally add cartItem.sku, and API calls just work fine. 

 

The problem is, providing a cartItem.price information doesn't work as expected. The API returns an object showing the item with its original price, despite I'm providing a different price in the payload.

 

Strangely, providing a cartItem.qty information different from the original item quantity works fine...

 

Can anybody help me to understand this issue?

 

Thank you