A webhook endpoint receives real-time notifications from your Chargebee site when specific events occur, such as invoice generation, payment failures, or subscription updates. It allows your application, server, or third-party service to automatically respond to these changes, eliminating the need for manual checks or polling the API. Each webhook endpoint includes details such as a unique ID, target URL, list of subscribed events, and status. You can manage webhook endpoints using the Chargebee dashboard or the API.
Note You can create up to five webhook endpoints per site.
{
"id": "whv2_198PKVUX26UX9IvR",
"name": "Chargebee Notification",
"api_version": "v2",
"url": "https://{host}.com",
"primary_url": true,
"send_card_resource": false,
"disabled": false
} This field is only applicable if the site is in compat mode.
Create a new webhook endpoint on your Chargebee Site.
This field is only applicable if the site is in compat mode.
If this field is left empty, the webhook will enable all event types by default.
Updates the configuration of an existing webhook endpoint using its unique identifier. You can use this API to change properties such as the name, URL, subscribed events, authentication credentials, or API version. This is useful when rotating endpoints, updating destination URLs, or modifying which events your system listens to.
If this field is left empty, the webhook will enable all event types by default.
Retrieves the details of a specific webhook endpoint using its unique identifier. Use this API to inspect an endpoint's configuration, such as the target URL, subscribed events, and authentication settings.
Deletes a webhook endpoint using its unique identifier. Use this API to remove obsolete or inactive webhook endpoints from your Chargebee site. Deleting an endpoint ensures it no longer receives event notifications.
Retrieves all webhook endpoints configured on your Chargebee site. The response includes each endpoint's ID, name, and target URL. Use this API to view, audit, or manage the list of webhook endpoints currently active or configured in your site.