Try our conversational search powered by Generative AI!

Create Discount from code


Is it possible to programmatically create a Discount?

Same as would happen if it were done from UI,


/Stefan Sonesson

Feb 13, 2018 14:37


I wrote about it a while ago: 

promotions are just content, so you can use the IContentRepository to create/load/update/save the PromotionData instance 

Feb 13, 2018 14:48

Quan thats golden! Thanks alot.

Feb 13, 2018 15:06
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.