Logo

Knowledge center

Create a support ticket Check ticket status Community Logo Login Sign up

Chargebee APIs & Webhooks

Having trouble connecting with Chargebee APIs or Webhooks, find your solution here.

Category
  • Getting Started
  • Product Catalog
  • Customers & Subscriptions
  • Customer Essentials
  • Payment Gateways
  • Hosted Pages
  • Invoicing & Taxes
  • 3rd Party Integrations
  • Chargebee Reporting
  • Chargebee APIs & Webhooks
  • General Features
  • Migration & Bulk Operations
  • Security & Compliance
Chargebee APIs & Webhooks

Subscriptions

Code Snippets related to Subscription API

  • How to get status of a subscription
  • Passing custom fields to the Create a Subscription API and accessing them in the API response using .NET
  • Retrieve Subscription details on custom thank you page.
  • Limiting duplicate subscriptions via API
  • How to customize my customer IDs in sequential order?
  • How do I avoid unpaid invoices for active subscriptions?
  • How to let my customer select a different plan during reactivation from the portal?
  • How to edit the cancelled subscription message displayed on the customer portal?

Addons

  • How do I remove/change/add an addon to a subscription that already has one or more addon via APIs?
  • Can I sync addons in Chargebee to Intercom?
  • How to replace or remove addons on a subscription via API?
  • How to display additional addons on the checkout page?

Hosted Pages

Code Snippets related to Hosted Pages API

  • [API Users] How to generate hosted page URL and embed via iFrame
  • How to allow trial users to sign up without entering their credit card details?
  • Localizing the themes customized earlier
  • Setting up Fixed increments on Checkout page.
  • Google Recaptcha for custom domain
  • How to customise the Consent management settings in Chargebee’s hosted page
  • Unable to transfer Hosted pages configuration from test to live - Message to upgrade account

Coupons

  • How to retrieve a coupon Id from the subscription_created webhook event?

Events & Webhooks

  • How do I get the subscription id from web-hooks during cancel subscription.
  • Accepted SSL certificates
  • How to create events for subscriptions?
  • Can I filter events for a specific customer using API?
  • How can I be notified of only certain events using webhooks?
  • How to get notified of my customer’s subscription renewal events in Chargebee?
  • How to download Event logs?

Webhooks

  • How would I know if the configured webhook URL in my Chargebee site is failing?
  • How to configure webhooks for Chargebee?
  • I received a webhook failure email from Chargebee. How to fix this?
  • How do I find failed webhooks and resend them?

Portal Sessions

Solutions and fixes relating to Chargebee's customer portal API

  • I would like to re-direct my customer to the Edit Subscription (Customer Portal) page directly from my website. What API call can I use?
  • How to make the billing address mandatory in the self-serve portal when my customer reactivates his subscription?

Thank You page

  • How to set up 'Thank You' page goals in Google Analytics?
  • Tracking code / Pixel tracking
  • Managing the Payment Source Redirect URL
  • Redirect URL not working

API hacks

  • How to list more than 10 items when listing information via API?
  • Setting up your own Referral Program
  • How do I setup Prepaid Credit Packs that customers can purchase and use for their subscription?
  • How to track Abandoned Carts
  • How to view the details of changes to the unbilled charges via the API ?

Subscription Management

  • How can I cancel a subscription using the APIs?
  • How can I reactivate a subscription using the APIs?
  • How do I automate the offline payments management using Chargebee's APIs?
  • Error- Non-recurring add-on cannot be added now as invoice is not raised immediately
  • Is It Possible To Backdate A Subscription In Chargebee?
  • How to create a subscription/customer without Chargebee's checkout?
  • How to prevent multiple Users or Subscriptions with the same email address?
  • Can I apply contact terms to my existing subscriptions?

General API queries

  • Applying filters when retrieving data through API
  • What is API Changelog?
  • I’m getting an error ‘card[billing_zip] : cannot be blank’ while creating a new customer via API. What should I do?
  • Does Chargebee provide APIs to automatically convert the price into selected currency_code?