How do I create a coupon that can only be used by all customers until a certain number of units are sold in a given date and time range? Once that quantity is reached the coupon become inactive?
When setting up the coupon, set the Total Usage Limit field to the max number of orders for which you would like it to be available. You may also consider setting the customer usage limit if you want it to be redeemable to only one use per customer. You may also limit the date usage of the coupon by populating the start date/time and end date/time fields. Otherwise, the coupon is valid until the Total Usage value is reached.