Definition: Discount codes are personalized or publicly-released codes offered to customers as a purchasing incentive that reduces the price of an order. Discount codes can be an effective means for ecommerce stores to attract shoppers and encourage repeat customers.