Any change that happens to the system is captured as an event. Changes such as subscription creation or payment successful are considered as events.
These are logged under the Events tab in the web interface and you can also refer to the API for more information on the events.
For a better integration between Chargebee and your application, Chargebee provides you with webhooks. When configured, a webhook is used to send out an event notification to your service.
Once you've configured the URL, Chargebee will post the event as a JSON to your webhook URL. For example, if a "subscription_activated" event occurs, then a notification is sent to the specified URL.
When your application need to know and act upon certain events when they occur in your Chargebee account such as an account being canceled or a payment that failed, you can use webhooks to notify you. Webhook notifications are usually posted real-time, so you will receive notifications as soon the events occur.
Here's a list of event types that currently generates webhooks.
Chargebee needs to get a status code 200 reply from the configured URL to confirm that the notification sent via HTTP POST has been successfully delivered. If there is no response from the URL or if it takes more than 20 seconds to respond, Chargebee will cancel and retry. Retries happen at exponential time intervals. Further attempts will not be made after that.
Chargebee supports multiple API versions. Hence, while creating webhooks, you need to specify the API version used for the webhook. Learn more.
To know how to configure your webhooks, click here.