System for creating discount codes