It would be great to have the option to automate discount codes, and to generate unique codes for customers with custom expiration dates at the time of generation. E.g. An API endpoint for calling the generation of a certain existing discount (via its id) would be very useful.
That way, it would be possible to integrate with other systems like mailchimp to be able to send discounts to customers without worrying if that particular discount has already been used by the customer.