How ecommerce companies provides Discounts/Coupons?



Hello friends,

Many eCommerce websites like flipkart, amazon provide discounts on some credit cards and coupon codes. How does this work out. Who will bare this discount banks/coupon code providers/merchants?. If banks how to approach them. who are the best coupons provider.

Thanks and regards,