In administration panel go to Configuration => Configure modules
Select Gift cards module
In administration panel go to Sale => Gift cards
Code is generated automatically based on configurated code format. You can change a code manually.
Order amount from which a code is active. Value of 0 means there is no threshold.
An empty field means there is no threshold.