Meritt Get started

Through the API

Affiliate program for Chargebee

With Chargebee, your server reports the sale to Meritt through the API, in three calls, as soon as Chargebee confirms the payment. Attribution and the ledger are the same as for Stripe.

What Meritt reads

Worth knowing

Setting it up

  1. Create an API key under Payment system; the calls are documented on the same screen.
  2. At checkout, read the click cookie on your domain and store it in meta_data.
  3. When Chargebee sends you payment_succeeded, call POST /v1/conversions with the amount, the currency, the click and the customer id.
  4. On payment_refunded, call POST /v1/conversions/reverse with the payment reference.

How long it takes

One key, and two calls added to your webhook handling.

Questions

Why not report the sale at checkout?

At that moment the payment is not confirmed, and when it is, in the webhook, the cookie is gone. The Chargebee passthrough field carries the click between the two.

Is a sale reported twice counted twice?

No. With the same reference, the second call answers “already received” and nothing is added.

What about renewals?

subscription_renewed and payment_succeeded arrive at each term; report the payment with the same customer id and it goes to the first sale's affiliate.

Does a Chargebee credit note take back the commission?

credit_note_created signals a credit note. If your policy treats it as a refund, call the reversal with the payment reference.

Chargebee documentation checked on October 19, 2026: apidocs.chargebee.com › event types, apidocs.chargebee.com › advanced features

See also

Affiliate program for Chargebee

Free until your first commission. No card asked for.