The field appears automatically on your checkout page when you have at least one discount code active. If no discount code is active, the field is automatically hidden from the page.
You can create discount codes and coupons in the "Discount codes /coupons" section of your "Products" section in your site editor.