---
title: "Chargebee integration"
description: "Cometly listens to Chargebee webhooks for the events that matter — successful payments, new subscriptions, and trial conversions — and stitches each one back to the campaign that drove it."
source: "https://www.cometly.com/integration/chargebee"
---

# Chargebee integration for Cometly

Track Chargebee subscriptions, trials, and payments against ad spend.

Cometly listens to Chargebee webhooks for the events that matter — successful payments, new subscriptions, and trial conversions — and stitches each one back to the campaign that drove it.

- Category: Payments
- Connection method: Webhook

## What you can do

- Real-time tracking of payments, new subscriptions, and trial-to-paid
- Multi-product support across the same Chargebee site
- Optimize subscription growth against actual ad spend
- Send recurring revenue back to ad platforms via Conversion APIs

## Setup (Webhook)

1. In Cometly, copy the Chargebee webhook URL.
2. In Chargebee, open Settings → Webhooks and add the Cometly URL.
3. Pick the events you want to subscribe to.
4. Trigger a test event from Chargebee.
5. In Cometly, map fields and activate the matching events.

## Events

| Event | Description |
| --- | --- |
| Payment Succeeded | Fires when a Chargebee payment completes. |
| Subscription Created | Fires on a new subscription. |
| Trial Converted | Fires when a trial converts to paid. |