Skip to main content
The same flow as with tolt.js, done with three API calls from your backend. Use it when the script can’t run: mobile apps, links you redirect yourself, or sales-led deals.
Visitorsite or app
Your backendyour API
Toltplatform.tolt.com
1GET /?ref=sam
2POST /v2/clicks
3clk_3nVb… part_8fKq…
4
5POST /v2/customers
6cus_Q7wR…
7POST /v2/transactions
8commission for Sam
All three calls use an API key from Dashboard → Settings → Integrations → Tolt API, sent as Authorization: Bearer.
1

Record the click when a visitor lands

When a request arrives with your program’s link parameter (?ref=sam), record the click and keep the returned ids with the visitor, in a cookie or on the anonymous session, for your program’s cookie window (the Cookie duration in your program settings). A failed call only loses that click; the page still loads.
landing.ts
A value that matches no partner link returns 400 invalid_reference, so a mistyped ?ref= never creates anything. Optional fields: referrer, country (ISO 2) and device. In a mobile app, call the same endpoint from your backend when the app opens from a partner’s deep link.
2

Create the customer at signup

After your own signup succeeds, bind the user to the partner. partner_id is required; click_id ties the signup to that exact click. Pass your own user id as customer_id so you can look the customer up later. Treat it as best effort: the account exists either way, so a Tolt error shouldn’t fail the signup.
No click at all, like a deal a partner closed over email? Create the customer with the partner’s partner_id and leave out click_id.
3

Report every payment

On each successful charge, renewals included, send the cus_... id you saved. Amounts are in the smallest unit of your program’s currency (cents for USD). If you bill through Stripe, Paddle or Chargebee, you can connect the integration instead.
A retry with the same charge_id returns 409 already_exists instead of booking the payment twice. Refund with the returned txn_... id, see Record payments.
4

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, sign up, and pay. The click, the customer and the commission show up under that partner within seconds.