I saved the plans into the database by calling APIs for getting plan list from Chargbee in my app and after that, I call to create and update API for the subscription. Invoice is also getting send according to my All the things are working properly in this. Now I am trying to apply some discount to my plans but it is not working. I am getting where I am wrong. For this, I have created 2 coupons and apply them to 2 different plans and call the same API as before for plan listing and buying the subscription but the subscription amount is not getting reduce according to a discount coupon. Invoice is also generating with the reduced amount.
I understand that you are trying to apply a coupon to an existing subscription using the API.
If you would like reduce the price of the plan itself, you will need to use the 'Price Override' feature.