Added applyCoupon API