New to migrating in general? Start with the Migration overview for how imports work, then come back here for the PartnerStack-specific steps.
Before you start
You’ll need:- Admin access to your PartnerStack account — the company dashboard where you manage your partner program, so you can reach its settings and copy your API key.
- Your Referly program open in the dashboard, ready to import into.
- A few minutes. Larger programs take longer to pull across, but the import runs in the background — you don’t have to wait on the screen.
Get your API key from PartnerStack
Referly connects to PartnerStack using an API key from your PartnerStack company dashboard. PartnerStack gives you two values — a public key and a secret key — but Referly only needs the secret key. Here’s how to find it on PartnerStack’s side:1
Log in to PartnerStack
Sign in to your PartnerStack account as an admin. Use your company dashboard — the one where you manage your partners and rewards — not a partner’s own login.
2
Open your API keys
Go to Settings, then open Integrations, and find the PartnerStack API Keys section.
3
Choose your Production keys
PartnerStack shows two sets of keys: Test and Production. Use the Production keys. Test keys only work with test data and won’t bring your real partners, customers, and sales across.
4
Copy your Secret key
Reveal and copy the Secret key from the Production set. This single value is all Referly needs — you can ignore the public key.
If you ever think your secret key has been exposed, you can regenerate it in the same PartnerStack settings screen — then reconnect in Referly with the new key.
Open the import tool and choose PartnerStack
1
Open the import tool
In your Referly dashboard, select the plus (+) button in the top bar, then choose Import Data. You can also select Import from the top of your Affiliates, Customers, or Sales pages.
2
Pick PartnerStack as your source
On the Choose your source screen, select PartnerStack from the list of platforms.
Connect your PartnerStack account
The next screen shows PartnerStack connecting to Referly, with a single API key field.1
Paste your secret key
Paste the Secret key you copied from PartnerStack into the API key field. It’s hidden as you type, the same way a password field is.
2
Save the connection
Select Save connection. Referly checks the key with PartnerStack right away. If it works, you’ll see the connection saved with a green Saved connection badge. If it doesn’t, double-check that you copied the whole Secret key from the Production set and try again.
Referly remembers this connection, so the next time you import from PartnerStack — say, to bring sales across after your partners — you won’t have to enter the key again. To swap in a different key later, select Replace connection.
Choose what to import
Once the connection is saved, you choose which parts of your PartnerStack program to bring over. There are three, and they line up with PartnerStack like this:
You can tick one, two, or all three — but the order you import them matters. Referred customers attach to partners, and sales attach to customers, so those have to exist in Referly first. Always bring your partners over first, then referrals, then sales. See Import in the right order below.
Pick the fields to bring across
When you tick an object, it expands to show every field Referly can pull from PartnerStack for it. Each field has a checkbox, so you decide exactly what comes across. A few fields are marked Required — these are the details Referly needs to create the record, so they’re always on and can’t be switched off. Here’s what you can bring for each object.Affiliate (partner) fields
Affiliate (partner) fields
- First name (required) — the partner’s first name.
- Last name (required) — the partner’s last name.
- Email (required) — the partner’s email address. This is also how Referly links their referred customers and sales back to them, so a partner with no email in PartnerStack can’t be brought across.
- Join date — when they joined your PartnerStack program, so their history stays accurate.
- Affiliate link — their referral link. Referly brings over the partner’s default link from PartnerStack so their existing links carry over.
- Provider affiliate ID — the partner’s key in PartnerStack, kept for your reference.
- Provider status — the partner’s status in PartnerStack (for example, approved or archived), kept for your reference.
Referral (customer) fields
Referral (customer) fields
- First name (required) — the customer’s first name.
- Last name (required) — the customer’s last name.
- Email (required) — the customer’s email address.
- Affiliate email (required) — the email of the partner who referred them. This is how each customer gets attached to the right partner, which is why partners must be imported first. A customer Referly can’t trace back to one of your partners is skipped.
- Join date — when the customer was first created in PartnerStack.
- External user ID — the customer’s ID from PartnerStack (or the connected billing system), kept for your reference.
- Provider customer ID — the customer’s key in PartnerStack, kept for your reference.
- Provider status — whether the customer was a live or test record in PartnerStack.
Sale fields
Sale fields
- Customer email (required) — the email of the customer who bought.
- Customer name — the customer’s name.
- Affiliate email — the email of the partner credited for the sale.
- Transaction amount (required) — the value of the sale.
- Transaction date — when the sale happened.
- Commission (required) — the commission earned on that sale. PartnerStack can attach more than one reward to a single transaction; Referly adds those together so each sale shows the full commission it earned.
- Paid status — whether the commission was already paid out in PartnerStack, so your payout history stays right.
- Affiliate link — the partner’s key or link tied to the sale, kept for your reference.
- Provider transaction ID — the transaction’s ID in PartnerStack, kept for your reference.
- Provider status — the reward’s status in PartnerStack (for example, pending or approved).
Check the field matches
Before anything is imported, Referly shows you a preview of your PartnerStack data lined up against the matching Referly fields. This is your chance to confirm everything landed in the right place — that names, emails, and amounts are matched to the fields you’d expect.
Look the preview over, and when it looks right, confirm to start the import.
Start the import and follow its progress
Imports run in the background, so you can close the panel and keep working. Every import appears in the Recent Imports list inside the import tool, each with its own progress. An import moves through these states:
Each card shows a progress bar and a running count of how many records came in and how many were skipped. A record is skipped when it’s missing a detail Referly needs — for example, a PartnerStack partner with no email, a customer Referly can’t trace back to one of your partners, or a sale with no amount or commission on it. That’s normal; the skipped count just tells you those few couldn’t be brought across.
You can pause a running import and resume it later, open Details for the full breakdown, or delete one you no longer need.
Import in the right order
Because referred customers attach to partners and sales attach to customers, run your PartnerStack imports in this order and let each finish before starting the next:1
Affiliates first
Bring your partners over so there’s an affiliate for every customer and sale to attach to.
2
Referrals next
Import your referred customers. Each one links to its partner by email — which only works once those partners are already in.
3
Sales last
Import your transactions and commissions, credited to the partners and matched to their customers.
Related
Migration overview
How imports work and what you can bring across.
Migrate from CSV
Prefer a spreadsheet? Import affiliates, customers, or sales from a file.
Commission plans overview
Set the terms your migrated partners earn on.
Invite affiliates
Bring new partners into your program by email.