What are the ways to set coupon expiry?
When creating a coupon in the automated coupons app. Go to Expires At, then select an expiration date.

One more way to set expiry is by choosing the relative option. Choose Relative and you just have to enter the number of days after which the coupon will expire.

Moreover, you can set a coupon usage limit, which means the coupon will expire once used one time.