Subscriptions API

Code Snippets related to Subscription API

How to view & export subscription status?
Scope How to view the list of subscriptions by status? How to download the status of the subscription? How to export subscription status via UI & API...
Wed, 19 Apr, 2023 at 1:42 PM
How to retrieve a coupon Id from the subscription_created webhook event?
In the subscription_created event,  the coupon Id can be found as the entity_Id under the invoice >> discounts. Here's a sample for your referen...
Mon, 26 Mar, 2018 at 12:21 AM
How do I remove/change/add an addon to a subscription that already has one or more addon via APIs (PC 1.0)?
While using the Update a Subscription API, (PC 1.0) by default, the addons passed are appended to the existing list of addons for a subscription. In case a...
Mon, 13 Mar, 2023 at 3:45 PM
How can I cancel a subscription using the APIs?
To do a cancellation via our API, you can use the cancel a subscription API call.  The parameter end_of_term can be used to specify if the subscription ...
Mon, 25 Oct, 2021 at 3:58 PM
Retrieve Subscription details on custom thank you page.
This article covers: I am using a custom thank you page in Chargebee and I would like to retrieve subscription details from the thank you page URL. How do...
Tue, 5 Mar, 2019 at 12:11 PM
How can I reactivate a subscription using the APIs?
This article covers: Reactivate subscription API In-term and Out-term reactivation A subscription can be reactivated via the web interface, using APIs ...
Sat, 9 Feb, 2019 at 8:26 PM
How to automatically apply coupon only to the first subscription of the customer during sign up?
This article covers  Applying coupon to the customer’s first subscription when multiple subscriptions per customer are allowed Summary  As a merchant,...
Fri, 20 Jan, 2023 at 7:35 PM
How do I automate the offline payments management using Chargebee's APIs?
Here's the workflow you can implement to get this done -  Configure webhooks in Chargebee.  Once this is done, you'll receive "invoice_gener...
Fri, 30 Mar, 2018 at 1:50 AM
Limiting duplicate subscriptions via API
This article covers  How to merge customer records with the same email address? How to match several subscriptions that belong to one customer? Summar...
Mon, 28 Oct, 2024 at 11:42 AM
How do I avoid unpaid invoices for active subscriptions?
This article covers  I could observe so many users having unpaid invoices with subscriptions remaining active. How to avoid this? How to cancel the subscr...
Mon, 4 Sep, 2023 at 11:09 PM