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.
Related Scenarios
- 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
- Add the LeadDyno drop-in script to set up visitor and conversion tracking.
- Identify the affiliate ID for the visitor using LeadDyno’s JavaScript library.
- When calling the Create Subscription API, pass the Affiliate ID as the affiliate_token parameter.
- 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?