Discount codes can be entered during the checkout process.  If the order meets the criteria for the use of the discount code, the discount will be automatically applied at the time of checkout.