REST API
The affiliate API under /api/v1 – keys, limits, every endpoint with parameters and responses, pagination and error codes.
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
- 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. - Create an API key and give it a name, e.g. "My site".
- 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:
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
| Topic | Rule |
|---|---|
| Base URL | https://app.affilyflow.com/api/v1 |
| Format | JSON in and out. Send Content-Type: application/json with a body. |
| Amounts | Danish kroner (DKK) excluding VAT. Sales in other currencies are converted at a locked ECB rate; the original is in original_currency and original_value. |
| Dates | from 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. |
| IDs | Programs, links, sites and sales have UUIDs. click_id is an integer. |
| Pagination | limit + 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. |
| Language | Data labels such as status_text and notes are in Danish. |
| Cache | Responses are sent with Cache-Control: no-store. |
Rejected sales never count as sales or commission in the numbers.
Limits
| Limit | Value | Error |
|---|---|---|
| Requests per minute per key | 120 | HTTP 429 rate_limited with Retry-After: 60 |
| Write requests per minute per key | 60 (a batch request counts as one) | HTTP 429 rate_limited |
| New links per 24 hours per account | 500 (every new link on the account in the last 24 hours counts) | HTTP 429 daily_link_limit |
| Links per batch | 50 | HTTP 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 hours | HTTP 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
| Method | Path | Use | MCP tool |
|---|---|---|---|
| GET | /account | Your account, your social profiles, quota and dashboard links | get_account |
| GET | /catalog | Search all open programs | search_programs |
| GET | /programs | Programs you have joined | list_programs |
| GET | /programs/{id} | One program with rules and guidelines | get_program |
| GET, POST | /programs/{id}/compliance | Check a promotion against the rules | check_compliance |
| POST | /programs/{id}/join | See the terms and join a program | join_program |
| GET | /products | Search the stores' products | search_products |
| POST | /recommendations | Products that fit one of your sites or an address | recommend_products |
| GET | /product-lists | Your product boxes | list_product_lists |
| GET | /product-lists/{id} | One product box with products and HTML | list_product_lists |
| POST | /product-lists | Create a list | create_product_list |
| POST | /product-lists/{id}/items | Put a product in a product box | add_to_product_list |
| GET | /websites | Your registered sites | list_websites |
| POST | /websites | Add a site | add_site |
| PATCH | /websites/{id} | Edit a site | update_site |
| GET | /links | Your links | list_links |
| POST | /links | Create a link | create_link |
| POST | /links/batch | Up to 50 links in one request | create_links_batch |
| GET | /links/{id} | One link with numbers | get_link |
| PATCH | /links/{id} | Change name, landing page or site label | update_link |
| POST | /links/{id}/archive | Archive a link | archive_link |
| DELETE | /links/{id}/archive | Restore an archived link | restore_link |
| GET | /stats | Clicks, sales and commission for a period | get_stats |
| GET | /sales | Individual sales | list_sales |
| GET | /clicks | Individual clicks with page and source | list_clicks |
| GET | /sites | Measured sites | get_sites |
| GET | /pages | Pages on your sites | get_pages |
| GET | /balance | Balance and next payout | get_balance |
| GET | /payouts | Your payouts | list_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.
| Parameter | Type | Description |
|---|---|---|
query | text | Free text matched against store name, category, description and audience. |
category | text | Category (Danish label), e.g. Bolig. The response lists them in categories. |
joined | true / false | Only joined or only not joined. Omit for both. |
min_commission_pct | number 0–100 | Minimum percentage commission. Fixed-amount programs are excluded. |
recurring_only | true / false | Only programs that pay commission on subscription renewals. |
channel | text | Only programs that allow the channel, e.g. TikTok. |
market | country code | Only 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. |
sort | epc, commission, newest, name, recommended | Default: 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. |
limit | 1–50 | Default 20. |
cursor | text | From 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.
| Parameter | Description |
|---|---|
channel | Planned channel, e.g. Instagram, SEO, E-mail. |
placement_url | Full URL of the page where the link will be placed. |
landing_page | Path or URL at the store. |
ad_type | paid_search_brand, paid_search_generic, coupon_site, cashback_site, social_post, newsletter or website_content. |
content | Draft 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.
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:
- Without
accept_rules(or with an empty body) nothing changes. The response has the program's terms interms– commission,cookie_days,approval_days,rules(today, saved and the date of a tightening),compliance_summaryand the store's guidelines verbatim – andrequires: "accept_rules". - With
"accept_rules": trueyou are joined (HTTP 201), and your first link is created. If you have already joined, nothing changes: HTTP 200 withalready_joined: true.
| Field | Description |
|---|---|
accept_rules | true = you have read the terms and say yes. |
channel | The 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_page | Optional path or URL at the store for the first link. Requires a channel. |
sub_id | Optional 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.
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.
| Parameter | Type | Description |
|---|---|---|
query | text | Search words (the catalogs are mostly Danish), e.g. sofa. Empty = the products you earn most on. |
program_id | UUID | Only one program. |
min_commission_pct | number 0–100 | Minimum percentage commission. |
in_stock_only | true / false | Hide out-of-stock products. |
featured_only | true / false | Only products the store itself recommends. |
market | country code | Only products from stores that sell to the country, e.g. DK. |
category | id or slug | A 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. |
brand | text | Only products from the brand (case-insensitive). |
grouped | true / false | One row per product across stores: the best offer among the stores that sell it. |
sort | earnings, relevance, price, rate, recommended | Default: 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. |
limit | 1–60 | Default 20. |
cursor | text | From 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.
| Field | Type | Description |
|---|---|---|
website_id | UUID | One of your sites from GET /websites. |
url | text | An address, e.g. yourblog.com. Used when website_id is not sent. |
refresh | true / false | Analyze 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.
| Field | Description |
|---|---|
domain | Required. E.g. mysite.com. A full URL is accepted and reduced to the domain. |
name | Display name, max 120 characters. Default: the domain. |
niche | E.g. Home, max 80 characters. |
monthly_traffic | Approximate 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.
| Parameter | Description |
|---|---|
from, to | Optional period. Without: all time. |
pages_per_site | 0–25 top pages per site. Default 5. |
include_minor | Include 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.
| Parameter | Description |
|---|---|
from, to | Optional period. Without: all time. |
site | Only pages on this site (domain without www). |
known_only | Hide the rows without a known page. |
min_clicks | Minimum clicks. |
limit | 1–200. Default 50. |
cursor | From next_cursor. |
Links
GET /links
Your links, newest first.
| Parameter | Description |
|---|---|
program_id | Only links for this program. |
sub_id | Only links with this sub-ID. |
search | Text in name, store, destination or sub-ID. |
archived | exclude (default), include or only. |
include_stats | true adds clicks, sales, commission, EPC and conversion per link. |
limit | 1–200. Default 50. |
cursor | From 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.
| Field | Description |
|---|---|
program_id | Required. From /catalog or /programs. |
landing_page | Path or full URL on the store's domain, e.g. /products/sofa. Default: the front page. |
sub_id | Max 80 characters. |
sub_id2 … sub_id5 | Sub-IDs 2–5, max 80 characters each. Stored on the link and every click, never sent to the store. |
campaign | Max 80 characters. Sent as utm_campaign and used as the link name. |
channel | Where 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_term | Max 100 characters each. |
website_id | Optional site label from /websites. |
placement_url | Full URL of the page where the link will be placed (https://…). |
name | The link's name in the dashboard, max 120 characters. |
include_qr | true adds a QR code as PNG in qr_png_base64. |
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.
{
"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.
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.
GET /links/{id}
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.
PATCH /links/{id}
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.
| Parameter | Description |
|---|---|
from, to | Period. Default: the last 30 days. |
group_by | total (default), sub_id, sub_id2, sub_id3, sub_id4, sub_id5, program, link, day, site, page, source, device or country. |
program_id | Only this program. |
sub_id, sub_id2 … sub_id5 | Only clicks and sales with this sub-ID in that slot. |
compare | true adds the previous period of equal length with change in percent. |
limit | 1–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.
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.
| Parameter | Description |
|---|---|
from, to | Period by sale date. Default: the last 30 days. |
updated_since | A 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. |
status | pending, approved or rejected. |
program_id | Only this program. |
limit | 1–200. Default 50. |
cursor | From 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.
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.
| Parameter | Description |
|---|---|
from, to | Period. Default: the last 30 days. |
site | Only clicks from this site (domain without www). |
page | Only clicks from pages starting with this URL – or unknown for clicks without a known page. |
link_id, program_id, sub_id, sub_id2 … sub_id5 | Filters. |
source | Only this source, e.g. Google, Instagram, Direkte. |
outcome | sale, no_sale or rejected (only rejected sales). |
limit | 1–200. Default 50. |
cursor | From 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
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_input | A parameter is missing or invalid. The message says which. |
| 400 | invalid_json | The body is not valid JSON. |
| 400 | invalid_cursor | cursor is invalid. Start over without it. |
| 400 | invalid_category | category 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). |
| 400 | invalid_market | market is not a two-letter country code (ISO 3166-1 alpha-2), e.g. DK or SE (/catalog and /products). |
| 400 | channel_required | The link has no channel and there is no earlier channel to fall back on (or it is not allowed in the program). Pass channel. |
| 400 | channel_not_allowed | The channel is not allowed in the program. The message lists the allowed ones. |
| 400 | landing_page_other_host | The landing page is not on the store's domain. |
| 400 | landing_page_cart_link | The landing page is an "open cart" link (/actions/cart/…), which loses the click on the way. |
| 400 | invalid_landing_page | The landing page is not a valid path or URL. |
| 400 | unknown_website | website_id does not exist on your account. |
| 400 | immutable_field | Sub-ID, campaign, program or UTM cannot be changed on an existing link – and the channel only if the link has none. |
| 400 | invalid_domain | Write the domain as mysite.com. |
| 400 | missing_site, invalid_website_id, invalid_url, blocked | Send website_id or a valid, public address (/recommendations). |
| 401 | missing_key | No key was sent. |
| 401 | invalid_key | The key is invalid or revoked. |
| 403 | not_joined | You have not joined the program. Join with POST /programs/{id}/join (the message also links to the program page). |
| 403 | not_open, store_inactive, program_paused, own_store | The program cannot be joined right now, or it is your own store (/programs/{id}/join). |
| 403 | inactive | The program or the store is not active right now. |
| 403 | account_suspended | The account is suspended. |
| 403 | blocked | The store does not work with you, so the product cannot be put in a product box. |
| 404 | not_found | The program, link, site or list does not exist on your account. |
| 404 | product_not_found | The product is no longer in the catalog. Find product_id with GET /products. |
| 409 | duplicate_domain | You already have a site with that domain. |
| 409 | product_unavailable | The product cannot be shown right now – the store's program is paused, or its tracking is not running. |
| 409 | limit_reached | Too many lists, or too many products on the list (at most 50 of each). |
| 429 | rate_limited | Too many requests. Wait and try again. |
| 429 | daily_link_limit | 500 new links in the last 24 hours. Reuse a link with ?sid= or ?p=. |
| 429 | join_limit | 20 new joins in the last 24 hours. Try again later, or join in the dashboard. |
| 422 | unreachable, too_thin | The site could not be fetched, or it shows almost no text without JavaScript (/recommendations). |
| 429 | daily_limit, too_soon | 10 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. |
| 502 | ai_failed | The AI analysis failed. Try again in a moment (/recommendations). |
| 503 | no_ai, paused | The AI analysis is not switched on, or it is paused right now – try again later (/recommendations). |
| 500 | server_error, save_failed | Something went wrong on our side. Try again. |
| 503 | unavailable | The API is temporarily unavailable. |
| 503 | not_ready | Product 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.