Connect
CJ Affiliate: connect with a Personal Access Token and your company id
TL;DR
CJ Affiliate connects with two values: a Personal Access Token from developers.cj.com and the company id (CID) the token's user belongs to. CJ decides whether the company is a publisher or an advertiser; the connection records it and which CJ APIs the token can read.
Required fields
| Field | Where it comes from | Notes |
|---|---|---|
| Personal Access Token | developers.cj.com → Personal Access Tokens (https://developers.cj.com/account/personal-access-tokens) | Acts as your CJ user. Stored encrypted, never shown again. |
| Company id (CID) | CJ Account Manager, next to the company name | Required: CJ's API cannot find the company from a token. Every call is bound to it. |
| Website id (PID) | Optional — your promotional properties | Publishers: the default website id for links and products. Read from your promotional properties when left empty. |
| Account currency | Optional — your CJ account's functional currency | Labels the account-currency amounts (CJ does not name it on the records). USD amounts are always shown beside them. |
Connect step by step
- 1Sign in to developers.cj.com with your CJ user and create a Personal Access Token.
- 2In CJ Account Manager, note the company id (CID) shown next to the company name.
- 3In Agent Planners open Integrations → CJ Affiliate → Connect with a token, paste the token, type the CID (and optionally a website id, the account currency and a name), and press Check and save.
- 4Agent Planners checks the token with CJ for that company, records whether it is a publisher or an advertiser, its website ids, and which CJ APIs the token's user can read.
A token from a user who does not belong to that company is refused with CJ's own words. Several tokens for the same company can be connected — each is its own sign-in.
Publisher and advertiser: what each kind reaches
| Publisher | Advertiser | |
|---|---|---|
| Tools that answer | 15 reads and 2 writes | 9 reads and 3 writes |
| Reads | Advertisers and programs, program terms, links with tracking URLs, products, product feeds, promotional properties, item lists, commissions and the commission report | Joined publishers, products, product feeds, commissions and the commission report (with CJ's fee) |
| Changes | Add or edit a promotional property (website id) | Add, change or delete products in a feed (≤ 1,000 a call; deleting always waits for a person) |
A tool for the other kind answers with a sentence and makes no call.
How currency works
- CJ reports every amount twice: in the CJ account's own currency and in US dollars. The agent keeps the two side by side and never adds one to the other. CJ does not name the account's currency on its records, so the CJ card has a field to label it.
- Totals are kept per currency: a report row carries the commission and the sale in the account currency (
_account) and in USD (_usd). - Corrections are delta records (often negative), so a report's totals are net of them.
Limits
- Commissions are read 31 days per request (CJ's limit); a longer window, up to 366 days, is read in 31-day pieces and de-duplicated.
- CJ's own limits: 25 calls a minute on each REST lookup and 200 commission calls every 5 minutes. CJ sends no rate-limit headers.
- A commission read stops at its record limit (20,000 by default, at most 100,000) and says so.
What CJ's API does not offer
- No clicks or impressions report: CJ's API has none — EPC (earnings per hundred clicks) comes from the advertiser list.
- No payments or settlements API: payouts and balances stay in CJ Account Manager.
- No deep-link generation API: a tracking link is a link's clickUrl from link search (deep linking where the advertiser allows it) or a product's link code.
- No API to correct a commission: corrections arrive as their own commission records, which the agent reads.
What needs a person, and what is refused
- By default every change waits for your approval card; auto-approve and an API key that applies changes at once are opt-in.
- Always a person, on every lane: Deleting products from a feed, setting a promotional property to ARCHIVED or TERMINATED (CJ stops tracking on that website id) and making a property the account's primary one always wait for a person, on every lane — even with auto-approve on — and never ride a batch.
- Refused: More than 1,000 products in one call and a write naming another CJ company are refused. CJ publishes no API for payments, users or credentials, so none is reachable.
CJ's error answers were measured with a real publisher token (read-only); its success answers follow CJ's own documentation. No write has been sent to a live CJ account yet. If something behaves differently, Support wants to hear about it. CJ Affiliate setup guide · CJ Affiliate platform page · CJ Affiliate MCP server
Frequently asked questions
- Where do I find my CID?
- In CJ Account Manager, next to your company name. It is a number of 3 to 12 digits.
- Can I connect both a publisher and an advertiser company?
- Yes — each company is its own connection, and a task can use either.
- Why does a tool say it works on the other kind of company?
- Some CJ APIs are for publishers only (advertiser lookup, link search, program terms, promotional properties) and some for advertisers only (publisher lookup, product import). The tool says so instead of calling CJ.