Once you have created tickets, you can create promotional code.
Manage > Tickets and rates > Click on "Add a promotion code"
1) Choose your code (you can generate an random code if necessary)
2) Select the eligible tickets
3) Specify the percentage of the discount.
Note that you can fix a maximum number of uses.