January 23, 2026
If you’re running a SaaS business, you may want to reward affiliates with a recurring commission for each subscription renewal (either for a limited time or for a set number of renewals). If you’re an owner of an e-commerce business, you can consider assigning lifetime commissions to the activities of customers referred by your affiliates. In both cases, you’ll have to set up the Recurring/Lifetime Commissions tracking feature for your program in Tapfiliate.
Some Tapfiliate integrations natively support recurring/lifetime commission tracking (Stripe, WooCommerce, etc.), but you may have installed one that requires additional setup to handle the process. Tapfiliate offers several approaches to achieving this.
In this article, we’ll discuss:
- The essential steps for setting up the lifetime/recurring commissions
- How to set up the flow for the hybrid integration (JavaScript + REST API)
- Tracking lifetime/recurring commissions via JavaScript + Zapier app
- Automating the recurring/lifetime commissions tracking via JavaScript + Make app
- Enable recurring commissions in your program’s commission structure settings, and optionally set a cap. Keep Recurring commissions of the commission types you track with on Smart connected, not Time based (see Smart Connected): you report every payment yourself (step 3), and with Time based, Tapfiliate also creates a renewal every Recurrence interval, so renewals would be paid twice.
- Track a Customer using our JavaScript tracking code or the REST API. Pass your own database’s identifier for the customer, or your payment gateway’s customer ID, as the
customer_id. - Use the Create a conversion API endpoint to create new conversions for each subsequent payment, passing the same customer ID as in Step 1. This will automatically attribute the conversion to the customer’s original referring affiliate.
-
Add the following code to the Header section on all pages that affiliates will be sending the traffic to:
Don’t forget to add your Account ID to the above script ☝️
-
Create the сustomer with our JavaScript tracking code by adding the code below to your Thank You page. We’re choosing to create a
customerstatus in the example, but other initial statuses are also available. You can read more about Customer statuses in this article.Don’t forget to add your Account ID to the above script ☝️ -
Whenever a recurring or new payment takes place for the customer, you can create a new conversion through the REST API:
Send the first payment a few minutes later. The customer is recorded from the visitor’s browser in step 2, while the payment comes from your server, and the payment can reach Tapfiliate first. Tapfiliate then rejects the conversion with
400 Bad Request(“no customer found for customer id”) and doesn’t keep it, so no commission is created for it. Send the first payment a few minutes after it happens, or send it again a few minutes later when you get this error. This error means that Tapfiliate knows no customer under this ID and that the request carries nothing else that names an affiliate. It comes on every attempt for a customer who wasn’t recorded in step 2, that is, who came neither through an affiliate’s link nor with an affiliate’s coupon passed there, unless the payment itself names an affiliate (see below). For a customer who used no affiliate’s link or coupon at all, that’s expected, as only referred customers earn commissions. If your affiliates share coupon codes, pass the code as thecouponsoption of the call in step 2 (see the options). If the customer enters an affiliate’s coupon only at payment, send it with the first payment ascoupon: Tapfiliate then records the customer together with the conversion, and later payments need only the customer ID. Send only affiliates’ codes: for a customer Tapfiliate doesn’t know yet, another code is rejected (“Unknown coupon code”). The other fields that name an affiliate, such as a click ID, are in Create a conversion.
-
Add the following code in the Header section of all pages that affiliates will be referring traffic to:
Don’t forget to add your Account ID to the above script ☝️
-
Create the customer with Tapfiliate’s JavaScript tracking code by adding the code below to your “thank you page”. We’re choosing to create a
customerstatus in the example below, but other initial statuses are also available. You can read more about Customer statuses in this article.Don’t forget to add your Account ID to the above script ☝️ -
In the Zapier app, create a new Zap. As the Trigger, choose the equivalent of “New Payment” for your preferred payment gateway. When you test the trigger, select as the test record a payment of a test customer who came through a test affiliate’s link and used no coupon, or only the test affiliate’s coupon, not a real customer’s payment. A real affiliate’s coupon passed in step 2 can record the test customer, and with them their conversions, for that affiliate instead of the test affiliate. In step 5 the test sends the conversion to Tapfiliate for real, with the test record’s data.


