Scope
My customer requested to add a coupon to the subscription
I want to add a coupon during subscription creation
I want to add a coupon to an existing subscription
I want to add a coupon to an existing subscription using API in PC 2.0
Coupons can be added to the subscription in your Chargebee
There are three scenarios where you can add the coupon:
When creating a new subscription
Go to the Subscription Info section in the 'Create Subscription' page, select a plan using Add Plan and you will find the option to Add Coupon/Coupon Code.
When changing an existing subscription
You will find the option on the Change Subscription page as 'Add coupon'
For an existing subscription from the action panel
Go to the Subscription page and find the Add Coupon option on the Action Panel. This can be added at any point of the billing cycle.
You can add Coupons to an existing subscription using API. For reference, the API is as follows https://{site}.chargebee.com/api/v2/subscriptions/{subscription_id}/, and you can add the Coupon attributes towards the end of the API as per your need.
Also, you can create and share Coupon codes with end-users by creating Coupon sets.
The coupon codes can be uploaded to your Chargebee site using a CSV file.
To upload, go to Product Catalog > Coupon Sets > Click + Upload Coupon sets, select the CSV file, and the main coupon that the coupon set should be linked to.
Note: There is a limit of 1000 coupon codes per coupon set.If you need to upload more, create another CSV file and upload the rest as another coupon set.
Click here to know about the bulk coupon code generator.
You can also create, apply Coupon code/Coupon sets using the below API.