REST API

The affiliate API under /api/v1 – keys, limits, every endpoint with parameters and responses, pagination and error codes.

View as Markdown

The REST API gives your own scripts and integrations access to the same data as the affiliate dashboard: programs, rules, products, links, sites, clicks, sales, balance and payouts. Every endpoint maps to a tool on the MCP server – the same functions sit behind both.

The API is for affiliates only. Stores have no API.

Get started

  1. Open AI og API (AI and API) in the dashboard menu (under Markedsføring, Marketing) and choose the For udviklere (For developers) tab – the address is app.affilyflow.com/indstillinger/api?fane=udviklere. The dashboard is in Danish.
  2. Create an API key and give it a name, e.g. "My site".
  3. Copy the key right away. It is shown only once, and we store only a fingerprint of it.

Send the key in the Authorization header on every request:

List your programsShell
curl https://app.affilyflow.com/api/v1/programs \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY"

The header X-API-Key: afk_… also works. A key always starts with afk_.

GET https://app.affilyflow.com/api/v1 needs no key and returns a machine-readable overview of every endpoint, parameter and limit.

OAuth connections (claude.ai, ChatGPT, Claude Code) only work on the MCP server – not on the REST API.

Conventions

TopicRule
Base URLhttps://app.affilyflow.com/api/v1
FormatJSON in and out. Send Content-Type: application/json with a body.
AmountsDanish kroner (DKK) excluding VAT. Sales in other currencies are converted at a locked ECB rate; the original is in original_currency and original_value.
Datesfrom and to as YYYY-MM-DD in Danish time (Europe/Copenhagen), both inclusive. Without them: the last 30 days. At most 366 days per request.
IDsPrograms, links, sites and sales have UUIDs. click_id is an integer.
Paginationlimit + cursor. The response has total, has_more and next_cursor. Pass next_cursor back as cursor with the same filters.
Errors{ "error": { "code": "…", "message": "…" } } with an HTTP status. Codes are stable identifiers; messages are in Danish.
LanguageData labels such as status_text and notes are in Danish.
CacheResponses are sent with Cache-Control: no-store.

Rejected sales never count as sales or commission in the numbers.

Limits

LimitValueError
Requests per minute per key120HTTP 429 rate_limited with Retry-After: 60
Write requests per minute per key60 (a batch request counts as one)HTTP 429 rate_limited
New links per 24 hours per account500 (every new link on the account in the last 24 hours counts)HTTP 429 daily_link_limit
Links per batch50HTTP 400 invalid_input
New program joins per 24 hours per account (/programs/{id}/join)20 (a program you have already joined does not count)HTTP 429 join_limit
AI analyses of sites (/recommendations with a new analysis)10 per 24 hours per account (failed analyses too), the same site at most once per 24 hoursHTTP 429 daily_limit / too_soon

A reused identical link does not count as a new link. Append ?sid=<sub-id> (another sub-ID) or ?p=<path> (another page at the store) to an existing link instead of creating many near-identical links – see Links and sub-IDs.

Endpoints

MethodPathUseMCP tool
GET/accountYour account, your social profiles, quota and dashboard linksget_account
GET/catalogSearch all open programssearch_programs
GET/programsPrograms you have joinedlist_programs
GET/programs/{id}One program with rules and guidelinesget_program
GET, POST/programs/{id}/complianceCheck a promotion against the rulescheck_compliance
POST/programs/{id}/joinSee the terms and join a programjoin_program
GET/productsSearch the stores' productssearch_products
POST/recommendationsProducts that fit one of your sites or an addressrecommend_products
GET/product-listsYour product boxeslist_product_lists
GET/product-lists/{id}One product box with products and HTMLlist_product_lists
POST/product-listsCreate a listcreate_product_list
POST/product-lists/{id}/itemsPut a product in a product boxadd_to_product_list
GET/websitesYour registered siteslist_websites
POST/websitesAdd a siteadd_site
PATCH/websites/{id}Edit a siteupdate_site
GET/linksYour linkslist_links
POST/linksCreate a linkcreate_link
POST/links/batchUp to 50 links in one requestcreate_links_batch
GET/links/{id}One link with numbersget_link
PATCH/links/{id}Change name, landing page or site labelupdate_link
POST/links/{id}/archiveArchive a linkarchive_link
DELETE/links/{id}/archiveRestore an archived linkrestore_link
GET/statsClicks, sales and commission for a periodget_stats
GET/salesIndividual saleslist_sales
GET/clicksIndividual clicks with page and sourcelist_clicks
GET/sitesMeasured sitesget_sites
GET/pagesPages on your sitesget_pages
GET/balanceBalance and next payoutget_balance
GET/payoutsYour payoutslist_payouts