-
In the Action, choose the Tapfiliate app, then “Create Conversion”. As the Customer ID, hook up the customer id from the trigger step of the Zap. This should be the same property as you used in the JavaScript code. As the External ID, hook up the ID of the payment itself from the trigger step (e.g., the transaction or charge ID). Optionally hook up the amount field and any other field you would like to pass.
Always pass the External ID. Tapfiliate recognizes a repeat only by its External ID: it rejects a conversion whose External ID is the same as the one a conversion in your account, from any source, has at that moment (“Duplicate conversion…”), and then no second conversion and no second commission are created. A repeat with a different External ID, or with none, is handled like a new payment: if a new payment would earn a commission, the repeat earns one too. So a replay of a Zap run, or a new test of the action with the same test record, is rejected only if it sends the External ID the payment’s conversion has in Tapfiliate. A replay uses the run’s trigger data with the Zap’s current field mapping, and Zapier lets you edit that data before you replay. A run recorded before you mapped the External ID, or while you had it mapped to another field, therefore goes out with an External ID Tapfiliate doesn’t have, and the payment can earn a second commission. Use an ID that is different for every payment: not the customer’s or the subscription’s ID, which stays the same on every renewal, as Tapfiliate would then reject every renewal after the first. Add a delay of a few minutes before the Tapfiliate action. The customer is recorded from the visitor’s browser in step 2, while the payment comes from your payment gateway, and the payment can reach Tapfiliate first. Tapfiliate then rejects the conversion (“no customer found for customer id”) and doesn’t keep it, so no commission is created for it. It comes on every payment for a customer who wasn’t recorded in step 2, that is, who came neither through an affiliate’s link nor with an affiliate’s coupon passed there, unless the payment itself names an affiliate (see below). For a customer who used no affiliate’s link or coupon at all, that’s expected, as only referred customers earn commissions. If your affiliates share coupon codes, pass the code as the
couponsoption of the call in step 2 (see the options). If the customer enters an affiliate’s coupon only at payment, the first payment has to carry it ascoupon, as described for the REST API above: if the Tapfiliate action has no coupon field, send that payment to the REST API with a “Webhooks by Zapier” POST step instead. Set up the Tapfiliate action so that these rejections, and those of renewals of a customer who has reached your recurring limits or was canceled (“Customer is capped…”, “Recurring cap or recurring period exceeded…”), don’t stop or turn off your Zap. -
The test in this step sends the conversion to Tapfiliate for real, for the test record you selected in step 3, and the test conversion creates a real commission for the affiliate it is credited to. Hit Continue > Test. After the test, disapprove the test commission in the conversion, and cancel the test customer on the Customers page, so that in a program with lifetime or recurring commissions they don’t keep earning a commission every period. See How can I test if my integration is working correctly? Then publish the Zap you created.
-
Add the following code in the Header section of all pages that affiliates will be referring traffic to:
Don’t forget to add your Account ID to the above script ☝️
-
Create the customer with Tapfiliate’s JavaScript tracking code by adding the code below to your “thank you page”. We’re choosing to create a
customerstatus in the example below, but other initial statuses are also available. You can read more about Customer statuses in this article.Don’t forget to add your Account ID to the above script ☝️ -
In the Make app, create a new scenario. As the trigger, choose your payment gateway’s equivalent to a “New Payment” - this could also be called a “New Transaction” or “New Charge”, or similar.


- Next, attach a new module and pick Tapfiliate’s “Create a Conversion” action.
-
In the affiliate attribution field, indicate the Customer ID from the trigger step of the Zap. This should be the same property that was tracked using your JavaScript code.
It’s also recommended to attach an external ID (e.g., the transaction or charge ID) and the amount of the charge. Add a delay of a few minutes before the Tapfiliate module. The customer is recorded from the visitor’s browser in step 2, while the payment comes from your payment gateway, and the payment can reach Tapfiliate first. Tapfiliate then rejects the conversion (“no customer found for customer id”) and doesn’t keep it, so no commission is created for it. It comes on every payment for a customer who wasn’t recorded in step 2, that is, who came neither through an affiliate’s link nor with an affiliate’s coupon passed there, unless the payment itself names an affiliate (see below). For a customer who used no affiliate’s link or coupon at all, that’s expected, as only referred customers earn commissions. If your affiliates share coupon codes, pass the code as the
couponsoption of the call in step 2 (see the options). If the customer enters an affiliate’s coupon only at payment, the first payment has to carry it ascoupon, as described for the REST API above: if the Tapfiliate module has no coupon field, send that payment to the REST API with an HTTP request step instead. Set up the Tapfiliate module so that these rejections, and those of renewals of a customer who has reached your recurring limits or was canceled (“Customer is capped…”, “Recurring cap or recurring period exceeded…”), don’t stop or turn off your scenario, for example with an error handler on that module. - Save your scenario, and you’re done!