Connect CJ (Commission Junction)
CJ reads through its REST API using a Personal Access Token (PAT) you generate yourself, scoped to your own publisher account. ChaffChing only ever reads commission data — a read-only token is all it needs, and your keys stay in your device Keychain.
- Personal Access Token
- Publisher ID (CID)
Before you start
- You must be a registered CJ Affiliate publisher and able to sign in to your account.
- CJ's older "developer key" is deprecated — Personal Access Tokens replaced it. If a tutorial mentions developer keys, it's out of date.
- To return real numbers you also need to be approved into advertiser programs. With no approved advertisers, the API responds with empty data.
Step 1 — Create a Personal Access Token
- Sign in to the CJ Developer Portal at developers.cj.com with your CJ account.
- In the left sidebar open Authentication → Personal Access Tokens (direct link: developers.cj.com/account/personal-access-tokens).
- Under Register a New Personal Access Token, give it a name (e.g. "ChaffChing") and choose Register.
- Copy the token immediately. CJ shows the full token only once — once you leave the page it's hidden for good. If you lose it, revoke it and register a new one.
CJ sends the token as a Bearer credential. Paste it into ChaffChing's Personal Access Token field exactly as copied.
Step 2 — Find your Publisher ID (CID)
- Sign in to your CJ account at junction.cj.com.
- Your CID (Company ID) sits in the upper-right corner, next to your username. It's a numeric account ID, typically 7 digits.
- Paste it into ChaffChing's Publisher ID (CID) field.
Don't confuse the CID (your account, top-right) with the PID (a Website / Promotional Property ID under Account → Websites). ChaffChing needs the CID. CJ explains the difference in Identification: It's Everywhere.
Troubleshooting
"Could not authenticate"
The token is wrong, was only partly copied, or has been revoked. Generate a fresh PAT (Step 1) and paste the whole string — CJ tokens are long.
Connected, but no sales
Confirm you're approved into at least one advertiser program, double-check the CID (not a PID), and run Re-sync history from the ⋯ menu to pull the last 90 days.