Account

GET /account

Returns account (partner ID, display name and how stores see you, country, niche, promotion_types (SEO, Social, E-mail, Andet), channels (the channels on your active links and the platforms of your social profiles – what stores see under "Promotes via"), social_profiles, number of sites, links and joined programs, currency and timezone), access, quota (links in the last 24 hours, remaining, limits and requests used in the current minute) and dashboard with the addresses of the dashboard pages.

Programs

GET /catalog

The full catalog of open programs – including programs you have not joined.

ParameterTypeDescription
querytextFree text matched against store name, category, description and audience.
categorytextCategory (Danish label), e.g. Bolig. The response lists them in categories.
joinedtrue / falseOnly joined or only not joined. Omit for both.
min_commission_pctnumber 0–100Minimum percentage commission. Fixed-amount programs are excluded.
recurring_onlytrue / falseOnly programs that pay commission on subscription renewals.
channeltextOnly programs that allow the channel, e.g. TikTok.
marketcountry codeOnly stores that sell to the country (ISO 3166-1, e.g. DK, SE). Programs with an unknown market (empty markets) are included. The response lists the countries in markets.
sortepc, commission, newest, name, recommendedDefault: epc (network earnings per click). recommended = the same personal order as "Recommended for you" in the dashboard; each program then gets recommendation with reasons (kind + text, text in Danish) and exploration.
limit1–50Default 20.
cursortextFrom next_cursor.

Each program includes program_id, store, markets (country codes the store sells to – an empty list means unknown), joined, commission (type, value, text), cookie_days, approval_days, recurring_months, allowed_channels, paid_search (allowed, no_brand or forbidden), allow_coupon_sites, network (EPC, conversion, order value and approval rate – rejected sales excluded) and join_url. Join with POST /programs/{id}/join or in the dashboard via join_url.

GET /programs

The programs you have joined, with commission, cookie days, channels, the saved rules and the store guidelines (truncated). active: false means new sales give no commission; inactive_reason says why (program_paused or store_inactive). The field brand_bidding is deprecated – use paid_search. Parameters: search (store name) and sort (name or recommended: the programs that fit your sites, niche and channel best come first – with recommendation.reasons).

GET /programs/{id}

Everything about one program: the store's description and audience, the guidelines verbatim, the rules that apply today (rules.now), the saved rules (rules.saved) and the date a tightening takes effect (rules.tightening_effective_from), a compliance_summary, the rule-watch mode (enforcement.mode: shadow or enforce), discount codes, creatives (banners with ready HTML and your link once joined), top products, network stats and your own numbers for the program (mine).

GET or POST /programs/{id}/compliance

Checks a planned promotion against the program's measurable rules. Send at least one parameter. Use POST with JSON when content is long.

ParameterDescription
channelPlanned channel, e.g. Instagram, SEO, E-mail.
placement_urlFull URL of the page where the link will be placed.
landing_pagePath or URL at the store.
ad_typepaid_search_brand, paid_search_generic, coupon_site, cashback_site, social_post, newsletter or website_content.
contentDraft text (max 20,000 characters) – checked for an advertising label.

The response has verdict (ok, warning or not_allowed), checks with a verdict and a reason per rule (plus effective_from when a tightening is coming), the store guidelines verbatim and the rule-watch mode. Only measurable rules are judged: channel, coupon and cashback sites from the placement's domain, paid search as declared, and the landing page. The advertising-label check is heuristic, and the store's free-text guidelines are not judged. See Program rules.

