# Tolt Docs > Track referrals, pay partners, and build your partner program into your product. - [Quickstart](https://docs.tolt.com/quickstart.md): Add affiliate tracking with Tolt: install tolt.js, track signups and payments, and see your first referred sale in minutes. - [How Tolt works](https://docs.tolt.com/how-tolt-works.md): How Tolt's affiliate model fits together: programs, groups, partners, links, clicks, customers and commissions, from the first click to the payout. - [Build with AI](https://docs.tolt.com/ai.md): Let your coding agent integrate Tolt, and ask your AI assistant about your program. - [Track conversions](https://docs.tolt.com/tracking/overview.md): Pick the setup that fits your stack. Every path records a click, a customer and a payment. - [Install tolt.js](https://docs.tolt.com/tracking/script.md): One script tag records every partner click and remembers it in a first-party cookie. - [Track signups](https://docs.tolt.com/tracking/signups.md): Turn a referred visitor into a customer that belongs to the partner who sent them. - [Record payments](https://docs.tolt.com/tracking/payments.md): Send every charge to Tolt so the partner behind the customer earns a commission. - [Server-side tracking](https://docs.tolt.com/tracking/server-side.md): Track clicks, customers and payments from your backend, with no browser script. - [Promotion codes](https://docs.tolt.com/tracking/promo-codes.md): Credit partners when a customer uses their coupon, no link or cookie needed. - [Mobile apps](https://docs.tolt.com/tracking/mobile-apps.md): Credit partners for in-app purchases. Users enter a partner's code or open a partner's app link, and RevenueCat sends the purchases. - [Stripe integration](https://docs.tolt.com/integrations/stripe.md): Install the Tolt app from the Stripe App Marketplace. Every payment, renewal and refund from a referred customer flows into Tolt. - [Paddle integration](https://docs.tolt.com/integrations/paddle.md): Connect Paddle Billing or Paddle Classic and turn referred payments into commissions automatically. - [Chargebee integration](https://docs.tolt.com/integrations/chargebee.md): Connect Chargebee and turn referred payments, renewals and refunds into commissions automatically. - [RevenueCat integration](https://docs.tolt.com/integrations/revenuecat.md): Send RevenueCat purchases, renewals and refunds to Tolt and pay partners for the app users they refer. - [Attribution](https://docs.tolt.com/concepts/attribution.md): How Tolt credits a sale to the partner who sent the customer: cookie window, first bind, renewals. - [Programs and groups](https://docs.tolt.com/concepts/programs-groups.md): How organizations, programs, groups, partners and links fit together, and when to use each. - [Commission flows](https://docs.tolt.com/concepts/commission-flows.md): Rules that decide what partners earn: when something happens, if conditions match, pay this much. - [Commission lifecycle](https://docs.tolt.com/concepts/commission-lifecycle.md): How a commission moves from pending to paid, what refunds do, and when partners get paid out. - [Tolt dashboard overview](https://docs.tolt.com/dashboard/overview.md): A tour of the Tolt dashboard: set up your affiliate program, approve partners, review commissions, pay partners and track performance. - [Set up your program](https://docs.tolt.com/dashboard/create-program.md): Create your affiliate program in Tolt: set its name, currency and website, then the payout rules and the commission rates partners earn. - [Invite and approve partners](https://docs.tolt.com/dashboard/partners.md): Invite partners to your affiliate program, approve partner sign-ups, and open any partner to see their performance in the Tolt dashboard. - [Review and approve commissions](https://docs.tolt.com/dashboard/commissions.md): Understand each commission status in Tolt, review the referred sale behind a commission, and approve or decline what gets paid to partners. - [Run a payout](https://docs.tolt.com/dashboard/payouts.md): Pay approved commissions to your partners by PayPal, Wise or bank transfer: generate, review and send a payout run from the Tolt dashboard. - [Read your reports](https://docs.tolt.com/dashboard/reports.md): Track affiliate revenue, commissions, conversions and your top partners in Tolt reports, with date ranges, filters and breakdowns. - [Track with tolt.js](https://docs.tolt.com/guides/with-toltjs.md): The full flow: tolt.js records the click, tolt.signup() turns the visitor into a customer, and your backend reports each payment. - [Track without tolt.js](https://docs.tolt.com/guides/without-toltjs.md): The full flow from your backend: record the click when a visitor lands, create the customer at signup, and report each payment. - [Refer-a-friend page](https://docs.tolt.com/guides/refer-a-friend.md): Give every signed-in user a referral link and a live earnings dashboard inside your app, enrolling them as partners by email the first time they open it. - [Partner signup](https://docs.tolt.com/guides/partner-signup.md): Turn your own users into partners from inside your app, with a referral link ready to share. - [Approve commissions](https://docs.tolt.com/guides/approve-commissions.md): Decide when commissions become payable: immediately, after a refund window, or by hand. - [Refunds](https://docs.tolt.com/guides/refunds.md): How a refund claws back a partner's commission, before or after it was paid out. - [Sync your data](https://docs.tolt.com/guides/sync-data.md): Mirror partners, customers and commissions into your database with webhooks plus a polling backfill. - [Reporting](https://docs.tolt.com/guides/reporting.md): Build a partner leaderboard or revenue chart in your app from the /v2/reports endpoints. - [Migrate from v1](https://docs.tolt.com/guides/migrate-from-v1.md): What changes moving from the v1 API to v2. Same key, same resources, new base path and response shape. - [SDKs and tools](https://docs.tolt.com/sdks/overview.md): Every Tolt package at a glance: API clients, browser tracking, embeds, webhooks, CLI and AI tools. - [TypeScript SDK](https://docs.tolt.com/sdks/typescript.md): @tolt/api: a typed client for the Tolt API, with retries, timeouts and typed errors. - [Python SDK](https://docs.tolt.com/sdks/python.md): tolt: sync and async Python clients for the Tolt API, with typed models and errors. - [tolt.js](https://docs.tolt.com/sdks/tolt-js.md): Browser script reference: script attributes, the window.tolt API, tracking data, URL params and cookies. - [@tolt/tracking](https://docs.tolt.com/sdks/tracking.md): Load tolt.js from npm with types, a React component and a useTolt hook. - [Swift](https://docs.tolt.com/sdks/swift.md): Claim partner codes and app links for your iOS and macOS app users. - [Android](https://docs.tolt.com/sdks/android.md): Claim partner codes, app links and Google Play installs for your Android app users. - [@tolt/embed](https://docs.tolt.com/sdks/embed.md): Reference for the embeddable partner dashboard: props, theme options, the token endpoint and iframe usage. - [@tolt/webhooks](https://docs.tolt.com/sdks/webhooks.md): Verify Tolt webhook signatures and get a typed event back. Node 18+, zero dependencies. - [Tolt CLI](https://docs.tolt.com/sdks/cli.md): @tolt/cli: stream your live webhooks to localhost and trigger sample events. No tunnel, no deploy. - [MCP server](https://docs.tolt.com/sdks/mcp.md): Connect Claude, Cursor, ChatGPT or any MCP client to your Tolt program. Sign in with Tolt, no API key. - [Agent skill](https://docs.tolt.com/sdks/agent-skill.md): Install the integrate-tolt skill and let Claude Code, Cursor or Codex wire up Tolt in your app. - [API reference](https://docs.tolt.com/api-reference/introduction.md): Base URL, auth, response shape, money and ids: everything you need before your first request. - [API authentication](https://docs.tolt.com/api-reference/authentication.md): Send your API key as a bearer token. One key acts on one organization. - [API pagination](https://docs.tolt.com/api-reference/pagination.md): Page through lists with cursors, filter by date, and sync changes into your database. - [API errors](https://docs.tolt.com/api-reference/errors.md): The error envelope, every error code with its status, and how to handle each one. - [API rate limits](https://docs.tolt.com/api-reference/rate-limits.md): 25 requests per second per API key, the headers that track it, and how to back off. - [List partners](https://docs.tolt.com/api-reference/partners/list-partners.md): Lists onboarded partners. Filter by status, program or group, search by name, email or company, and page with cursors. - [Create a partner](https://docs.tolt.com/api-reference/partners/create-a-partner.md): Creates an onboarded partner together with their referral link. The link value defaults to a slug of the partner's name or email and the parameter to the program's first link parameter. Omit group_id to place the partner in the program's default group. - [Get a partner](https://docs.tolt.com/api-reference/partners/get-a-partner.md): Gets a partner by ID, with their profile, status, group and program. - [Update a partner](https://docs.tolt.com/api-reference/partners/update-a-partner.md): Edits profile fields and group membership. Status changes go through the approve, reject and suspend actions. - [Approve partners in bulk](https://docs.tolt.com/api-reference/partners/approve-partners-in-bulk.md): Approves up to 100 partners. Each id is processed on its own and the response reports the outcome per id, so one refused partner does not fail the request. - [Reject partners in bulk](https://docs.tolt.com/api-reference/partners/reject-partners-in-bulk.md): Rejects up to 100 partners with an optional shared rejection note. Each id is processed on its own and the response reports the outcome per id. - [Approve a partner](https://docs.tolt.com/api-reference/partners/approve-a-partner.md): Makes the partner active. A partner who was not already active is sent the program's approval email. - [Reject a partner](https://docs.tolt.com/api-reference/partners/reject-a-partner.md): Rejects the partner. A partner who was not already rejected is sent the program's rejection email with the note. - [Suspend a partner](https://docs.tolt.com/api-reference/partners/suspend-a-partner.md): Suspends the partner, with an optional suspension_reason. Use the approve action to make them active again. - [List links](https://docs.tolt.com/api-reference/links/list-links.md): Lists ordinary links. Campaign-managed links are excluded. - [Get a link by param and value](https://docs.tolt.com/api-reference/links/get-a-link-by-param-and-value.md): Looks up a single link by its parameter and value (value matched case-insensitively). Returns 404 when none matches. - [Create a link](https://docs.tolt.com/api-reference/links/create-a-link.md): Creates a referral link for a partner. The value must be unique for its parameter, and param defaults to the program's. - [Get a link](https://docs.tolt.com/api-reference/links/get-a-link.md): Gets an ordinary or campaign-managed link by ID. - [Update a link](https://docs.tolt.com/api-reference/links/update-a-link.md): Updates an ordinary link. Campaign-managed links must be changed through campaigns. - [Delete a link](https://docs.tolt.com/api-reference/links/delete-a-link.md): Deletes an ordinary link. Campaign-managed links must be changed through campaigns. - [List clicks](https://docs.tolt.com/api-reference/clicks/list-clicks.md): Lists recorded clicks. Filter by program, partner, link, country, or device, and page with cursors. - [Create a click](https://docs.tolt.com/api-reference/clicks/create-a-click.md): Records a click on a partner's link from your own server, for visits the browser script cannot see. Identify the source by link_id, by partner_id with an optional link_id, or by the link's param and value; the partner and program are resolved from it. Pass the returned id as click_id when you create… - [Get a click](https://docs.tolt.com/api-reference/clicks/get-a-click.md): Gets a recorded click by ID, with the partner, link, page, referrer, country, device and browser it came from. - [List customers](https://docs.tolt.com/api-reference/customers/list-customers.md): Lists customers. Filter by program, partner, link, click, status or your own customer_id, and page with cursors. - [Create a customer](https://docs.tolt.com/api-reference/customers/create-a-customer.md): Creates a customer attributed to a partner. Pass partner_id or link_id, and optionally the click_id that brought them in. - [Get a customer](https://docs.tolt.com/api-reference/customers/get-a-customer.md): Gets a customer by ID, with its status, the partner it is attributed to and your own customer and subscription IDs. - [Update a customer](https://docs.tolt.com/api-reference/customers/update-a-customer.md): Updates a customer's name, email, status, your own IDs, or the click and link the customer came from. - [Delete a customer](https://docs.tolt.com/api-reference/customers/delete-a-customer.md): Deletes a customer. Fails when any of the customer's commissions is paid or already included in a payout. - [List transactions](https://docs.tolt.com/api-reference/transactions/list-transactions.md): Lists transactions. Filter by program, partner, customer or status, and page with cursors. - [Create a transaction](https://docs.tolt.com/api-reference/transactions/create-a-transaction.md): Supports historical created_at values. product_id and product_name are stored and returned in product_ids and product_names arrays. - [Get a transaction](https://docs.tolt.com/api-reference/transactions/get-a-transaction.md): Gets a transaction by ID, with its amount, status, billing details, products and the customer it belongs to. - [Update a transaction](https://docs.tolt.com/api-reference/transactions/update-a-transaction.md): Updates a transaction's amount, status, billing or product details. Refunded transactions cannot be modified. - [Delete a transaction](https://docs.tolt.com/api-reference/transactions/delete-a-transaction.md): Deletes a transaction. Refunded transactions and transactions that already have commissions cannot be deleted. - [Refund a transaction](https://docs.tolt.com/api-reference/transactions/refund-a-transaction.md): Unpaid commissions are zeroed while preserving their original deducted commission amount, and affected draft invoices are recalculated. Paid commissions and commissions linked to legacy autopayout invoices receive a negative reversal. - [Rerun flows for a transaction](https://docs.tolt.com/api-reference/transactions/rerun-flows-for-a-transaction.md): Re-queues the transaction for asynchronous flow processing. Only transactions without an existing commission are eligible, so a rerun cannot create a duplicate commission. - [List commissions](https://docs.tolt.com/api-reference/commissions/list-commissions.md): Lists commissions. Filter by program, partner, customer, transaction, status or type, and page with cursors. - [Create a commission](https://docs.tolt.com/api-reference/commissions/create-a-commission.md): Supports historical created_at values. Status defaults to approved when omitted. - [Get a commission](https://docs.tolt.com/api-reference/commissions/get-a-commission.md): Gets a commission by ID, with its amount, status, type and partner, plus its customer and transaction when it has them. - [Update a commission](https://docs.tolt.com/api-reference/commissions/update-a-commission.md): Unpaid commissions can be changed unless linked to a confirmed invoice or legacy autopayout invoice. Affected draft invoice totals are recalculated. - [Delete a commission](https://docs.tolt.com/api-reference/commissions/delete-a-commission.md): Deletes a commission. Fails for paid commissions, refund commissions, commissions on a refunded transaction, and those on a confirmed or legacy autopayout invoice. - [Approve commissions in bulk](https://docs.tolt.com/api-reference/commissions/approve-commissions-in-bulk.md): Approves up to 100 commissions and reports the outcome per id. Successful changes and affected draft invoice totals commit together. - [Decline commissions in bulk](https://docs.tolt.com/api-reference/commissions/decline-commissions-in-bulk.md): Declines up to 100 commissions and reports the outcome per id. Successful changes and affected draft invoice totals commit together. - [Approve a commission](https://docs.tolt.com/api-reference/commissions/approve-a-commission.md): Marks a commission approved so it is included in the next payout. Fails for paid commissions, refund commissions, commissions on a refunded transaction, and those on a confirmed or legacy autopayout invoice. - [Decline a commission](https://docs.tolt.com/api-reference/commissions/decline-a-commission.md): Marks a commission declined so it is left out of payouts until it is approved again. Fails for paid commissions, refund commissions, commissions on a refunded transaction, and those on a confirmed or legacy autopayout invoice. - [List promotion codes](https://docs.tolt.com/api-reference/promotioncodes/list-promotion-codes.md): Lists promotion codes. Filter by program, partner or type, and page with cursors. - [Create a promotion code](https://docs.tolt.com/api-reference/promotioncodes/create-a-promotion-code.md): Creates a promotion code for a partner, so customers who use it are credited to them. A partner cannot have the same code twice. - [Get a promotion code](https://docs.tolt.com/api-reference/promotioncodes/get-a-promotion-code.md): Gets a promotion code by ID, with its discount type and value and the partner, group or program it belongs to. - [Update a promotion code](https://docs.tolt.com/api-reference/promotioncodes/update-a-promotion-code.md): Updates a promotion code's code, discount type or value. - [Delete a promotion code](https://docs.tolt.com/api-reference/promotioncodes/delete-a-promotion-code.md): Deletes a promotion code, so customers who use it afterwards are no longer attributed through it. - [Report overview totals](https://docs.tolt.com/api-reference/reports/report-overview-totals.md): Returns revenue, commission, customer and partner totals for the organization or one program over a date range. - [Revenue, commissions, customers, and clicks over time](https://docs.tolt.com/api-reference/reports/revenue-commissions-customers-and-clicks-over-time.md): Returns revenue, commissions, customers and clicks per day, week or month over a date range, ready to chart. - [Per-partner performance breakdown](https://docs.tolt.com/api-reference/reports/per-partner-performance-breakdown.md): Returns one row of revenue, commissions, customers and clicks per partner over a date range, sorted and paged by offset. - [Per-link performance breakdown](https://docs.tolt.com/api-reference/reports/per-link-performance-breakdown.md): Returns one row of revenue, commissions, customers and clicks per link over a date range, sorted and paged by offset. - [Customer counts by subscription status](https://docs.tolt.com/api-reference/reports/customer-counts-by-subscription-status.md): Returns how many customers are in each subscription status for the organization or one program. - [Create an embed token](https://docs.tolt.com/api-reference/embed/create-an-embed-token.md): Mint a short-lived, partner-scoped token for the embedded referral dashboard. Safe to send to the browser. With partner (email and program_id), the partner is created when the program has none with that email, so one call covers a user's first visit. - [List programs](https://docs.tolt.com/api-reference/programs/list-programs.md): Lists the programs in your organization, with search, date filters and cursor pagination. - [Get a program](https://docs.tolt.com/api-reference/programs/get-a-program.md): Gets a program by ID, with its name, currency, website, cookie duration and payout terms. - [List groups](https://docs.tolt.com/api-reference/groups/list-groups.md): Lists partner groups. Filter by program or by the default group, and page with cursors. - [Get a group](https://docs.tolt.com/api-reference/groups/get-a-group.md): Gets a partner group by ID, with the program it belongs to and whether it is the program's default group. - [List flows](https://docs.tolt.com/api-reference/flows/list-flows.md): Lists flows. Filter by program, group, campaign, event or active state, and page with cursors. - [Get a flow](https://docs.tolt.com/api-reference/flows/get-a-flow.md): Gets a flow by ID, with the event it runs on, its conditions and its action: a commission to generate or a group to move the partner to. - [Webhooks](https://docs.tolt.com/webhooks/introduction.md): Get a signed POST the moment a partner joins, a customer converts or a commission is created. - [Webhook event types](https://docs.tolt.com/webhooks/event-types.md): Every webhook event Tolt sends for partners, links, customers, transactions and commissions, and when each one fires. - [Verify webhooks](https://docs.tolt.com/webhooks/verify.md): Check the signature on every Tolt webhook delivery before you act on it, and get a typed event back with @tolt/webhooks. - [Test webhooks locally](https://docs.tolt.com/webhooks/local-development.md): Forward your organization's webhooks to localhost with the Tolt CLI. No tunnel, no deploy. - [partner.created](https://docs.tolt.com/webhooks/events/partner-created.md): Sent when a partner joins your program, with the answers from their application. - [partner.updated](https://docs.tolt.com/webhooks/events/partner-updated.md): Sent when a partner's profile or status changes. - [link.created](https://docs.tolt.com/webhooks/events/link-created.md): Sent when a referral link is created for a partner. - [link.updated](https://docs.tolt.com/webhooks/events/link-updated.md): Sent when a partner's referral link is edited. - [customer.created](https://docs.tolt.com/webhooks/events/customer-created.md): Sent when a referred visitor becomes a customer, usually as a lead. - [customer.updated](https://docs.tolt.com/webhooks/events/customer-updated.md): Sent when a customer's details change, for example when a lead converts to active. - [transaction.created](https://docs.tolt.com/webhooks/events/transaction-created.md): Sent when a sale is recorded against a customer. - [transaction.updated](https://docs.tolt.com/webhooks/events/transaction-updated.md): Sent when an existing transaction is amended, for example refunded or its status changes. - [commission.created](https://docs.tolt.com/webhooks/events/commission-created.md): Sent when a partner earns a new commission, from a tracked sale or one created by hand in the dashboard. - [commission.updated](https://docs.tolt.com/webhooks/events/commission-updated.md): Sent when a commission is approved, declined or edited, and when a Stripe refund zeroes an unpaid one. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.