Docs

Log into read the version of docs relevant to your site.

LeadDyno: How to send the affiliate_token value via API when I create a subscription

Problem Statement

This article explains how to pass the LeadDyno affiliate ID when creating a customer and subscription via the Chargebee API so the LeadDyno integration works correctly.

  • How do I identify the affiliate id for my visitor?
  • Where can I retrieve the affiliate id?

Solution

When you create a customer and subscription via the Chargebee API, pass the LeadDyno Affiliate ID in the affiliate_token field in the create subscription request. You can get the Affiliate ID from LeadDyno’s JavaScript API.

Steps to Set It Up

  1. Add the LeadDyno drop-in script to set up visitor and conversion tracking.
  2. Identify the affiliate ID for the visitor using LeadDyno’s JavaScript library.
  3. When calling the Create Subscription API, pass the Affiliate ID as the affiliate_token parameter.
  4. Configure webhooks to track lead conversions or cancellations as needed.

For full LeadDyno–Chargebee integration details, see LeadDyno integration – API-based checkout.

Was this article helpful?