There could be several reasons for failure. Coupons apply only to selected pricing plans. So, if you are using a coupon applicable on Starter Plan to avail discounts on Enterprise Plan, you will receive an error. Similarly, coupons are valid for a specified period. If you are using a coupon after it has expired, you will not be able to avail of the discounts.