May I run Google Ads on generic keywords?Shell
curl "https://app.affilyflow.com/api/v1/programs/PROGRAM_ID/compliance?ad_type=paid_search_generic" \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY"

POST /programs/{id}/join

Joins you to a program – the same join as the button in the dashboard, and the store is notified. It takes two steps:

  1. Without accept_rules (or with an empty body) nothing changes. The response has the program's terms in terms – commission, cookie_days, approval_days, rules (today, saved and the date of a tightening), compliance_summary and the store's guidelines verbatim – and requires: "accept_rules".
  2. With "accept_rules": true you are joined (HTTP 201), and your first link is created. If you have already joined, nothing changes: HTTP 200 with already_joined: true.
FieldDescription
accept_rulestrue = you have read the terms and say yes.
channelThe channel of the first link (Website, Instagram, TikTok, YouTube, Facebook, Pinterest, E-mail or Andet). Must be allowed by the program (otherwise channel_not_allowed). Default: the channel of your most recent link; without one the link has no channel yet.
landing_pageOptional path or URL at the store for the first link. Requires a channel.
sub_idOptional sub-ID for the first link. Requires a channel.

The response has joined, already_joined, terms, link_url, link (the same fields as POST /links when the link has a channel), channel, channel_defaulted and note. At most 20 new joins per 24 hours.

See the terms, then joinShell
curl -X POST "https://app.affilyflow.com/api/v1/programs/PROGRAM_ID/join" \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY"

curl -X POST "https://app.affilyflow.com/api/v1/programs/PROGRAM_ID/join" \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "accept_rules": true, "channel": "Website" }'

Products

GET /products

Searches the stores' products across open programs.

ParameterTypeDescription
querytextSearch words (the catalogs are mostly Danish), e.g. sofa. Empty = the products you earn most on.
program_idUUIDOnly one program.
min_commission_pctnumber 0–100Minimum percentage commission.
in_stock_onlytrue / falseHide out-of-stock products.
featured_onlytrue / falseOnly products the store itself recommends.
marketcountry codeOnly products from stores that sell to the country, e.g. DK.
categoryid or slugA category in the product catalog tree – level 1 (e.g. lys-og-lygter) or level 2 (e.g. pandelamper). The id and slug are in each product's category.
brandtextOnly products from the brand (case-insensitive).
groupedtrue / falseOne row per product across stores: the best offer among the stores that sell it.
sortearnings, relevance, price, rate, recommendedDefault: relevance with a query, otherwise earnings. recommended mixes the stores and puts each store's own picks first. Products without a price or image always come last.
limit1–60Default 20.
cursortextFrom next_cursor.

Each product has product_id, title, url, image_url, price, currency, in_stock, store, program_id, commission, est_commission, joined and featured. featured is null, or { label, ends_at } when the store itself recommends the product – label is recommended, bestseller, new or campaign. For joined programs, tracking_url is your existing link sent straight to the product (?p=). est_commission is an estimate: the rate applied to the price excluding VAT, or the fixed amount. price and currency are the store's own price in the market it sells to – a Shopify store with several markets gives the price in its primary market. When the product is priced in another currency than your payout currency, price_approx and est_commission_approx are the amounts converted at the latest ECB rate ({ amount, currency, rate_date }, approximate); otherwise they are null.

category is the product's place in the product catalog tree – { id, slug, path }, e.g. path: ["Lys og lygter", "Pandelamper"] (the tree's names are Danish). A product that does not fit one of the other categories is under path: ["Øvrige", "Øvrige varer"] (Other, oevrige-varer). brand is the brand from the store's catalog and null when the store does not give one.

POST /recommendations

Reads one of your sites (or any public address) with AI and finds products in the network that fit it. The AI reads the front page and up to five subpages – the pages you get the most clicks from first – and builds a profile: niche, audience, language, market and 5–15 topics with search keywords. For the most important topics (up to 10) it finds products, ranked by how well they fit and then by what you earn; the same product from several stores appears only once. For up to five of the pages you get clicks from, it finds products for that exact page.

