Override prices when adding through EpiServerAPI


When I add a price via EpiServerAPI, the old value isn't deleted, is there any option I can force an override when new price come.
Thank you

Sep 04, 2019 11:02

ServiceAPI uses IPriceDetailService which keeps prices as-is. So you have two options:

  • Instead of POST, using PUT to update a price
  • Use DELETE to delete the old price (of course this will mean more work)

Note that on your site if you are using IPriceService then you will get the optimized prices (lowest prices for lowest required quantity, in same market and same period, win)  

Sep 04, 2019 11:45

Thank you !

Sep 04, 2019 13:52

Hi Sergiu, If your question has been answered, please click the Accept this Answer box in the post that provides the correct response.

Sep 04, 2019 18:09