Skip to main content
Chargebee → BrazeIntegration guide

Connecting Chargebee to Braze

Chargebee is a billing system, so it holds the only complete record of what a subscription business earned — and it sits entirely outside the browser. Braze is mobile-first lifecycle messaging, which means it resolves to a user rather than to a click and its most valuable channels — push and in-app — exist nowhere near a browser. The join between them succeeds or fails on one thing: whether the Braze external user ID reaches the Chargebee subscription before the conversion happens, because Braze can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Chargebee subscription state as Braze attributes

Braze subscription campaigns need state, so update Braze user attributes like plan, status and next billing date from Chargebee webhooks, sending only first payment and cancellation as events. Use your app's user ID as external_id, never the Chargebee customer ID, record processed webhook event IDs since Braze doesn't deduplicate, and decide who owns dunning.

Braze campaigns about subscriptions usually need state more than events: current plan, status, next billing date, whether a cancellation is scheduled. Chargebee holds all of that, so the most useful integration updates Braze user attributes from Chargebee webhooks and sends only a few true events, such as first payment and cancellation, as custom events or purchases. Otherwise every renewal becomes a trigger and someone eventually builds a campaign that fires monthly by accident.

The join is the Braze external_id, which is almost always your app's user ID, not the Chargebee customer ID. Store one on the other: either set the Chargebee customer ID to your user ID at creation or keep your user ID in a Chargebee custom field. A webhook that only knows the Chargebee ID and posts it as external_id creates a second Braze profile for a customer who already exists, and that profile then receives onboarding messages for an app it never opened.

Chargebee resends webhooks it believes failed, and Braze does not deduplicate. Record processed webhook event IDs on your side before posting. Also decide who owns dunning: Chargebee can email about failed payments itself, and a Braze campaign on the same event means two messages about one declined card.

Chargebee → Braze · what breaks

Why this join usually fails — Chargebee → Braze

  1. 01

    The Braze external user ID never reaches Chargebee

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  2. 02

    Trials longer than any cookie

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  3. 03

    Duplicate events sending duplicate push notifications

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  4. 04

    Nothing reconciles afterwards

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Chargebee → Braze · the fix

What working looks like — Chargebee → Braze

  • The Braze external user ID on every subscription

  • Conversions arriving in Braze

    The event lands on the user profile, triggers whatever campaigns depend on it, and becomes available for segmentation across push, email and in-app.

  • Reconciled against the source

Chargebee → Braze · architecture

How Chargebee and Braze actually connect

  1. 1

    Chargebee holds the truth

    The distinction that matters most here is invoice generated versus payment succeeded. An invoice is a bill you sent; a payment is money you received, and in any business with dunning the gap between them is large.

  2. 2

    Braze needs a click to match

    Braze needs the external user ID and a well-named event with its properties. An event with no external ID lands on an anonymous device profile that may never merge with the real user.

  3. 3

    The identifier is the bridge

    The Braze external user ID, captured at the visit and carried into the Chargebee subscription.

  4. 4

    The event source decides reliability

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  5. 5

    Deduplication at the destination

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

Chargebee → Braze · normal or broken

Working vs. broken, side by side — Chargebee → Braze

Normal, not a fault

  • The Braze external user ID present on the subscription

  • Sent from the Chargebee payment_succeeded webhook

  • Deduplicated correctly

    Braze does not deduplicate for you. A purchase sent from both your app SDK and your server produces two events, two campaign triggers and potentially two push notifications to a customer who bought once.

  • Reconciles with the source

Actually broken

  • The Braze external user ID missing on most records

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  • Sent from the browser

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  • Counted twice, or not at all

    A duplicate here is visible to your customer on their lock screen, twice, and the second one is the reason they turn push off permanently. This is a more expensive mistake than a double-counted conversion in an ad platform, because the damage is not recoverable.

  • Nobody has reconciled it

Chargebee → Braze · diagnose

Diagnostic order — Chargebee → Braze

  1. 01

    Count subscriptions carrying the Braze external user ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the event fires on invoice or on payment

    Invoice-based firing counts money you have not received, and in a business with dunning that overstates consistently.

  4. 04

    Send a test purchase and read the user profile's event stream

    One event or two? Check whether the SDK is already sending the same event before adding a server source, and check that the external ID matches the signed-in user rather than creating a new profile.

  5. 05

    Read the match rate, not the success message

    Braze shows events on the user profile within moments. Check the profile, not the API response, and specifically check whether an anonymous device profile has been created alongside the real one.

Chargebee → Braze · prove

How it gets proven — Chargebee → Braze

Source of truth

Chargebee's paid invoices by payment date, net of refunds and failed payments.

  • The Braze external user ID confirmed present on a live subscription.
  • The user profile confirmed to show one event per conversion, with device and user profiles correctly merged.
  • A dunning sequence confirmed to produce one conversion rather than one per retry.

Chargebee → Braze · free audit

What we check in the free audit

  • Count subscriptions carrying the Braze external user ID
  • Follow one real conversion end to end
  • Check whether the event fires on invoice or on payment
  • Send a test purchase and read the user profile's event stream
  • Read the match rate, not the success message

Checked against

Chargebee's paid invoices by payment date, net of refunds and failed payments.

Get my free conversion tracking audit

Free30 minutesNo obligation

Chargebee → Braze · when not to buy

When you don't need this — Chargebee → Braze

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the Braze external user ID.
  • If your trial is longer than 90 days, uploading the first payment against the original click cannot work — we will tell you that before quoting.
  • If you have no mobile app and no push channel, Braze is a large piece of infrastructure for a job an email platform already does.

Chargebee → Braze · what we deliver

What gets built — Chargebee → Braze

  • Identifier capture into Chargebee

    Write the click identifier to a custom field on the Chargebee customer or subscription when the subscription is created, server-side, rather than relying on the hosted checkout page to carry it.

  • Event source: the Chargebee payment_succeeded webhook

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  • Dispatch to Braze

    The Braze user track endpoint, posted server-side from your order or billing system with the external user ID and event properties.

  • Reversals where they exist

    Cancellations and refunds are exposed and should reverse the lifetime value claimed at acquisition.

Written guarantee

95%+ tracking accuracy

Measured against Chargebee's paid invoices by payment date, net of refunds and failed payments.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Chargebee → Braze questions, answered

Your own user ID as Braze's external_id, stored on the Chargebee customer. Using the Chargebee customer ID directly creates duplicate Braze profiles.

Free · 30 min

Get Chargebee and Braze joined properly

Free30 minutesNo obligation