Open the Promote section.
Click Create promotion.
Enter a name.
It is used for your convenience.
Enter the code, specify the period when the promotion code is valid and click Create.
The promotion code can be used many times without restrictions.
If you want to stop the running promotion, disable or delete 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.
Then click on the Add condition button.
Pick the Promotion from the list of conditions.
Then select the created promotion and save it.
You can see the result in action.
Create an order and enter the code to get the discount: 12345.