November Happy Hour will be moved to Thursday December 5th.

Override prices when adding through EpiServerAPI

Vote:
 

Hi, 
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

#206929
Sep 04, 2019 11:02
Vote:
 

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)  

#206932
Sep 04, 2019 11:45
Vote:
 

Thank you !

#206954
Sep 04, 2019 13:52
Vote:
 

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

#206968
Sep 04, 2019 18:09
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.