Skip to main content
From a partner’s link to their commission, end to end. The browser script handles the click and the signup; your backend only reports payments.
Browsertolt.js
Your backendyour API
Toltplatform.tolt.com
1acme.com/?ref=sam → click
2tolt.signup()
3customer_id: cus_7Lm2…
4save cus_7Lm2… on the user
5POST /v2/transactions
6commission for Sam
1

Add the script

Paste this in the <head> of every page, on your marketing site and in your app. Your public key is in Dashboard → Settings → Integrations → Tolt API.
Framework setups (Next.js, React, Vue, Webflow, WordPress) are in Install tolt.js.
2

The click is recorded for you

When someone lands through a partner link like acme.com/?ref=sam, the script records the click and remembers the partner in a first-party cookie for your program’s cookie window. Nothing to call. To check it, open a partner link and run this in the console:
customer_id stays null until the signup in the next step.
3

Call tolt.signup() when they sign up

Right after your own signup succeeds, pass the user’s email (or your own user id). Tolt turns the click into a customer that belongs to Sam, for good. Visitors who didn’t come through a partner link are ignored, so call it for everyone.
signup.js
signup() waits for the click to be recorded, and ?. skips the call if an ad blocker stopped the script. If the signup finishes while the page is still loading, for example on an OAuth callback, check window.tolt first and wait for the toltScriptLoaded event if it isn’t there yet.
4

Report every payment

Connect your billing provider in Dashboard → Settings → Integrations and follow its guide. Payments, renewals and refunds then flow in on their own.

Stripe

Paddle

Chargebee

5

Tolt pays the partner

Each transaction runs through your program’s commission flows. When the conditions match, Sam gets a commission, which is approved (right away or after your approval window) and then paid out with the next payout run.Test it end to end: create a test partner, open their link in a private window, sign up, and pay. The customer and the commission show up under that partner within seconds.
No browser on the path, like a mobile app or a sales-led deal? Do the same three steps from your server: Track without tolt.js.