Discount codes can be created at the Global level of the Azavista, in the Discounts Sub-module of the Tickets and Products Module.
There, click on the + button on the right side of the screen. Fill in the required information, including the name, the percentage, and the status of the discount code.
To edit an existing code, click on the Actions menu of a code and select "View details".