Docs
You are viewing:
Product Catalog 2.0
Enhance your business workflows by integrating Chargebee events with Amazon EventBridge, using AWS native infrastructure. This integration simplifies your event-handling process and enables scalable, event-driven automation.
Amazon EventBridge is a serverless event bus that connects application components using events. It helps you build and manage event-driven applications more efficiently.
By streaming Chargebee events directly to your AWS account via EventBridge, you can reduce the effort of handling webhook-based event delivery. EventBridge can route events to supported targets, enabling you to trigger workflows and automation seamlessly.
Before you begin, ensure you have the following:
Log in to your Chargebee account.
Navigate to Settings > Configure Chargebee > API Keys and Events > Event Streams.
Click Set Up Event Stream to configure the event stream.
<sitename_eventstream>
. For example, if your stream name is acme.chargebee.com then the event stream name will be acme_eventstream
.Event routing is based on rules you define in EventBridge. After you associate a partner event source with an event bus, you must configure rules to determine how events are handled.
You can create multiple rules to route different types of events to specific targets as needed.
To create a rule:
You can test the event streaming setup to ensure that events from Chargebee are received successfully in Amazon EventBridge.
Trigger an event in Chargebee: Perform an action in Chargebee that corresponds to a subscribed event—for example, create a new subscription.
Check event reception in EventBridge: Open the EventBridge console and navigate to the configured event bus or the target destination (such as CloudWatch Logs).
Verify event details: Select the received event to view its details and ensure that it contains the expected information.
Use the Test Stream option (optional): Alternatively, go to the Event Streams tab in Chargebee and select Test Stream to simulate event delivery and verify the setup.
With current limitations within AWS EventBridge, Chargebee cannot deliver events that are larger than 256 KB in size. In such cases, Chargebee sends only the event ID to EventBridge in your AWS account. You can then retrieve the complete event using the event ID through the Retrieve an event API, which is not size-limited. Sample of an event sent when the payload exceeds 256 KB:
{
"version": "0",
"id": "ba8c167b-bc9c-d3ac-e980-d72dfa59ebf4",
"detail-type": "customer_created",
"source": "aws.partner/chargebee-events.test/acme",
"account": "12345678912",
"time": "2025-10-05T13:19:02Z",
"region": "us-east-1",
"resources": [],
"detail": {
"id": "ev_6nwSoUws6tC72sR",
"occurred_at": 1757942336,
"source": "admin_console",
"user": "john.doe@acme.com",
"object": "event",
"api_version": "v2",
"event_type": "customer_created",
"webhook_status": "scheduled",
"content_fetch_from": "API",
"content_location": "https://acme.chargebee.com/api/v2/events/ev_6nwSoUws6tC72sR"
}
}
Was this article helpful?