Help
Sovrn Commerce credentials
Where to find each Sovrn Commerce credential Affilitera asks for, who can create it, and what each connection error means.
Last updated
Sovrn Commerce connects with a Secret key, your site's API key and its Site ID. Take all three from the same site in Sovrn.
Secret key
The key Sovrn's Commerce APIs check on every request. Affilitera uses it to read your transactions and approved merchants.
Where to find it
- In Sovrn Commerce, open Settings.
- Click the Key icon under Actions.
- Click Generate secret key and copy it.
Set up first
- Sovrn shows no Secret key until you generate one.
- Generate it for the same site whose Site ID you save here. Sovrn issues a separate Secret key for each site.
Expiry and rotation: If the Secret key is regenerated in Sovrn, the saved one stops working. Generate it again and save the new one here.
Site API key
Your site's API key. Affilitera puts it in your Sovrn affiliate links and in product and coupon requests. It is not used to sign in to the API.
Where to find it
- In Sovrn Commerce, open Settings.
- Click the Key icon under Actions for your site.
- Copy the site API key.
Site ID (campaign ID)
Your numeric Site ID, which Sovrn also calls the campaign ID. It tells Sovrn which site's approved merchants to return.
Where to find it
- In Sovrn Commerce, open Settings.
- Click the Gear icon under Actions for your site.
- Copy the number after selectedSite= in the browser's address bar.
Common errors
These are the messages a Sovrn Commerce connection can show on its row in My Network, or after Test connection.
Sovrn: Secret key not saved — generate it in Sovrn Commerce → Settings → Key icon → Generate secret key, then save before testing
The connection has no Secret key saved.
- In Sovrn Commerce, open Settings → Key icon → Generate secret key.
- Paste it into Secret key, save, then test again.
Sovrn: Site API key not saved — copy it from Sovrn Commerce → Settings → Key icon, then save before testing
The connection has no site API key saved.
- In Sovrn Commerce, open Settings → Key icon for your site.
- Paste the site API key into Site API key, save, then test again.
Sovrn: Site ID (campaign ID) not saved — copy it from Sovrn Commerce → Settings → Gear icon (selectedSite=…), then save before testing
The connection has no Site ID saved.
- In Sovrn Commerce, open Settings → Gear icon for your site.
- Copy the number after selectedSite= in the address bar into Site ID, save, then test again.
Sovrn: credentials not configured
A brands sync ran without the Secret key, the site API key or the Site ID saved.
- Save all three fields on the connection.
- The next sync uses them.
Sovrn refused the saved Site ID for this Secret key (…). Sovrn issues a separate Secret key for each site, so both must come from the same site. To fix: in Sovrn Commerce → Settings, choose the site to sync, copy its Site ID (Gear icon — the number after selectedSite=) and that same site's Secret key (Key icon → Generate secret key), and save both on this connection. Nothing syncs from Sovrn until they match.
The Secret key works, but it belongs to a different site from the saved Site ID. Orders may still load while merchants are refused.
- In Sovrn Commerce → Settings, choose the site you want to sync.
- Copy its Site ID (Gear icon) and generate that same site's Secret key (Key icon).
- Save both here.
Sovrn rejected the saved Secret key (…). It may have been regenerated in Sovrn or copied incompletely. To fix: in Sovrn Commerce → Settings → Key icon for the site whose Site ID is saved here, generate a Secret key and save it on this connection.
Sovrn did not accept the saved Secret key. It may have been regenerated or only partly copied.
- In Sovrn Commerce → Settings, click the Key icon for the site whose Site ID is saved here.
- Generate a Secret key and save it in Secret key.
Sovrn accepted the Secret key but refused this data (…). To fix: the Sovrn account needs API reporting access for this site, which is enabled on the Sovrn side, not here.
The Secret key is valid, but the Sovrn account does not have API reporting access for this site.
- Ask for API reporting access for this site on the Sovrn side.
- Nothing needs to change on this connection.
What each status on the connection means
Credentials rejected
Sovrn Commerce refused the saved credentials. They were mistyped, regenerated or revoked on the Sovrn Commerce side, or belong to a user who has lost access.
- Open the connection and choose Update credentials.
- Copy each value again from Sovrn Commerce, using the steps in the field sections above, and save.
- Test the connection. The next sync uses the new values.
Credentials expired
A token Sovrn Commerce issues for a limited time, or for one use only, is no longer valid.
- Create a new token in Sovrn Commerce as described in the field section above.
- Save it on the connection and test again.
Credential missing
A value the connection needs has not been saved, so Affilitera cannot call Sovrn Commerce at all.
- Open the connection and choose Update credentials.
- Fill in every required field and save.
API access off
Sovrn Commerce accepted the credentials but refused the data. API or reporting access is not switched on for this account or site on the Sovrn Commerce side.
- Switch on API or reporting access in Sovrn Commerce (see the setup notes in the field sections above).
- Test the connection again. Nothing needs changing in Affilitera.
Account mismatch
The saved values come from different Sovrn Commerce accounts, for example an ID from one account and a key from another.
- Sign in to the one Sovrn Commerce account you want to connect.
- Copy every value from that same account, save, and test again.
Token save pending
Sovrn Commerce issued a new token and Affilitera could not save it yet. This usually clears on its own at the next sync.
- Wait for the next sync.
- If the message stays, create a new token in Sovrn Commerce and save it on the connection.
Check credentials
Sovrn Commerce refused the connection with a message Affilitera does not recognize.
- Check each saved value against Sovrn Commerce, using the field sections above.
- Save and test again. If it still fails, contact support and quote the message shown on the connection.