FieldTypeDescription
website_idUUIDOne of your sites from GET /websites.
urltextAn address, e.g. yourblog.com. Used when website_id is not sent.
refreshtrue / falseAnalyze again instead of using the saved analysis. At most once per 24 hours per site.

The analysis is saved for 30 days and reused without a new AI call; the products are found again every day, so new products in the network are included. Every new analysis – a site or address without a saved analysis, or refresh – counts towards the limit of 10 per 24 hours. A new analysis usually takes 30–60 seconds.

The response has site, profile (niche, summary, audience, language, market, site_type, topics), topics (each with products – a topic with no products in the network has an empty list), pages (path, url, clicks, theme, products), analyzed_at, expires_at and cached. Each product has product_id, title, brand, url, image_url, store, store_slug, program_id, price, currency, commission, est_commission, est_commission_currency, in_stock, featured, other_stores (number of other stores with the same product), joined and – for joined programs – tracking_url. featured is null or { label, ends_at } as in GET /products (ends_at is always null here). Products are checked against the catalog as it is now: products from programs that are no longer open, and products the store has hidden, are left out. Texts in the profile are in Danish. The profile is made by AI and can be wrong.

Product boxes

Your product boxes – called lists in the API – products you put on your site as a product box, comparison table or grid.

GET /product-lists

All your lists with list_id, name, description, variant, item_count, embed_script (the line for your site) and dashboard_url.

GET /product-lists/{id}

One list with items in order: product_id, title, store, price, currency, in_stock, note, tracking_url (your link straight to the product), visible and hidden_reason (gone, hidden, inactive, blocked or no_link) when the product cannot be shown right now. embed_html is a snapshot of the list that works without a script.

POST /product-lists

Creates an empty list (HTTP 201). Body: name (required, max 80 characters), description (max 300) and variant (box, table or grid). At most 50 lists.

POST /product-lists/{id}/items

Saves a product at the end of the list. Body: product_id (from /products) and note (max 200 characters). Responds 201 when the product is saved, and 200 with added: false when it is already there. If you have not joined the product's program, the API responds not_joined – join with POST /programs/{id}/join. At most 50 products per list.

Sites

GET /websites

Your registered sites with website_id, domain, name, niche, monthly_traffic and created_at.

POST /websites

Adds a site with the same rules as Sites og kanaler (Sites and channels) in the dashboard.

FieldDescription
domainRequired. E.g. mysite.com. A full URL is accepted and reduced to the domain.
nameDisplay name, max 120 characters. Default: the domain.
nicheE.g. Home, max 80 characters.
monthly_trafficApproximate monthly visitors.

A new site returns HTTP 201. If you already have the domain, nothing is created, and the response is the existing site with already_existed: true and HTTP 200. The response includes history with the clicks, sales and commission that already came from the domain.

PATCH /websites/{id}

Changes domain, name, niche or monthly_traffic. Send null or "" to clear name, niche or monthly_traffic. A domain you already use on another site is rejected with duplicate_domain. Sites can only be deleted in the dashboard.

GET /sites

Sites measured from clicks – registered and discovered – with clicks, sales, commission, EPC, page-tracking coverage and method, top stores and top pages. suggest_add: true marks a discovered site with at least 3 clicks or a sale that you have not added.

ParameterDescription
from, toOptional period. Without: all time.
pages_per_site0–25 top pages per site. Default 5.
include_minorInclude discovered sites with very few clicks.

GET /pages

Pages on your sites ranked by commission, with clicks, sales, EPC, conversion, best-selling product, stores and 30-day trend. Clicks without a known page appear as one row per site with known: false.

ParameterDescription
from, toOptional period. Without: all time.
siteOnly pages on this site (domain without www).
known_onlyHide the rows without a known page.
min_clicksMinimum clicks.
limit1–200. Default 50.
cursorFrom next_cursor.

Your links, newest first.

