Use the Pabbly Affiliate Management system without using the Pabbly checkout pages
Pabbly Subscription Billing Team•Updated Aug 19, 2026•1 min read
We have bought the step-by-step guide on how to apply affiliate referral to a customer's subscription through API.
1. Create an affiliate link to your website under Pabbly Subscription -> Affiliate -> Affiliate Settings -> Affiliate Link.
2. Now, once the customer is redirected to your website after clicking on the affiliate's referral link, you'll get _pac as a cookie and _paclt as a cookie period under the query param.
Here is the sample URL -
3. You can store this cookie for your webpage.
4. Now, whenever the customer purchases your product, you can use our "Create Customer With Subscription" API - https://apidocs.pabbly.com/#fa365f13-a67c-4973-8967-0e4db2c2a109 and add _pac value with key "pabbly_affiliate" so that the commission will be created automatically under your Pabbly account.
For example -