﻿#### 

Sitecore Experience Commerce (XC) 9 has the Promotions feature OOTB, which enables you  to create and manage promotions via the BizFx site. [This resource](https://doc.sitecore.com/users/93/sitecore-experience-commerce/en/work-with-promotions.html) explains how to work with promotions in detail.

When I worked with promotions last time, I had a weird situation, which looked like a bug. What I did is I created a new promotion, added qualifications and benefits. I would like to highlight that I didn’t create public or private coupons and I didn’t approve the promotion, it was saved as a draft. Then I added several products to the cart, applied the promo, and...I got a discount. Just to remind you, I didn’t approve the promotion yet. Then why did I get a promotion discount?

After some research, I found this in the XC documentation:

*However, you can test a promotion in your authoring environment before you send it through the approval process.*

Usually, if you work with XC, you have an on-premises installation of it with a default Storefront site. Based on the default configuration, Sitecore Experience Platform is configured to communicate with XC in *CommerceAuthoring* role. This configuration located in *sxa.storefront.com\App\_Config\Include\Y.Commerce.Engine\Sitecore.Commerce.Engine.Connect.config*

![](https://www.brimit.com/-/media/images/blog/sitecore-commerce-engine-connect-config.png)

![](https://www.brimit.com/-/media/images/blog/commerce-authoring-sc9-home.png)

In a standard installation it points to *CommerceAuthoring* role. It means that the Commerce Engine would likely retrieve the data directly from the database to provide the most recent information. You can find more info about the Commerce Engine environments [here](https://doc.sitecore.com/developers/93/sitecore-experience-commerce/en/commerce-engine-environments.html).

After that, I tried to re-configure XP to communicate with *CommerceShops* role and checked cart again. A promotion discount was not applied and this is what I expected initially. But why does it work for *CommerceShops*, but doesn't work for *CommerceAuthoring*?

Now, the answer is simple. *CommerceAuthoring* and *CommerceShops* environments have *GlobalPromotionsPolicy*:

![](https://www.brimit.com/-/media/images/blog/json-diff-promotion-discount.png)

You can re-configure and set the value of *PromotionsRequireApproval* as “true” in the *CommerceAuthoring* role. Then, run a Bootstrap request via Postman to apply the changes in the XC configuration.

I hope someone who has the same issue finds this useful.

###### Author

[!\[apaliakou\](https://www.brimit.com/-/jssmedia/feature/blogs/authors/apaliakou.jpg?h=216&amp;iar=0&amp;w=360&amp;hash=5BE96F17AE5B47F66D9F684B87773675)
Andrei Paliakou
Sitecore MVP/ Lead Developer](https://www.brimit.com/blog/author?authors=Andrei%20Paliakou)

#### More on Sitecore

[!\[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides#How-toDXPE-commerce
##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects
Optimize and accelerate the development and deployment of complex multisite Sitecore projects.
Alexei Vershalovich on July 17, 2024](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

[!\[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-toDXP
##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story
How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.
Sergey Baranov on October 2, 2023](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

[!\[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)\](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-toDXPE-commerce
##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)
Discover how a headless CMS can benefit organizations that use Sitecore.
Daniil Raschupkin, Palina Trokhautsava on September 15, 2022](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)

![](https://bat.bing.net/action/0?ti=187017043&amp;tm=gtm002&amp;Ver=2&amp;mid=35630eee-4334-4fa6-958c-270ef3022fe6&amp;bo=2&amp;gtm_tag_source=1&amp;pi=0&amp;lg=en-US&amp;sw=800&amp;sh=600&amp;sc=24&amp;nwd=1&amp;tl=Sitecore%20Commerce%209%20-%20An%20issue%20with%20promotion%20discounts.%20They%20are%20saved%20as%20a%20draft%20but%20apply%20to%20cart.&amp;p=https%3A%2F%2Fwww.brimit.com%2Fblog%2Fsitecore-commerce-9-promotion-discount-is-applied-in-draft-state&amp;r=&amp;lt=274&amp;evt=pageLoad&amp;sv=2&amp;asc=D&amp;cdb=AQAY&amp;rn=207668)