Open the Promote section.
Click Create promotion.
Then enter these parameters:
1. Enter a Name.
It is used for your convenience.
2. Enter a Code.
The code can be left blank. In this case the system will generate it automatically.
The promotion codes can be used many times without restrictions.
If you want to stop the running promotion, disable or delete it.
3. Select Enabled.
4. Specify the period when the promotion code is valid.
5. Save it.
Now you need to attach this promotion to the resource.
To do this, go to the resource configuration.
And create a Pricing component.
Enter the title. It is displayed in the order invoice.
Specify the formula for the discount.
For example, -20 and percentage.
Open the Constraints tab.
Select the Promotion and pick the created promotion.
You can see the result in action.
Create an order and enter the code to get the discount: 12345.