Chargebee Affiliate Program Integration

Every invoice in the subscription, attributed

Referly listens to the whole Chargebee lifecycle. A new subscription becomes a referral before any money moves, every successful payment becomes a sale on its own commission schedule, and a refund reverses what it earned.

14-day free trial · No credit card required · Cancel anytime

What Chargebee sends, and what it becomes
  1. subscription_createdA referralbefore any money moves
  2. payment_succeededA saleand the first commission
  3. payment_succeededAnother saleevery renewal, on its own schedule
  4. payment_refundedA reversalthe commission goes back

The grid, first

What Referly tracks in Chargebee

Straight to it, because that is what you came for. Fourteen rows, each read from what Chargebee reports. Hover a label for the detail.

Referrals trackedSales tracked
Yes

A signup, trial or new customer is recorded against the partner who sent them, before any money moves.

Yes

Every completed payment arrives as a sale with its amount, products and currency, and a commission is calculated from it.

Yes

Renewals arrive as their own payments, so a partner can be paid for a set number of payments, a set number of months, or for the life of the customer.

Yes

A refund reverses the commission it earned, so a partner is not paid for revenue you gave back.

No

Attribution runs on links. Chargebee coupons are not matched to a partner.

No

Referly creates the discount code inside your platform when a partner joins, so you never mint codes by hand.

Yes

Referly reads your product catalogue, so a rule can pay one rate on one product and a different rate on another.

No

Target a whole collection instead of listing its products one by one, and new products in that collection inherit the rate.

Yes

Tax is subtracted before the commission is calculated, so you are not paying a percentage of money that belongs to a tax authority. On by default, and switchable.

With a condition

Chargebee invoices carry no shipping line, so there is nothing to deduct.

No

Instead of cash, a partner's balance can be issued as credit inside the platform they already shop in.

No

Two setup jobs need someone technical: a customer custom field, and a webhook you create in Chargebee.

No

You paste an API key and site id, then add the webhook in Chargebee yourself.

Yes

An `rsubID` on the inbound link travels all the way to the sale, so an ad platform or a network can match the conversion back to its own click.

No

Partners are added to a named list or group in your email platform as they join, so onboarding and announcements go out from the tool you already write in.

No

Money actually leaves through this platform. Referly hands it the batch, and it moves the funds to each partner.

No

One approval sends every partner what they are owed, rather than one transfer at a time.

The problem

Three things that go wrong with subscription commissions

None of them show up in a demo. All of them show up in month four.

  • The commission changes when the plan does

    A customer who upgrades mid-year should earn the partner more, not the amount from the plan they left. Referly recalculates per payment against the invoice that actually arrived.

  • The first invoice is not the interesting one

    In subscription billing the money is in payment nine, not payment one. A tool that only records the first sale is measuring the wrong thing.

  • Reversals have to be reversible

    A refund reverses the commission, and if the refund is itself undone the reversal is too. Balances that only move one way go wrong the first time support makes a judgement call.

In practice

One subscription, two commissions, thirty days apart

The referral lands when the subscription is created. The first payment produces a sale and a commission at the opening rate. Thirty days later the renewal produces another, at whatever the schedule says the second period pays.

  • YesReferly reads your Chargebee item prices, so rates can differ per plan
  • YesTax on the invoice is deducted before the rate is applied
  • YesA refunded payment reverses its commission, and the reversal can be undone
  • YesMulti-currency invoices convert into your program's currency

Before you start

Two things you set up inside Chargebee

This is the most hands-on connection Referly offers, and neither of these is automated from our side. Both are one-off, both take a few minutes, and knowing about them now is better than finding out on day three.

Schedules

Three ways to decide when a partner stops earning

Stepped rates work alongside all three, so a schedule can pay 20% on the opening invoice and 4% on everything after it.

By number of payments

20% for the first 3 payments

The partner is paid on a fixed count of invoices, whenever they arrive. A monthly plan pays out over three months; an annual plan over three years.

By number of months

20% for 12 months

A window rather than a count. Everything invoiced inside it pays, however often the customer is billed.

For as long as they pay

20%, no end date

Set the number of months to zero and the schedule never closes. The partner keeps earning while the subscription does.

Tiers work on referral count or on revenue, so a partner can move up a rate band as they bring more. Recurring commissions are on Business and up.

Setup

Connect Chargebee in four steps

Four steps, three of which need someone technical. That is more than any other integration here, and it is stated in the note underneath rather than discovered later.

  1. Add a customer custom field in Chargebee

    A single-line text field named pushlap_affiliate_id, on the Customer object.

    Needs a developer
  2. Paste your Chargebee API key and site id into Referly

    Referly validates the credentials against your Chargebee site before saving them.

  3. Create the webhook in Chargebee

    Point it at Referly, API version 2, subscribing to the subscription, payment and refund events.

    Needs a developer
  4. Pass the partner id at checkout, then invite partners

    Set the custom field from the drop-in script, the API or a payment link, then set your rate.

    Needs a developer

Chargebee is the most hands-on connection Referly offers: the custom field and the webhook are both created by you, in Chargebee, and none of it is automated from our side. In exchange you get the full subscription lifecycle, every renewal arrives as its own payment, and a refund reverses the commission it earned. Coupon codes are not matched to partners here; attribution runs on links.

Read the Chargebee setup docs

FAQ

What Chargebee teams ask

The questions founders ask in the first ten minutes.

14-day free trial · No credit card required · Cancel anytime

  • Two things, and they are both one-off. You add a customer custom field named pushlap_affiliate_id, and you create the webhook that points at Referly. Neither is automated from our side, which is the honest answer and the reason we put it in step one rather than in a footnote.