ParameterDescription
program_idOnly links for this program.
sub_idOnly links with this sub-ID.
searchText in name, store, destination or sub-ID.
archivedexclude (default), include or only.
include_statstrue adds clicks, sales, commission, EPC and conversion per link.
limit1–200. Default 50.
cursorFrom next_cursor.

Each link has link_id, url, program_id, store, active, name, landing_page, destination, sub_id, sub_id2 … sub_id5, channel, utm, website_id, placement_url, archived, created_at and html.

POST /links

Creates a link – exactly like the link generator in the dashboard. You must have joined the program.

FieldDescription
program_idRequired. From /catalog or /programs.
landing_pagePath or full URL on the store's domain, e.g. /products/sofa. Default: the front page.
sub_idMax 80 characters.
sub_id2 … sub_id5Sub-IDs 2–5, max 80 characters each. Stored on the link and every click, never sent to the store.
campaignMax 80 characters. Sent as utm_campaign and used as the link name.
channelWhere the link is used: Website (a site, blog or SEO page – always allowed), Instagram, TikTok, YouTube, Facebook, Pinterest, E-mail or Andet (anything else – only in programs without channel limits). SEO and Blog are stored as Website. If you leave it out, the channel of your most recent link is used (channel_defaulted: true in the response); with no earlier link with a channel the API returns channel_required.
utm_content, utm_termMax 100 characters each.
website_idOptional site label from /websites.
placement_urlFull URL of the page where the link will be placed (https://…).
nameThe link's name in the dashboard, max 120 characters.
include_qrtrue adds a QR code as PNG in qr_png_base64.
Create a linkShell
curl -X POST https://app.affilyflow.com/api/v1/links \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"program_id":"PROGRAM_ID","landing_page":"/products/sofa","sub_id":"blog-best-sofas-oct"}'

A new link returns HTTP 201. If an identical link exists, it is reused with reused: true and HTTP 200.

Response (shortened)JSON
{
  "link": {
    "url": "https://app.affilyflow.com/go/3f9a1c07be",
    "short_code": "3f9a1c07be",
    "reused": false,
    "program_id": "PROGRAM_ID",
    "store": "Store",
    "landing_page": "/products/sofa",
    "sub_id": "blog-best-sofas-oct",
    "html": "<a href=\"https://app.affilyflow.com/go/3f9a1c07be\" rel=\"sponsored noopener\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\">Store</a>",
    "variants": {
      "with_sub_id": "https://app.affilyflow.com/go/3f9a1c07be?sid={sub_id}",
      "deeplink": "https://app.affilyflow.com/go/3f9a1c07be?p={path_on_store}"
    },
    "warnings": []
  },
  "warnings": [],
  "quota": {
    "links_created_last_24h": 1,
    "links_remaining_24h": 499,
    "daily_link_limit": 500,
    "requests_per_minute": 120,
    "requests_used_this_minute": 1,
    "write_calls_per_minute": 60
  }
}

warnings holds rule warnings for the program – e.g. a channel or placement that is not allowed, or a tightening that is coming. Use html on your site: its referrerpolicy makes every click report the exact page it came from (Chrome, Edge and Firefox; Safari and some apps send only the domain). See Page tracking.

POST /links/batch

Up to 50 links in one request. The top-level fields (program_id, sub_id, sub_id2 … sub_id5, campaign, channel, website_id, utm_content, utm_term) are defaults that each element in items can override. An element can also have landing_page, placement_url and name.

Links to three productsShell
curl -X POST https://app.affilyflow.com/api/v1/links/batch \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"program_id":"PROGRAM_ID","sub_id":"article-sofas-oct","items":[{"landing_page":"/products/sofa-a"},{"landing_page":"/products/sofa-b"},{"landing_page":"/products/sofa-c"}]}'

The response has a result per element (index, ok and either link or error with code and message), a summary (requested, created, reused, failed) and the remaining quota. A failing element does not stop the others.

One link with numbers, performs_on (the pages, sites or channels its clicks came from), the program status and the rules that apply today, and variants. ?include_qr=true adds a QR code.

Changes name, landing_page (on the store's domain) or website_id (null removes the label). The URL never changes.

Sub-IDs (sub_id … sub_id5), campaign, program and UTM values cannot be changed on an existing link, because its clicks are recorded with them. The channel can only be set (channel) on a link that has none – after that it is locked. If you try, the API returns HTTP 400 immutable_field. Create a new link, or append ?sid= (and ?sid2= … ?sid5=) to the existing one.

POST and DELETE /links/{id}/archive

POST archives the link, DELETE restores it. An archived link keeps redirecting and tracking – it is only hidden from the list.

Results

GET /stats

Clicks, sales and commission for a period.

ParameterDescription
from, toPeriod. Default: the last 30 days.
group_bytotal (default), sub_id, sub_id2, sub_id3, sub_id4, sub_id5, program, link, day, site, page, source, device or country.
program_idOnly this program.
sub_id, sub_id2 … sub_id5Only clicks and sales with this sub-ID in that slot.
comparetrue adds the previous period of equal length with change in percent.
limit1–500 rows when grouped. Default 100. day always returns every day.

totals and each row in rows have clicks, sales, sales_pending, sales_approved, sales_rejected, revenue, commission, commission_pending, commission_approved, conversion_rate_pct and epc. Rows also have key and label. A sale counts on the day it was registered. With sub_id … sub_id5, site, page, source, device and country, a sale is grouped by the click it came from.

Last month per program, comparedShell
curl "https://app.affilyflow.com/api/v1/stats?from=2026-09-01&to=2026-09-30&group_by=program&compare=true" \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY"

GET /sales

Individual sales, newest first.

ParameterDescription
from, toPeriod by sale date. Default: the last 30 days.
updated_sinceA timestamp (ISO 8601, e.g. 2026-11-12T08:00:00Z). Returns sales created or changed since then – approved, rejected or refunded – oldest change first. Replaces from and to.
statuspending, approved or rejected.
program_idOnly this program.
limit1–200. Default 50.
cursorFrom next_cursor.

Each sale has sale_id, created_at, store, order_ref (only the last characters of the order number), order_value, commission_base (when commission was calculated from another amount than the order), commission (after any partial refunds), commission_before_refund, refunded_value, original currency and rate, status and status_text, rejection_reason (e.g. Regelbrud: … for a rule breach), approval_due_at for pending sales, items, updated_at (last change), and the click: click_id, clicked_at, link_id, sub_id, sub_id2 … sub_id5 and landing_page.

Syncing. Fetch changes continuously with updated_since instead of fetching every sale again. Page with cursor while has_more is true. Next time, send the highest updated_at you have seen minus 5 minutes – that way a sale saved at the same moment is included too. A sale can therefore come more than once (also every time it changes), so use sale_id as the key.

Sales changed since the last fetchShell
curl "https://app.affilyflow.com/api/v1/sales?updated_since=2026-11-12T08:00:00Z" \
  -H "Authorization: Bearer $AFFILYFLOW_API_KEY"

GET /clicks

Individual clicks with their full trail: time, the page the link was on and how it is known (page_basis), site, source with basis, link and sub-IDs (sub_id … sub_id5), landing page, device, country, the commission locked on the click and the sales the click led to. The period follows the click date.

One visit is one click: if the customer clicked several of your links to the same store within 30 minutes, the click shows the most recently used link with its sub-IDs, page and landing page, and visit has link_clicks (clicks in the visit), first_link (the link the visit started on, when it was a different one) and last_link_click_at. Commission and cookie window are locked from the first click. See Several clicks in one visit.

ParameterDescription
from, toPeriod. Default: the last 30 days.
siteOnly clicks from this site (domain without www).
pageOnly clicks from pages starting with this URL – or unknown for clicks without a known page.
link_id, program_id, sub_id, sub_id2 … sub_id5Filters.
sourceOnly this source, e.g. Google, Instagram, Direkte.
outcomesale, no_sale or rejected (only rejected sales).
limit1–200. Default 50.
cursorFrom next_cursor.

Balance and payouts

Read-only. Responses never contain an IBAN (not even masked), CPR, tax ID or address, and the API cannot request a payout.

GET /balance

balance (available, pending sales, in transit, total earned and paid out – all excluding VAT), payout (the next automatic payout day – the first Danish bank day of the month, minimum DKK 100 – whether you can request a payout now, and what is missing, with code, text and you_can_fix) and the 5 latest payouts. See Payouts.

GET /payouts

All payouts, newest first: status, automatic or requested, amount excluding VAT, VAT, amount transferred, dates and the self-billing invoice number. Parameters: limit (1–100, default 24) and cursor.

Error codes

HTTPCodeMeaning
400invalid_inputA parameter is missing or invalid. The message says which.
400invalid_jsonThe body is not valid JSON.
400invalid_cursorcursor is invalid. Start over without it.
400invalid_categorycategory is not in the product catalog tree. Use an id or slug from a product's category – e.g. 1 or lys-og-lygter (level 1), 102 or pandelamper (level 2) (/products).
400invalid_marketmarket is not a two-letter country code (ISO 3166-1 alpha-2), e.g. DK or SE (/catalog and /products).
400channel_requiredThe link has no channel and there is no earlier channel to fall back on (or it is not allowed in the program). Pass channel.
400channel_not_allowedThe channel is not allowed in the program. The message lists the allowed ones.
400landing_page_other_hostThe landing page is not on the store's domain.
400landing_page_cart_linkThe landing page is an "open cart" link (/actions/cart/…), which loses the click on the way.
400invalid_landing_pageThe landing page is not a valid path or URL.
400unknown_websitewebsite_id does not exist on your account.
400immutable_fieldSub-ID, campaign, program or UTM cannot be changed on an existing link – and the channel only if the link has none.
400invalid_domainWrite the domain as mysite.com.
400missing_site, invalid_website_id, invalid_url, blockedSend website_id or a valid, public address (/recommendations).
401missing_keyNo key was sent.
401invalid_keyThe key is invalid or revoked.
403not_joinedYou have not joined the program. Join with POST /programs/{id}/join (the message also links to the program page).
403not_open, store_inactive, program_paused, own_storeThe program cannot be joined right now, or it is your own store (/programs/{id}/join).
403inactiveThe program or the store is not active right now.
403account_suspendedThe account is suspended.
403blockedThe store does not work with you, so the product cannot be put in a product box.
404not_foundThe program, link, site or list does not exist on your account.
404product_not_foundThe product is no longer in the catalog. Find product_id with GET /products.
409duplicate_domainYou already have a site with that domain.
409product_unavailableThe product cannot be shown right now – the store's program is paused, or its tracking is not running.
409limit_reachedToo many lists, or too many products on the list (at most 50 of each).
429rate_limitedToo many requests. Wait and try again.
429daily_link_limit500 new links in the last 24 hours. Reuse a link with ?sid= or ?p=.
429join_limit20 new joins in the last 24 hours. Try again later, or join in the dashboard.
422unreachable, too_thinThe site could not be fetched, or it shows almost no text without JavaScript (/recommendations).
429daily_limit, too_soon10 AI analyses in the last 24 hours, or the site was analyzed less than 24 hours ago (/recommendations). The saved analysis still works without refresh.
502ai_failedThe AI analysis failed. Try again in a moment (/recommendations).
503no_ai, pausedThe AI analysis is not switched on, or it is paused right now – try again later (/recommendations).
500server_error, save_failedSomething went wrong on our side. Try again.
503unavailableThe API is temporarily unavailable.
503not_readyProduct boxes are not ready yet. Try again later.

Asking for a link or site that belongs to another affiliate returns not_found – the API does not reveal that it exists.

What the API cannot do

  • Join a program without you saying yes to its terms (accept_rules: true) – or leave a program.
  • Delete links or sites – links can be archived, sites are deleted only in the dashboard – and product boxes are deleted only in the dashboard.
  • See or change bank details, tax profile or profile – or request a payout.

Missing something?

Write to us – we answer quickly, and the page gets fixed.

Contact support