Docs

# Migrate from Tolt

Move your Tolt affiliate program to Affiligato: partners, the links they already shared, referred customers and commission history, with a Tolt API key.

The import reads your Tolt program through Tolt’s API with a key you create, and brings everything over in one run that you can repeat. Your partners keep the links they already shared, as long as those links point at your own site.

## What comes across

| From Tolt                                 | In Affiligato                                                                                                                                                                  |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Partners, with their name and email       | Partners. Active ones are approved, pending ones wait for you, rejected and suspended ones keep that status.                                                                   |
| Every link of each partner, `?ref=sam`    | Kept as that partner’s codes under the same parameter, so a link already shared keeps crediting them.                                                                          |
| Customers a partner referred              | Customers of that partner, known by their email and by the customer id Tolt holds for them, dated from when they became active, else from when they became a lead.             |
| Commissions, with the sale they came from | Commissions in your program’s currency, with the sale amount. Paid ones arrive paid, approved ones approved, pending ones pending; refunded and rejected ones arrive reversed. |

## What does not come across

* **Payout methods.** Tolt’s API does not share them. Partners add a payout method in their portal.
* **Your commission rates and groups.** Set them in Affiligato; they apply to every sale from the move on.
* **Promotion codes.** Create them again in Affiligato if partners hand out coupons.
* **Campaign links and short links.** Tolt’s API lists a partner’s ordinary links only.
* **Clicks**, which start counting again in Affiligato.

## Before you start

1. [Create your program](https://affiligato.com/docs/getting-started/) in the currency your Tolt program uses.
2. [Install the tracking script](https://affiligato.com/docs/tracking-script/) on the site your partner links point to.
3. Connect the payment platform your sales come from, such as [Stripe](https://affiligato.com/docs/stripe/) or [Paddle](https://affiligato.com/docs/paddle/).
4. In Tolt, turn off autopayouts on the **Payouts** page, and pay or decline what is due. See [Paid history](https://affiligato.com/#paid-history) for why.

## Move the program

1. ### Create a Tolt API key

   In Tolt, open **Settings → Developers → API keys**, create a key and copy it: Tolt shows it only once.

2. ### Verify the key in Affiligato

   Paste the key into **API key** under **Partners → Import → From another platform**, with **Tolt** chosen, and choose **Verify**: it shows the Tolt programs the key reaches. With more than one, choose the program you are moving; run the import again for each other program, into an Affiligato program of its own.

3. ### Start the import

   Choose **Start import**. Partners come first, then customers, then commissions, each counted as new, updated or skipped. Closing the window does not stop it. When it is done, **Skipped, and why** names every row it left out and the reason.

4. ### Delete the key

   Affiligato keeps the key encrypted while the import runs and deletes it when the run ends. Delete it in Tolt too once you no longer need it.

## Keep the links working

A Tolt link points at your own site, such as `https://yoursite.com/?ref=sam`. With the Affiligato script on that site, the link keeps crediting the partner it belonged to. The script reads every parameter Tolt lets a program choose: `tolt`, `ref`, `aff`, `via`, `lmref`, `fpr`, `tap_s`, `afmc`, `f2f-ref`, `join` and `ali`.

Once your sales are tracked through Affiligato, remove Tolt’s script, the tag with `data-tolt`, from your site.

## Paid history

Commissions Tolt marked paid arrive **paid**, and Affiligato never pays them again. Commissions Tolt approved but has not paid arrive **approved**, and Affiligato pays them in your next payout run. So pay them in one place only:

* pay them in Tolt before you import, and they arrive paid; or
* leave them unpaid in Tolt with autopayouts off, and pay them from Affiligato.

Run the import again after a last Tolt payout, and the commissions it paid move to paid.

## Renewals after the move

A renewal your payment platform bills to the same email, or to the same customer id, credits the partner who referred that customer, at your Affiligato terms. A limited recurring period, such as 12 months, counts from the customer’s first referral payment imported from Tolt, so the move does not restart it.

## Tell your partners

The import itself emails no one. Your [automations](https://affiligato.com/docs/app/messages/) still run: a partner who joined Tolt after you made a welcome or no-clicks automation gets it, as a new partner would. Partners sign in to your [partner portal](https://affiligato.com/docs/portal/dashboard/) with the email Tolt had for them, by an emailed link or Google, and find their history there. Send them a [campaign](https://affiligato.com/docs/app/messages/) that says:

* the program has moved to Affiligato, and where the portal is;
* the links they already shared keep working;
* they add a payout method in the portal to be paid from now on.

## Run it again

The import can run as often as you need while your Tolt account is open. Each run adds what is new since the last, updates what changed, and creates nothing twice. Agents can run it with the `import_program` tool, `source: "tolt"` and the key as `credentials.api_key`, then follow it with `import_status`.
