Skip to content

API reference

Endpoint reference

Generated from the OpenAPI spec. Every endpoint requires the bearer key described above.

Instance

Answers one question: what can this specific key see? Call it first when wiring up a new key — it is cheap, needs only instance:read, and lists every connection (network, status, capabilities) the key resolves to, whether it is scoped to one connection or your whole container.

get/subnetwork/instanceinstance:read

The instance set this key authorises

Returns every network instance the key can reach, with its connector slug, status and capabilities. Readable even when an instance is deactivated — it reports the status. Also the only place a credential holder can read their OWN key's `scopes` and `key_expires_at` — before this was added, neither was visible anywhere on the API, so an integrator had to guess why a call 403'd or discover an expiry only after the key started 401'ing.

get/subnetwork/instance/summaryinstance:read

Headline counts for the key's instance set

Catalogue

Your advertiser and product inventory — which brands you can generate links for, and what they are selling. Reads need catalogue:read.

get/subnetwork/brandscatalogue:read

List brands in this key's inventory

The canonical catalogue endpoint. Page through it with `limit` + `cursor` to pull a full catalogue — see the worked example on https://affilitera.com/docs/api. All filters are AND-ed and can only narrow *within* the key's scope.

ParameterInTypeRequiredNotes
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
qquerystringnoCase-insensitive substring match on the brand name. An empty value is treated as absent.
countryquerystringnoISO-3166 alpha-2 merchant country, case-insensitive. An empty value is treated as absent.
has_productsquerystring (true | 1 | yes | on)noRestricts the result to brands for which we hold at least one INGESTED product. ACCEPTED VALUES ARE `true`, `1`, `yes` and `on`, compared case-insensitively after trimming; they all mean the same thing. OMITTING the parameter, or sending it EMPTY (`?has_products=`), applies no filter. EVERY OTHER VALUE IS REFUSED WITH 422 `validation_error` — it is NOT ignored. That includes the false-family spellings `false`, `0`, `no` and `off`, which are refused with their own message: this endpoint cannot filter to brands WITHOUT ingested products, because that negative set is a different and far more expensive query, so it is declined rather than silently served as the unfiltered set. There is no "brands without products" filter; filter client-side on each row's `has_products` field if you need one. Note this is authoritative about what we actually hold, unlike the `product_count` field, which is the figure the upstream network advertises — a brand can legitimately return `product_count: 0` with `has_products: true`. MUTUALLY EXCLUSIVE WITH `modified_since`: sending `has_products=true` together with `modified_since` returns 422 `validation_error` with the message `modified_since is not yet supported combined with has_products. Omit one.` The two take different query paths and the has_products path does not apply the modification filter, so the combination is refused rather than served as a page the caller would wrongly believe was filtered. For an incremental catalogue sync send `modified_since` ALONE and filter on the returned rows.
categoryquerystringnoSubstring match on the retail category path or leaf name. An over-broad value returns 400 `filter_too_broad`.
min_trafficqueryintegernoOnly brands whose domain has at least this many estimated monthly visits. An over-broad value returns 400 `filter_too_broad`.
networkquerystringnoNarrow to one connector slug within the key's scope (e.g. `awin`). A slug outside the scope returns an empty page, never another owner's data.
relationshipquerystring (all | joined | pending | declined | not_joined)noFilter by your relationship in the SAME vocabulary the Affilitera screens use (the `relationship` response field): `joined`, `pending`, `declined`, `not_joined`, or `all` (the default). This endpoint serves joined programmes only, so `joined` and `all` return the normal page, while `pending`, `declined` and `not_joined` are accepted and ALWAYS return 200 with an empty `data` array and a `filter_notices` entry (filter `relationship`) saying so. That is by design, not a missing result. Case-insensitive. Any other value is refused with 422.
relationship_statusquerystring (approved | pending | declined | removed | ended | none | unknown)noNarrow to brands at one or more partnership states, using Affilitera's NORMALISED vocabulary — the same values the `relationship_status` response field carries. COMMA-SEPARATE for several (`?relationship_status=approved,pending`), because "approved or pending" is the query a caller actually wants and one value per request would force paging the whole catalogue twice and merging. An empty value is treated as absent, matching `q` and `country`. An UNRECOGNISED value is refused with 422 `validation_error` naming the valid set — never silently ignored, because a filter that quietly does nothing returns a page the caller would wrongly believe was narrowed. THESE ARE OUR TOKENS, NOT THE NETWORK'S OWN WORDS: Awin says `joined`, Linkbux says `No Relationship`, Rakuten says `temp-decline`. Filter on this normalised field and read `relationship_status_raw` for the vendor's verbatim term. A brand whose relationship has never been evaluated carries `null` and is matched by NO value of this filter.
modified_sincequerystringnoISO 8601 timestamp. Restricts the result to rows updated at or after this instant, for incremental sync instead of re-walking the full catalogue. An unparseable value returns 422 `validation_error`. For the NEXT poll, use the `modified_as_of` value from THIS response — never wall-clock time captured client-side; `modified_as_of` is stamped before the query runs, so a row updated in the gap between that stamp and the response arriving is still included next poll rather than silently missed. ORDERING: when this parameter is present the collection is ordered by modification time ascending (oldest change first) rather than by the endpoint's default sort, and `next_cursor` is minted in that same order — this is what makes the filter indexable. CURSORS DO NOT CROSS MODES: a cursor obtained WITH `modified_since` is valid only on requests that also pass it, and one obtained without it only on requests that omit it; mixing them returns 422 `validation_error` rather than a wrongly-filtered page. COMPLETENESS: some older rows carry an `updated_at` earlier than their true last change, from a period when that column was maintained by application writers rather than by a database trigger, and no backfill was performed. Nothing on the wire distinguishes such a row, so take ONE FULL PULL before relying on this parameter for incremental sync.
include_revsharequerystringnoInclude brands whose ONLY published commission term is a revenue share, which are WITHHELD BY DEFAULT. A revshare-only brand quotes a share of the merchant's own revenue rather than a rate on the sale, so its number is not comparable with an ordinary commission and rendering the two side by side misleads. Default `false`. Accepted true values: `true`, `1`, `yes`, `on`; accepted false values: `false`, `0`, `no`, `off`. ANY OTHER VALUE IS A 422 `validation_error`, deliberately — silently reading an unrecognised value as `false` would answer a request to WIDEN the result set by narrowing it. On `/brands` the exclusion is applied to the listing, its counts and its `modified_since` results by the same predicate, so those three cannot come apart. WHAT YOU OBSERVE WHEN A BRAND LEAVES THE SET: silence. The row is simply absent from later pages — there is no tombstone and it is NOT a `modified_since` event, so an incremental consumer keeps whatever it last cached and cannot learn from this API that the brand went away.
deeplink_allowedquerystringnoKeep only brands whose `deeplink_allowed` is this value. Accepted true values: `true`, `1`, `yes`, `on`; accepted false values: `false`, `0`, `no`, `off`; any other value is a 422 `validation_error`. Applied to the computed field after the page is read, so a filtered page can be SHORTER than `limit` and `total` is null while it is in force; keep following `next_cursor` until it is null to see every match.
get/subnetwork/productscatalogue:read

List products in this key's inventory

ParameterInTypeRequiredNotes
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
brand_idqueryintegernoRestrict to one brand, by the brand's number (`brand_id` on `GET /subnetwork/brands`). Digits only. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted. A number naming no brand is answered exactly like a brand outside this key's scope.
feed_idquerystringnoRestrict to one feed.
modified_sincequerystringnoISO 8601 timestamp. Restricts the result to rows updated at or after this instant, for incremental sync instead of re-walking the full catalogue. An unparseable value returns 422 `validation_error`. For the NEXT poll, use the `modified_as_of` value from THIS response — never wall-clock time captured client-side; `modified_as_of` is stamped before the query runs, so a row updated in the gap between that stamp and the response arriving is still included next poll rather than silently missed. ORDERING: when this parameter is present the collection is ordered by modification time ascending (oldest change first) rather than by the endpoint's default sort, and `next_cursor` is minted in that same order — this is what makes the filter indexable. CURSORS DO NOT CROSS MODES: a cursor obtained WITH `modified_since` is valid only on requests that also pass it, and one obtained without it only on requests that omit it; mixing them returns 422 `validation_error` rather than a wrongly-filtered page. COMPLETENESS: some older rows carry an `updated_at` earlier than their true last change, from a period when that column was maintained by application writers rather than by a database trigger, and no backfill was performed. Nothing on the wire distinguishes such a row, so take ONE FULL PULL before relying on this parameter for incremental sync.
include_delistedquerystring (true | 1 | yes | on | false | 0 | no | off)noInclude products whose `status` is `delisted`. Delisted rows are EXCLUDED by default: a delisted product is one the platform is not serving (the feed stopped carrying it, its programme is not approved, or it is out of stock), so serving it unmarked could hand you a dead link. Accepts true, 1, yes, on (and false, 0, no, off); any other value is a 422 validation_error rather than a silent default. When opted in, read `status` on each row. To re-admit ONLY out-of-stock products, use include_out_of_stock.
include_out_of_stockquerystring (true | 1 | yes | on | false | 0 | no | off)noInclude products hidden because their network reports them OUT OF STOCK. They are EXCLUDED by default, and each reappears on its own when the network reports it back in stock. true re-admits exactly those products (status delisted, stock_state out_of_stock) and no other delisted row. total counts exactly what the chosen option returns. Accepts true, 1, yes, on (and false, 0, no, off); any other value is a 422 validation_error. With include_delisted=true every delisted row, these included, is already returned.
include_linkquerystring (true)noMint YOUR OWN tracked affiliate link for every row in this same call — the same link `POST /subnetwork/links` would build for that `brand_id` + `product_id`, with your account's own subid baked in. Defaults to false; the response is byte-identical to today when omitted, not merely null-valued. When true, every row gains `affiliate_link`, `unusable_reason` and `unusable_origin`. A row whose link cannot be built is kept, never dropped, with `affiliate_link: null` and a stated reason — see the `Product` schema and the Unusable-items documentation. The literal string `true` is the only value that opts in.
include_commissionquerystring (true | 1 | yes | on | false | 0 | no | off)noAdd each row's per-product `commission`: the commission tier that applies to this product (matched exactly, or the lowest tier that could apply when the brand publishes several and the product cannot be matched to exactly one), and what YOU take home on a sale at the row's current price after the network's revenue split. Defaults to false; the response is byte-identical when omitted. Never a figure without its currency.
category_idquerystringnoRestrict to products in these categories, by category number, comma-separated (at most 50). Each category includes every category beneath it. The same filter as the Catalogs page's Category filter. A number naming no category is a `validation_error` (400). Not combinable with `sort=relevance` on /products/search (400); use `sort=name`. A category whose index is still being built is answered with a `validation_error` naming that, never an empty list; retry later.
countryquerystringnoThe PRODUCT's country: where the feed states one for the product itself (a travel destination or an event location), that; otherwise its brand's programme country (connector-stated only). The same filter as the Catalogs page's Country. Comma-separated ISO 3166-1 alpha-2 codes (GB and UK name the same country), and/or the token __unknown__ for products whose country is not known. Omit for all countries. At most 300 values. A value outside [A-Za-z0-9_-]{1,40} is a 400 invalid_parameter naming this parameter; a well-formed code no product carries simply matches nothing. Resolved over the feeds in this key's scope: a selection spanning more feeds than one page can read is a 422 validation_error, never a partial page; not available with sort=relevance (422).
source_countryquerystringnoThe ADVERTISER's market: the brand's programme country, as the connector states it (a brand whose network states none matches __unknown__). The Catalogs page's Advertiser country (Travel). Comma-separated ISO 3166-1 alpha-2 codes (GB and UK name the same country), and/or the token __unknown__ for products whose country is not known. Omit for all countries. At most 300 values. A value outside [A-Za-z0-9_-]{1,40} is a 400 invalid_parameter naming this parameter; a well-formed code no product carries simply matches nothing. Not available with sort=relevance (422).
destination_countryquerystringnoWHERE the hotel, flight, trip or event IS: the country derived from the feed's own location fields (country, location, city, region, destination name, arrival airport) and stored per product at ingestion. A product whose feed names no place that resolves matches __unknown__, never a guess. The Catalogs page's Destination country (Travel). Comma-separated ISO 3166-1 alpha-2 codes (GB and UK name the same country), and/or the token __unknown__ for products whose country is not known. Omit for all countries. At most 300 values. A value outside [A-Za-z0-9_-]{1,40} is a 400 invalid_parameter naming this parameter; a well-formed code no product carries simply matches nothing. Not available with sort=relevance (422).
include_revsharequerystringnoInclude brands whose ONLY published commission term is a revenue share, which are WITHHELD BY DEFAULT. A revshare-only brand quotes a share of the merchant's own revenue rather than a rate on the sale, so its number is not comparable with an ordinary commission and rendering the two side by side misleads. Default `false`. Accepted true values: `true`, `1`, `yes`, `on`; accepted false values: `false`, `0`, `no`, `off`. ANY OTHER VALUE IS A 422 `validation_error`, deliberately — silently reading an unrecognised value as `false` would answer a request to WIDEN the result set by narrowing it. On `/brands` the exclusion is applied to the listing, its counts and its `modified_since` results by the same predicate, so those three cannot come apart. WHAT YOU OBSERVE WHEN A BRAND LEAVES THE SET: silence. The row is simply absent from later pages — there is no tombstone and it is NOT a `modified_since` event, so an incremental consumer keeps whatever it last cached and cannot learn from this API that the brand went away.
get/subnetwork/products/searchcatalogue:read

Search products by name

Identical to `/subnetwork/products` but requires `q`. The key's scope is applied BEFORE the search, so a search term can only narrow within your own catalogue.

ParameterInTypeRequiredNotes
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
qquerystringyesCase-insensitive substring match on the product name. Required — omitting it returns 422 `validation_error`. By default this does NOT match the brand name — pass `include_brand_match=true` to also match it.
brand_idqueryintegernoRestrict to one brand, by the brand's number (`brand_id` on `GET /subnetwork/brands`). Digits only. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted. A number naming no brand is answered exactly like a brand outside this key's scope.
feed_idquerystringnoRestrict the search to ONE ingested product feed, by the `feed_id` that `GET /subnetwork/feeds` emits. Ours, not the network's. Omit to search every feed your key can reach.
modified_sincequerystringnoISO 8601 timestamp. Restricts the result to rows updated at or after this instant, for incremental sync instead of re-walking the full catalogue. An unparseable value returns 422 `validation_error`. For the NEXT poll, use the `modified_as_of` value from THIS response — never wall-clock time captured client-side; `modified_as_of` is stamped before the query runs, so a row updated in the gap between that stamp and the response arriving is still included next poll rather than silently missed. ORDERING: when this parameter is present the collection is ordered by modification time ascending (oldest change first) rather than by the endpoint's default sort, and `next_cursor` is minted in that same order — this is what makes the filter indexable. CURSORS DO NOT CROSS MODES: a cursor obtained WITH `modified_since` is valid only on requests that also pass it, and one obtained without it only on requests that omit it; mixing them returns 422 `validation_error` rather than a wrongly-filtered page. COMPLETENESS: some older rows carry an `updated_at` earlier than their true last change, from a period when that column was maintained by application writers rather than by a database trigger, and no backfill was performed. Nothing on the wire distinguishes such a row, so take ONE FULL PULL before relying on this parameter for incremental sync.
include_delistedquerystring (true | 1 | yes | on | false | 0 | no | off)noInclude products whose `status` is `delisted`. Delisted rows are EXCLUDED by default: a delisted product is one the platform is not serving (the feed stopped carrying it, its programme is not approved, or it is out of stock), so serving it unmarked could hand you a dead link. Accepts true, 1, yes, on (and false, 0, no, off); any other value is a 422 validation_error rather than a silent default. When opted in, read `status` on each row. To re-admit ONLY out-of-stock products, use include_out_of_stock.
include_out_of_stockquerystring (true | 1 | yes | on | false | 0 | no | off)noInclude products hidden because their network reports them OUT OF STOCK. They are EXCLUDED by default, and each reappears on its own when the network reports it back in stock. true re-admits exactly those products (status delisted, stock_state out_of_stock) and no other delisted row. total counts exactly what the chosen option returns. Accepts true, 1, yes, on (and false, 0, no, off); any other value is a 422 validation_error. With include_delisted=true every delisted row, these included, is already returned.
include_linkquerystring (true)noMint YOUR OWN tracked affiliate link for every row in this same call — the same link `POST /subnetwork/links` would build for that `brand_id` + `product_id`, with your account's own subid baked in. Defaults to false; the response is byte-identical to today when omitted, not merely null-valued. When true, every row gains `affiliate_link`, `unusable_reason` and `unusable_origin`. A row whose link cannot be built is kept, never dropped, with `affiliate_link: null` and a stated reason — see the `Product` schema and the Unusable-items documentation. The literal string `true` is the only value that opts in.
include_commissionquerystring (true | 1 | yes | on | false | 0 | no | off)noAdd each row's per-product `commission`: the commission tier that applies to this product (matched exactly, or the lowest tier that could apply when the brand publishes several and the product cannot be matched to exactly one), and what YOU take home on a sale at the row's current price after the network's revenue split. Defaults to false; the response is byte-identical when omitted. Never a figure without its currency.
category_idquerystringnoRestrict to products in these categories, by category number, comma-separated (at most 50). Each category includes every category beneath it. The same filter as the Catalogs page's Category filter. A number naming no category is a `validation_error` (400). Not combinable with `sort=relevance` on /products/search (400); use `sort=name`. A category whose index is still being built is answered with a `validation_error` naming that, never an empty list; retry later.
sortquerystring (name | relevance)no`name` (DEFAULT — the original alphabetical order; unchanged, so no existing integration is affected by this parameter's addition) or `relevance` (OPT-IN — ranks by name/description trigram similarity, name weighted 0.7 / description 0.3; description is matched against `raw->>'description'` only, not the full multi-key alias chain the response's `description` field itself draws from, so recall is a documented subset). EXPERIMENTAL: relevance ranking can be measurably slow for a common, short query word — see the product docs before recommending it for high-QPS or latency-sensitive use. Any other value is a `validation_error` (422) naming the parameter.
min_pricequerystringnoMinimum price, inclusive. PER-CURRENCY ONLY — there is no FX conversion on this endpoint, so `currency` is REQUIRED whenever `min_price` or `max_price` is supplied (422 `validation_error` naming `currency` otherwise). A row whose `currency` is unset never matches a price filter. Non-negative decimal; `min_price` greater than `max_price` is a 422.
max_pricequerystringnoMaximum price, inclusive. Same currency requirement as `min_price`.
currencyquerystringnoISO-4217-shaped currency code, exact match. Required alongside `min_price`/`max_price`; may also be supplied alone as a plain narrowing filter with no price band.
categoryquerystringnoCase-insensitive substring match on the network's OWN category string (`category` on the Product schema) — the network's own vocabulary, NOT the canonical brand/category taxonomy `/brands?category=` uses. Populated on roughly 73% of rows; a row with no category never matches this filter.
include_brand_matchquerystring (true | false)noOPT-IN, default false (the ORIGINAL behaviour — q matches the product name only, unaffected by this parameter's addition). When true, q ALSO matches the product's brand name. CURRENTLY `sort=name` ONLY — combined with `sort=relevance` it is refused with `422 validation_error` (the underlying RPC is already applied to prod and was not extended this pass; a later change may lift this). Not specially demoted, so a broad brand-name term can return many same-brand rows in (name, id) order. A term matching more than roughly 200 distinct brands is refused with `filter_too_broad` (400) rather than silently narrowed.
countryquerystringnoThe PRODUCT's country: where the feed states one for the product itself (a travel destination or an event location), that; otherwise its brand's programme country (connector-stated only). The same filter as the Catalogs page's Country. Comma-separated ISO 3166-1 alpha-2 codes (GB and UK name the same country), and/or the token __unknown__ for products whose country is not known. Omit for all countries. At most 300 values. A value outside [A-Za-z0-9_-]{1,40} is a 400 invalid_parameter naming this parameter; a well-formed code no product carries simply matches nothing. Resolved over the feeds in this key's scope: a selection spanning more feeds than one page can read is a 422 validation_error, never a partial page; not available with sort=relevance (422).
source_countryquerystringnoThe ADVERTISER's market: the brand's programme country, as the connector states it (a brand whose network states none matches __unknown__). The Catalogs page's Advertiser country (Travel). Comma-separated ISO 3166-1 alpha-2 codes (GB and UK name the same country), and/or the token __unknown__ for products whose country is not known. Omit for all countries. At most 300 values. A value outside [A-Za-z0-9_-]{1,40} is a 400 invalid_parameter naming this parameter; a well-formed code no product carries simply matches nothing. Not available with sort=relevance (422).
destination_countryquerystringnoWHERE the hotel, flight, trip or event IS: the country derived from the feed's own location fields (country, location, city, region, destination name, arrival airport) and stored per product at ingestion. A product whose feed names no place that resolves matches __unknown__, never a guess. The Catalogs page's Destination country (Travel). Comma-separated ISO 3166-1 alpha-2 codes (GB and UK name the same country), and/or the token __unknown__ for products whose country is not known. Omit for all countries. At most 300 values. A value outside [A-Za-z0-9_-]{1,40} is a 400 invalid_parameter naming this parameter; a well-formed code no product carries simply matches nothing. Not available with sort=relevance (422).
include_revsharequerystringnoInclude brands whose ONLY published commission term is a revenue share, which are WITHHELD BY DEFAULT. A revshare-only brand quotes a share of the merchant's own revenue rather than a rate on the sale, so its number is not comparable with an ordinary commission and rendering the two side by side misleads. Default `false`. Accepted true values: `true`, `1`, `yes`, `on`; accepted false values: `false`, `0`, `no`, `off`. ANY OTHER VALUE IS A 422 `validation_error`, deliberately — silently reading an unrecognised value as `false` would answer a request to WIDEN the result set by narrowing it. On `/brands` the exclusion is applied to the listing, its counts and its `modified_since` results by the same predicate, so those three cannot come apart. WHAT YOU OBSERVE WHEN A BRAND LEAVES THE SET: silence. The row is simply absent from later pages — there is no tombstone and it is NOT a `modified_since` event, so an incremental consumer keeps whatever it last cached and cannot learn from this API that the brand went away.
get/subnetwork/feedscatalogue:read

List product feeds

ParameterInTypeRequiredNotes
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
modified_sincequerystringnoISO 8601 timestamp. Restricts the result to rows updated at or after this instant, for incremental sync instead of re-walking the full catalogue. An unparseable value returns 422 `validation_error`. For the NEXT poll, use the `modified_as_of` value from THIS response — never wall-clock time captured client-side; `modified_as_of` is stamped before the query runs, so a row updated in the gap between that stamp and the response arriving is still included next poll rather than silently missed. ORDERING: when this parameter is present the collection is ordered by modification time ascending (oldest change first) rather than by the endpoint's default sort, and `next_cursor` is minted in that same order — this is what makes the filter indexable. CURSORS DO NOT CROSS MODES: a cursor obtained WITH `modified_since` is valid only on requests that also pass it, and one obtained without it only on requests that omit it; mixing them returns 422 `validation_error` rather than a wrongly-filtered page. COMPLETENESS: some older rows carry an `updated_at` earlier than their true last change, from a period when that column was maintained by application writers rather than by a database trigger, and no backfill was performed. Nothing on the wire distinguishes such a row, so take ONE FULL PULL before relying on this parameter for incremental sync.
include_revsharequerystringnoInclude brands whose ONLY published commission term is a revenue share, which are WITHHELD BY DEFAULT. A revshare-only brand quotes a share of the merchant's own revenue rather than a rate on the sale, so its number is not comparable with an ordinary commission and rendering the two side by side misleads. Default `false`. Accepted true values: `true`, `1`, `yes`, `on`; accepted false values: `false`, `0`, `no`, `off`. ANY OTHER VALUE IS A 422 `validation_error`, deliberately — silently reading an unrecognised value as `false` would answer a request to WIDEN the result set by narrowing it. On `/brands` the exclusion is applied to the listing, its counts and its `modified_since` results by the same predicate, so those three cannot come apart. WHAT YOU OBSERVE WHEN A BRAND LEAVES THE SET: silence. The row is simply absent from later pages — there is no tombstone and it is NOT a `modified_since` event, so an incremental consumer keeps whatever it last cached and cannot learn from this API that the brand went away.
get/subnetwork/feeds/{feed_id}/productscatalogue:read

List the products in one feed

ParameterInTypeRequiredNotes
feed_idpathstringyesA feed inside this key's scope. A feed belonging to anyone else returns 404.
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
modified_sincequerystringnoISO 8601 timestamp. Restricts the result to rows updated at or after this instant, for incremental sync instead of re-walking the full catalogue. An unparseable value returns 422 `validation_error`. For the NEXT poll, use the `modified_as_of` value from THIS response — never wall-clock time captured client-side; `modified_as_of` is stamped before the query runs, so a row updated in the gap between that stamp and the response arriving is still included next poll rather than silently missed. ORDERING: when this parameter is present the collection is ordered by modification time ascending (oldest change first) rather than by the endpoint's default sort, and `next_cursor` is minted in that same order — this is what makes the filter indexable. CURSORS DO NOT CROSS MODES: a cursor obtained WITH `modified_since` is valid only on requests that also pass it, and one obtained without it only on requests that omit it; mixing them returns 422 `validation_error` rather than a wrongly-filtered page. COMPLETENESS: some older rows carry an `updated_at` earlier than their true last change, from a period when that column was maintained by application writers rather than by a database trigger, and no backfill was performed. Nothing on the wire distinguishes such a row, so take ONE FULL PULL before relying on this parameter for incremental sync.
include_delistedquerystring (true | 1 | yes | on | false | 0 | no | off)noInclude products whose `status` is `delisted`. Delisted rows are EXCLUDED by default: a delisted product is one the platform is not serving (the feed stopped carrying it, its programme is not approved, or it is out of stock), so serving it unmarked could hand you a dead link. Accepts true, 1, yes, on (and false, 0, no, off); any other value is a 422 validation_error rather than a silent default. When opted in, read `status` on each row. To re-admit ONLY out-of-stock products, use include_out_of_stock.
include_out_of_stockquerystring (true | 1 | yes | on | false | 0 | no | off)noInclude products hidden because their network reports them OUT OF STOCK. They are EXCLUDED by default, and each reappears on its own when the network reports it back in stock. true re-admits exactly those products (status delisted, stock_state out_of_stock) and no other delisted row. total counts exactly what the chosen option returns. Accepts true, 1, yes, on (and false, 0, no, off); any other value is a 422 validation_error. With include_delisted=true every delisted row, these included, is already returned.
include_linkquerystring (true)noMint YOUR OWN tracked affiliate link for every row in this same call — the same link `POST /subnetwork/links` would build for that `brand_id` + `product_id`, with your account's own subid baked in. Defaults to false; the response is byte-identical to today when omitted, not merely null-valued. When true, every row gains `affiliate_link`, `unusable_reason` and `unusable_origin`. A row whose link cannot be built is kept, never dropped, with `affiliate_link: null` and a stated reason — see the `Product` schema and the Unusable-items documentation. The literal string `true` is the only value that opts in.
include_revsharequerystringnoInclude brands whose ONLY published commission term is a revenue share, which are WITHHELD BY DEFAULT. A revshare-only brand quotes a share of the merchant's own revenue rather than a rate on the sale, so its number is not comparable with an ordinary commission and rendering the two side by side misleads. Default `false`. Accepted true values: `true`, `1`, `yes`, `on`; accepted false values: `false`, `0`, `no`, `off`. ANY OTHER VALUE IS A 422 `validation_error`, deliberately — silently reading an unrecognised value as `false` would answer a request to WIDEN the result set by narrowing it. On `/brands` the exclusion is applied to the listing, its counts and its `modified_since` results by the same predicate, so those three cannot come apart. WHAT YOU OBSERVE WHEN A BRAND LEAVES THE SET: silence. The row is simply absent from later pages — there is no tombstone and it is NOT a `modified_since` event, so an incremental consumer keeps whatever it last cached and cannot learn from this API that the brand went away.
get/subnetwork/advertiserscontracts:read

List your advertisers' accounts and their commission groups

Every advertiser (brand) on this key's own connections, with its advertiser account number, whether the advertiser can log in, and its commission groups: the one public default group and any private groups, each with the affiliate split. Numeric ids only. Another operator's advertisers are never listed. A group's `split_pct` is the affiliate's share of the commission the network pays, after Affilitera's platform fee; it is a percentage, not money. Whether an advertiser can get a login at all is the network's brand claim setting, set by the network's administrator in the tenant console under Brands → Brand claims: Off (no advertiser logins), Invite only (you invite an advertiser from its profile), or Invite and self-claim (as Invite only, and an advertiser may also claim its own listing by proving it owns the brand's website domain; the network approves the claim, or approves verified claims automatically). `has_login` and `claim_state` report the result, whichever way the advertiser got its login.

ParameterInTypeRequiredNotes
brand_idqueryintegernoOnly this advertiser (its brand number). Not a UUID; anything other than a positive whole number is a 400 `invalid_parameter`.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
limitqueryintegerno · default 50Page size on GET /advertisers and GET /links/mine. Default 50, maximum 100 — half the maximum of the other list endpoints. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.

Promotions

Marketing creative — coupons, offers, and banner or text creatives — each already carrying a sub-attributed link, ready to publish. Reads need promotions:read.

get/subnetwork/couponspromotions:read

List coupon promotions

Coupon promotions currently IN FORCE for the merchants in your scope. CHANGED 2026-09-04 — WHAT THIS ENDPOINT RETURNS IS NOW A SMALLER SET. Until this date the response contained every stored promotion regardless of its dates, including ones that had already expired; 10.1% of the published surface was expired or not yet started. It now returns only rows whose stated window contains the request instant: `starts_at` is null or in the past, AND `ends_at` is null or in the future. A null bound means the network stated no bound and never excludes a row. WHAT A PROMOTION'S ABSENCE MEANS — AND WHAT IT DOES NOT. A coupon that is absent from this response is a coupon we are not publishing to you RIGHT NOW. It is not a coupon that never existed. It is NOT, however, a promise that the row is still stored: an expired promotion is subject to deletion under a separate retention rule, so a coupon that has passed its `ends_at` may have been removed permanently and must not be assumed to reappear if the network later re-dates it. A coupon absent only because it has not yet started is not subject to that rule and appears once its `starts_at` has passed. Do not treat a disappearance as a signal that the merchant withdrew the offer, that the code was invalid, or that your earlier record of it was wrong. If you cache rows, expire your cache on the promotion's own `ends_at`; a row you still hold past its `ends_at` will not be refreshed by us and may no longer exist here. The filter compares absolute instants in UTC and is inclusive at both bounds.

ParameterInTypeRequiredNotes
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
brand_idqueryintegernoRestrict to one brand, by the brand's number (`brand_id` on `GET /subnetwork/brands`). Digits only. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted. A number naming no brand is answered exactly like a brand outside this key's scope.
offer_typequerystringnoRestrict to one offer type (connector-supplied, e.g. `sale`/`free_shipping` on CJ). Applies equally on `/coupons` and `/offers` — it is not restricted to non-coupon rows.
countryqueryarraynoRestrict to the countries a promotion is for, ANY-of. A comma list of ISO 3166-1 alpha-2 codes (`US,GB`), plus `__unknown__` for promotions with no known country; the parameter may also be repeated. A promotion's countries are its OWN stated countries where the network gives them (Awin regions), otherwise its advertiser's country as the network published it. `UK` is read as `GB`. A value outside letters, digits, `-` and `_` is a `validation_error` (422), never an unfiltered page.
sub_idquerystringnoOptional. YOUR OWN extra tracking value, carried on the earner mapping behind every link this call returns and echoed back in your reports — it is NEVER placed in the link URL, so it is not visible to the network or the merchant. Letters, digits, dot, underscore, tilde and hyphen, 64 characters at most. A value outside that set is a 422 rather than a silently dropped field.
get/subnetwork/creativespromotions:read

List network creatives

ParameterInTypeRequiredNotes
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
brand_idqueryintegernoRestrict to one brand, by the brand's number (`brand_id` on `GET /subnetwork/brands`). Digits only. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted. A number naming no brand is answered exactly like a brand outside this key's scope.
kindquerystring (image_banner | text_link)noRestrict to one creative kind. Any other value is a `validation_error` (422) naming the parameter — never a silently empty page, which would read as though the merchant had published no banners.
sizequerystringnoRestrict to one banner size, `WIDTHxHEIGHT` (e.g. `300x250`). A malformed value is a `validation_error` (422).
idqueryintegernoRestrict to one creative by its numeric `id`.
sn_subquerystringnoThe sub-affiliate each row's tracked `code` is minted under. Must be a sub already registered and active for this key's owner; absent = the connection's stored sub-ID. With neither, `code` is null and `code_error.code` is `sub_id_required` — a code is never issued without our tracking and the sub-ID.
sub_affiliate_numberqueryintegernoOPTIONAL alternative to `sn_sub`: the sub-affiliate's number. Names the same sub; sending both for two different subs is a 422, a number naming none of your subs is a 422, and a non-number is a 400.
sub_idquerystringnoOptional. YOUR OWN extra tracking value, carried on the earner mapping behind every link this call returns and echoed back in your reports — it is NEVER placed in the link URL, so it is not visible to the network or the merchant. Letters, digits, dot, underscore, tilde and hyphen, 64 characters at most. A value outside that set is a 422 rather than a silently dropped field.
get/subnetwork/offerspromotions:read

List non-coupon offers

Code-less offers currently IN FORCE for the merchants in your scope. CHANGED 2026-09-04 — WHAT THIS ENDPOINT RETURNS IS NOW A SMALLER SET. Until this date the response contained every stored promotion regardless of its dates, including ones that had already expired; 10.1% of the published surface was expired or not yet started. It now returns only rows whose stated window contains the request instant: `starts_at` is null or in the past, AND `ends_at` is null or in the future. A null bound means the network stated no bound and never excludes a row. WHAT AN OFFER'S ABSENCE MEANS — AND WHAT IT DOES NOT. An offer that is absent from this response is an offer we are not publishing to you RIGHT NOW. It is not an offer that never existed. It is NOT, however, a promise that the row is still stored: an expired promotion is subject to deletion under a separate retention rule, so an offer that has passed its `ends_at` may have been removed permanently and must not be assumed to reappear if the network later re-dates it. An offer absent only because it has not yet started is not subject to that rule and appears once its `starts_at` has passed. Do not treat a disappearance as a signal that the merchant withdrew the offer or that your earlier record of it was wrong. If you cache rows, expire your cache on the promotion's own `ends_at`; a row you still hold past its `ends_at` will not be refreshed by us and may no longer exist here. The filter compares absolute instants in UTC and is inclusive at both bounds.

ParameterInTypeRequiredNotes
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
brand_idqueryintegernoRestrict to one brand, by the brand's number (`brand_id` on `GET /subnetwork/brands`). Digits only. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted. A number naming no brand is answered exactly like a brand outside this key's scope.
offer_typequerystringnoRestrict to one offer type (connector-supplied, e.g. `sale`/`free_shipping` on CJ).
countryqueryarraynoRestrict to the countries a promotion is for, ANY-of. A comma list of ISO 3166-1 alpha-2 codes (`US,GB`), plus `__unknown__` for promotions with no known country; the parameter may also be repeated. A promotion's countries are its OWN stated countries where the network gives them (Awin regions), otherwise its advertiser's country as the network published it. `UK` is read as `GB`. A value outside letters, digits, `-` and `_` is a `validation_error` (422), never an unfiltered page.
sub_idquerystringnoOptional. YOUR OWN extra tracking value, carried on the earner mapping behind every link this call returns and echoed back in your reports — it is NEVER placed in the link URL, so it is not visible to the network or the merchant. Letters, digits, dot, underscore, tilde and hyphen, 64 characters at most. A value outside that set is a 422 rather than a silently dropped field.

Links

Generate and resolve the tracked deeplinks that carry an affiliate’s identity through to the network. Reads need trackedlinks:read; minting a link needs trackedlinks:write. A product_id is never required: pass only brand_id to POST /links and get back a link to the advertiser’s own website (type: "brand") — the same call with a product_id added links to that one item instead. Starting from a website instead of a brand id? POST /links/by-domain takes a domain directly. A brand link that cannot be built is refused with 409 and a stable brand_link_refusal code — never an empty or untracked URL.

get/subnetwork/links/domainstrackedlinks:read

List the merchant domains this key can link to

Only brands with a recorded merchant domain are listed — a brand with no domain cannot be linked by domain. That exclusion is reported in `excluded_missing_domain`, so an empty `data` array is distinguishable from "you have brands, but we hold no domain for them".

ParameterInTypeRequiredNotes
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
networkquerystringnoRestrict the listing to ONE network family, by its slug (e.g. `awin`) as emitted in the `network` field of these rows. NOTE THAT A SLUG IS NOT UNIQUE ACROSS YOUR CONNECTIONS: if you hold two accounts at the same network, this filter returns the domains from BOTH, and you must separate them yourself on `instance_id`. Omit to list every network your key can reach. It also narrows the scope that the envelope's `excluded_missing_domain` count is computed over.
get/subnetwork/subid-budgettrackedlinks:read

The per-connector sub1 character budget

How many characters a subid may be on each connector, so a payload can be sized BEFORE minting rather than discovering an overflow afterwards. THERE IS NO SINGLE SUB1 LENGTH LIMIT: documented ceilings differ by more than an order of magnitude across networks. `max_length` is what Affilitera enforces at mint time. When `max_length_documented` is true it is the network's own published ceiling and `source` cites it. When false, the network publishes no subid length we could find and the value is the conservative `undocumented_floor` — read that as "unknown, so we are being careful", NOT as evidence the network's real ceiling is that low, and never as licence to send more. An over-budget subid is REFUSED at mint with 422 `validation_error`; it is never truncated. A truncated subid still looks well-formed when the conversion returns, so it attributes to the wrong sub or to nothing at all and cannot be recovered. `truncates: true` marks a network documented to CUT an over-long value rather than reject it. When packing several registered subids into the one slot, segments are joined with `pack_delimiter` and the JOINED length is measured against `max_length`. This response is static reference data — identical for every caller, carrying no account, instance or transaction identity.

post/subnetwork/links/by-domaintrackedlinks:write

Mint a link from a merchant URL

ParameterInTypeRequiredNotes
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Request body (required)

FieldTypeRequiredNotes
domainstringyesThe merchant's bare domain (not a full URL).
affiliate_idstringyesThe affiliate id to attribute the link to.
destination_urlstringyesThe full merchant page URL to deep-link to. To land on the merchant's home page rather than one item, send the home page itself. A network whose brand-template link does not resolve (see POST /subnetwork/links) refuses here too — the destination does not rescue it — with 409 and `brand_link_refusal: "network_brand_link_broken"`.
network_slugstringnoOPTIONAL. Disambiguates which merchant to use when the domain matches more than one (see the 409 domain_ambiguous response's candidates).
labelstringnoOPTIONAL, cosmetic only.
post/subnetwork/links/by-domain/bulktrackedlinks:write

Mint links from many merchant URLs in one call

ParameterInTypeRequiredNotes
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Request body (required)

FieldTypeRequiredNotes
linksobject[]yes1 to a per-request maximum of items, each shaped like POST /subnetwork/links/by-domain's body.

Sub-affiliates

get/subnetwork/sub-affiliatessubaffiliates:read

MODE-KEYED, and the value above is the scope for THIS operation as documented (roster listing). `GET /sub-affiliates` and `GET /links` are the same handler, and it picks the scope from the MODE, not the path: pass `?sn_sub=<id>` or `?sub_affiliate_number=<n>` on this path and it lists that ONE sub's TRACKED LINKS and requires `trackedlinks:read` instead. A key holding only `subaffiliates:read` therefore gets 403 `insufficient_scope` from this path when it sends either parameter.

List the affiliate roster

ParameterInTypeRequiredNotes
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
statusquerystring (active | observed | all)noRoster listing only: which subs to list — `active` (the default) for the subs you registered, `observed` for subs seen on network traffic that you never registered, `all` for both. Ignored when `sn_sub` or `sub_affiliate_number` is sent. Anything else returns 422 `validation_error`.
sn_subquerystringnoOPTIONAL, AND IT SWITCHES THE OPERATION. When present, this lists that ONE sub's persisted tracked links instead of the roster — a different `data[]` shape (`SubTrackedLink`) — and the key needs `trackedlinks:read` rather than `subaffiliates:read`. The sub must belong to this key's owner or the call returns 404 `not_found`; an empty value returns 422 `validation_error`. When absent (and `sub_affiliate_number` is absent too), the call lists the roster. Same handler and behaviour as `sn_sub` on `GET /links`.
sub_affiliate_numberqueryintegernoOPTIONAL alternative to `sn_sub`: the sub-affiliate's number. It SWITCHES THE OPERATION exactly as `sn_sub` does — that one sub's tracked links, requiring `trackedlinks:read`. Names the same sub as its `sn_sub`; sending both for two different subs is a 422, a number naming none of your subs is a 422, and a non-number is a 400.
post/subnetwork/sub-affiliatessubaffiliates:write

Register an affiliate

ParameterInTypeRequiredNotes
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Request body (required)

FieldTypeRequiredNotes
sn_substringyesLetters, numbers, underscores and hyphens only, max 64 chars.
labelstringnoAn optional DISPLAY NAME for the sub. Free text, purely presentational, and NEVER used as identity or on the money path — `sn_sub` is the identity. IMPORTANT: IF THE SUB IS ALREADY REGISTERED THIS IS IGNORED and the stored label is returned unchanged; this endpoint registers, it does not rename. Compare the `label` in the response against what you sent.
kindstring (main)no · default main"sub" (sub-of-a-sub) is rejected 422 — not_supported; the commission engine is a fixed single-level sub tier.

Publishers

get/subnetwork/publisherssubaffiliates:read

List your publishers

Your publishers sent through this API, each with its properties, every brand's approval of each property, each property's registration on your network connections, and a flags summary.

ParameterInTypeRequiredNotes
limitqueryintegerno · default 50Page size (at most 100).
cursorquerystringnonext_cursor from the previous page.
post/subnetwork/publisherssubaffiliates:write

Send a publisher

Creates the publisher, or updates it when external_ref was sent before. Every field error is returned at once in `errors`.

ParameterInTypeRequiredNotes
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.
get/subnetwork/publishers/{publisher_ref}subaffiliates:read

Read back a publisher

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
patch/subnetwork/publishers/{publisher_ref}subaffiliates:write

Change a publisher

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Request body (required)

FieldTypeRequiredNotes
namestringnoThe publisher's name.
companystring | nullnoThe publisher's company; null when none was given.
contact_emailstring | nullnoA contact email for the publisher; null when none was given. No invitation or login is created.
countrystring | nullnoThe publisher's two-letter country code; null when none was given.
delete/subnetwork/publishers/{publisher_ref}subaffiliates:write

Retire a publisher

Retires the publisher and every one of its properties. Nothing is deleted; send the publisher again to reactivate it.

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.
get/subnetwork/publishers/{publisher_ref}/propertiessubaffiliates:read

A publisher's properties

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
post/subnetwork/publishers/{publisher_ref}/propertiessubaffiliates:write

Add a property

Adds a property. The same type with the same address, handle and store id as an active property is answered with that property (200, created:false).

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.
get/subnetwork/publishers/{publisher_ref}/properties/{property_id}subaffiliates:read

Read back a property

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
property_idpathstringyesThe property's id, as returned when it was created.
patch/subnetwork/publishers/{publisher_ref}/properties/{property_id}subaffiliates:write

Change a property

The fields sent replace the stored ones; the result is validated as a whole. A soft-click setting made by the network cannot be changed here.

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
property_idpathstringyesThe property's id, as returned when it was created.
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Request body (required)

FieldTypeRequiredNotes
typestring (website | mobile_app | browser_extension | desktop_software | social_account | newsletter | messaging_channel | other)noWhat the property is. A browser extension is always soft-click.
namestringnoThe property's name, as brands will see it.
urlstringnoIts web address. Required for website, desktop_software, newsletter and other; https:// is assumed when no scheme is given.
store_urlstringnoAn app's or extension's store link (accepted as an alias of url).
store_idstringnoAn app's or extension's store id (App Store id, Play package, extension id). An app or extension needs this or a store link.
handlestringnoA social account's or messaging channel's handle. Needs this or a link.
descriptionstringnoWhat the property is about; null when no description was given.
audience_countriesstring[]noTwo-letter country codes of the audience (at most 60).
audience_notestringnoA short note on the audience.
promotional_methodsstring[]noHow the property promotes brands. Used for the CJ promotional model.
technologyobjectnoYour declaration of the technology the property uses: each key names a technology, each value is text, a number, true / false, or a list of text (at most 4000 characters of JSON).
soft_clickbooleannoWhether the property activates without a deliberate click (soft-click). Always true for a browser extension.
delete/subnetwork/publishers/{publisher_ref}/properties/{property_id}subaffiliates:write

Retire a property

ParameterInTypeRequiredNotes
publisher_refpathstringyesYour own reference for the publisher (external_ref).
property_idpathstringyesThe property's id, as returned when it was created.
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Reporting

Per-transaction and aggregate views of the split described in How commission works when you run your own network, for your own connections only. Reads need reports:read; enqueueing an export needs reports:write. Continuing the Verve Skincare example from that section — Northshore Media’s owner key, one confirmed €10.00 sale plus one order still awaiting accrual:

curl — GET /subnetwork/reporting/transactions
curl -sS -G "https://app.affilitera.com/api/v1/subnetwork/reporting/transactions" \
  -H "Authorization: Bearer $AFFILITERA_API_KEY" \
  --data-urlencode "from=2026-05-01" \
  --data-urlencode "to=2026-05-31"
response
{
  "data_as_of": "2026-06-01T00:00:00Z",
  "data": [
    {
      "transaction_id": "txn_84213",
      "network": "awin",
      "instance_id": "7c06a219-...",
      "instance_public_id": "inst_9ViVV9aGEXa",
      "brand_id": 50412,
      "brand_name": "Verve Skincare",
      "merchant_id": 501419,
      "merchant_domain": "verveskincare.com",
      "sn_sub": "creator_amy",
      "sub_affiliate_number": 3,
      "sn_sub_dimensions": null,
      "sn_sub_resolution": "not_encoded",
      "order_value": "200.00",
      "declined_order_value": "0",
      "remaining_order_value": "200.00",
      "currency": "EUR",
      "status": "approved",
      "status_bucket": "confirmed",
      "transaction_date": "2026-05-18",
      "pool_commission": "10.00",
      "original_commission": "10.00",
      "declined_commission": "0",
      "remaining_commission": "10.00",
      "computed_owner_split": "6.00",
      "computed_sub_split": "2.00",
      "split_currency": "EUR"
    },
    {
      "transaction_id": "txn_84240",
      "network": "awin",
      "instance_id": "7c06a219-...",
      "instance_public_id": "inst_9ViVV9aGEXa",
      "brand_id": 50412,
      "brand_name": "Verve Skincare",
      "merchant_id": 501419,
      "merchant_domain": "verveskincare.com",
      "sn_sub": "creator_amy",
      "sub_affiliate_number": 3,
      "sn_sub_dimensions": null,
      "sn_sub_resolution": "not_encoded",
      "order_value": "64.00",
      "declined_order_value": "0",
      "remaining_order_value": "64.00",
      "currency": "EUR",
      "status": "pending",
      "status_bucket": "pending",
      "transaction_date": "2026-05-31",
      "pool_commission": null,
      "original_commission": null,
      "declined_commission": null,
      "remaining_commission": null,
      "computed_owner_split": null,
      "computed_sub_split": null,
      "split_currency": null
    }
  ],
  "next_cursor": null,
  "has_more": false,
  "total": null,
  "limit": 50,
  "limit_clamped": false,
  "limit_max": 100,
  "request_id": "req_b3a8ef61ded34b9b",
  "_note": "Informational only — Affilitera does not disburse SubNetwork commission; owners are paid by their own networks. Per-currency, never cross-summed."
}

txn_84213 is the confirmed Verve Skincare sale from the guide above — read computed_owner_split (€6.00) against split_currency (EUR), not the sibling currency field. txn_84240 placed on May 31st and has not accrued yet, so all four split fields are null — not €0.00 — exactly as the guide above describes.

instance_public_id is the durable handle for the network connection this sale ran through — the same value GET /instance, /brands, /products and /feeds emit, so you can join a transaction back to your catalogue without holding the internal instance_id uuid. sn_sub_resolution is null only when the row carries no sn_sub at all; otherwise it is not_encoded for a plain sub-id like creator_amy, or resolved/unresolved when sn_sub packs several registered sub-ids and this row states whether that pack could be decoded — unresolved is the value worth alerting on, since it means a packed sub-id arrived that could not be trusted.

brand_id is the brand’s number: a positive integer that stays the same when a network is disconnected and reconnected, so it is safe to store. It is the only brand id the API serves, and the only one every brand_id parameter accepts — a uuid or a brd_ handle is refused with a 400. Affiliate ids work the same way: affiliate_id on /v1/affiliate/* is the affiliate’s number. An affiliate in your own network keeps the name you give it (sn_sub) and also has a number, sub_affiliate_number, which you may send instead of the name.

merchant_id is the network’s own id for the advertiser, and its type is integer | string | null. The type varies by network because network ids do: where the id is genuinely an integer it is a JSON integer (501419), and where it is not it is the network’s string, unchanged. One connection can serve both kinds on different rows, so check the type per row. Leading zeros, a sign or whitespace keep an id a string ("007" is not 7), and any id above 9007199254740991 is always a string, because a JSON number that large loses digits. The same rule applies on every endpoint that carries merchant_id.

For Impact, merchant_id is the AdvertiserId (the brand), not the CampaignId (the program). One Impact advertiser can run several programs, each its own row with its own brand_id, so several rows can carry the same merchant_id. That is correct, not a duplicate: key per program on brand_id. Linkbux works the same way: merchant_id is its advertiser id, mid, not the program mcid.

For every other network, merchant_id is the id that network itself gives the brand: an advertiser, program or offer id, depending on how that network keys its catalogue. It is never one of our ids. Our own identifiers have their own fields (brand_id, merchant_number) and never appear in merchant_id. So a brand no network issued an id to, such as an advertiser running its program directly on Affilitera, has merchant_id: null.

GET /subnetwork/reporting/summary aggregates the same underlying rows, grouped by whatever you ask for (brand, sn_sub, date), still within currency and still per your own instances:

curl — GET /subnetwork/reporting/summary
curl -sS -G "https://app.affilitera.com/api/v1/subnetwork/reporting/summary" \
  -H "Authorization: Bearer $AFFILITERA_API_KEY" \
  --data-urlencode "group_by=brand" \
  --data-urlencode "from=2026-05-01" \
  --data-urlencode "to=2026-05-31"
response
{
  "data_as_of": "2026-06-01T00:00:00Z",
  "group_by": ["brand"],
  "data": [
    {
      "group": {
        "network": "awin",
        "instance_id": "7c06a219-...",
        "instance_public_id": "inst_9ViVV9aGEXa",
        "brand_id": 50412,
        "brand_name": "Verve Skincare",
        "merchant_id": 501419,
        "merchant_domain": "verveskincare.com"
      },
      "currency": "EUR",
      "orders": 2,
      "orders_accrued": 1,
      "orders_not_yet_accrued": 1,
      "orders_accrual_unresolved": 0,
      "commission_totals_partial": true,
      "order_value_total": "264.00",
      "declined_order_value_total": "0.00",
      "remaining_order_value_total": "264.00",
      "pool_commission_total": "10.00",
      "computed_owner_split_total": "6.00",
      "computed_sub_split_total": "2.00",
      "by_status": { "confirmed": "6.00", "pending": "0.00", "reversed": "0.00" }
    }
  ],
  "truncated": false,
  "next_cursor": null,
  "has_more": false,
  "total": 1,
  "limit": 50,
  "limit_clamped": false,
  "limit_max": 10000,
  "request_id": "req_e114a2f9c8b64a11",
  "_note": "Informational only — Affilitera does not disburse SubNetwork commission; owners are paid by their own networks. Per-currency, never cross-summed."
}

A bucket total is a total over orders_accrued, never over orders

orders counts every order in the bucket. The commission figures — pool_commission_total, computed_owner_split_total, computed_sub_split_total and all three by_status values — only ever received a contribution from the orders that have actually accrued. An order we have not resolved a split for yet contributes nothing, so it is counted in orders and absent from the money. Three counts tell you exactly how the bucket divides:

  • orders_accrued — a split was resolved in the bucket’s currency and its amounts are in the totals. This may legitimately be a €0.00 contribution: that means we resolved the split and the answer was genuinely nothing.
  • orders_not_yet_accrued — no split yet, most commonly a sale from the last day or two. This resolves itself; ask again later.
  • orders_accrual_unresolved — a split exists but not in this bucket’s currency, so we decline to fold it in rather than guess. This does not resolve itself. If you ever see a non-zero count here, tell us.

The three always sum to orders. commission_totals_partial is the derived shortcut — true whenever orders_accrued is less than orders, which is your signal that the commission figures in this bucket are a subtotal rather than a period total. order_value_total is never partial: order value comes from the order itself and does not wait on accrual.

When orders_accrued is 0, the commission figures are null, not "0.00". Nothing contributed, so there is no sum — and reporting one as zero is precisely the coercion this API tells you never to make. Read null here the same way you read a null split on GET /subnetwork/reporting/transactions: we do not have this yet.

On rare occasions this endpoint and GET /subnetwork/reporting/transactions classify one order differently — an order whose only split is in a currency other than the one it resolved to is counted orders_accrual_unresolved here, while the per-transaction view still shows you its single unambiguous split. Both are accurate about their own figure: the aggregate really did leave that order out of the total, and the row really does have a readable split.

Superseded 2026-08-25. This section previously carried a Known limitation notice stating that the bucket above folded txn_84240 in as if it contributed €0.00, that nothing in the response said so, and that you should pull /subnetwork/reporting/transactions and sum the non-null rows yourself if you needed to tell “not yet accrued” from “confirmed zero”. That disclosure was accurate when written. The fields above replace it: the response now states its own coverage, and the manual workaround is no longer necessary.

A reversed order (status_bucket: "reversed") carries negative split amounts, clawing back what was previously accrued — not a deletion of the original row. Summing a currency’s by_status.reversed is how you see the clawback total for that bucket.

get/subnetwork/reporting/transactionsreports:read

List commission transactions

Reporting endpoints use the TIGHTER rate-limit tier and a lower maximum page size (100).

ParameterInTypeRequiredNotes
labelquerystringnoOnly sales on your links carrying this exact label (see `label` on `POST /links`). A label no link carries returns no sales.
limitqueryintegerno · default 50Page size on GET /reporting/transactions. Default 50, maximum 100 (its ledger queries cost more per row). Over-max is CLAMPED, not rejected. A zero, negative or non-numeric value returns 400 `invalid_parameter` naming `limit` — it does NOT fall back to the default; only an absent or empty `limit` does. NOTE: GET /reporting/summary does NOT use this parameter — its ceiling is 10000 and means something different. See SummaryLimit.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
fromquerystringnoStart of the reporting window, INCLUSIVE, compared against each row's `transaction_date` — the date the SALE occurred, not the date we ingested it or resolved its commission. Accepts a calendar day (`YYYY-MM-DD`). Rows whose `transaction_date` is null match no window and are therefore excluded whenever you supply one. Omit for no lower bound.
toquerystringnoEnd of the reporting window, INCLUSIVE OF THE WHOLE CALENDAR DAY — `to=2026-08-24` includes sales timestamped at any time on the 24th, not just midnight. Compared against `transaction_date`, the date the SALE occurred. Rows whose `transaction_date` is null are excluded whenever you supply a window. Omit for no upper bound.
brand_idqueryintegernoRestrict to one brand, by the brand's number (`brand_id` on `GET /subnetwork/brands`). Digits only. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted. A number naming no brand is answered exactly like a brand outside this key's scope.
sn_subquerystringnoRestrict to one affiliate's transactions — the exact stored `sn_sub` value.
sub_affiliate_numberqueryintegernoOPTIONAL alternative to `sn_sub`: the sub-affiliate's number. Names the same sub; sending both for two different subs is a 422, a number naming none of your subs is a 422, and a non-number is a 400.
statusquerystringnoRestrict to one order status (network-reported, not the closed `status_bucket` set).
currencyquerystringnoRestrict to one ISO-4217 currency. Never converts or cross-sums — this only filters which single-currency rows are returned.
includequerystring (clicks)noOPT-IN, off by default: `include=clicks` adds `clicks` to every row — each click behind the sale that is on YOUR connections, oldest first, with the credited click marked, every affiliate by number and with their Sub-ID. Without it the response is exactly as before. Any other value is a 400 `invalid_parameter`. A page with more than 200 transactions that have tracked clicks is refused with 400 `filter_too_broad`: lower `limit` or narrow `from`/`to`.
get/subnetwork/reporting/summaryreports:read

Aggregated commission summary

ParameterInTypeRequiredNotes
labelquerystringnoOnly sales on your links carrying this exact label (see `label` on `POST /links`). A label no link carries returns no sales.
limitqueryintegerno · default 50A BUCKET PAGE SIZE, not a scan cap — the aggregation runs in the database over the WHOLE filtered range before `limit`/`cursor` page the resulting buckets, so this value never changes which orders are counted, only how many result rows come back per call. Default 50, maximum 10000, and `limit_max` reports 10000 accordingly. Over-max is CLAMPED, not rejected. A zero, negative or non-numeric value returns 400 `invalid_parameter` naming `limit` — it does NOT fall back to the default. Every bucket is therefore a whole-period total from the first page you see it: `truncated` is pinned `false` and `partial_totals` is never emitted.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
fromquerystringnoStart of the reporting window, INCLUSIVE, compared against each order's `transaction_date` — the date the SALE occurred, not the date we ingested it. Accepts a calendar day (`YYYY-MM-DD`). Orders with no `transaction_date` are excluded whenever you supply a window. Omit for no lower bound.
toquerystringnoEnd of the reporting window, INCLUSIVE OF THE WHOLE CALENDAR DAY — `to=2026-08-24` includes sales timestamped at any time on the 24th. Compared against `transaction_date`. Orders with no `transaction_date` are excluded whenever you supply a window. Omit for no upper bound.
brand_idqueryintegernoRestrict to one brand, by the brand's number (`brand_id` on `GET /subnetwork/brands`). Digits only. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted. A number naming no brand is answered exactly like a brand outside this key's scope.
sn_subquerystringnoRestrict to one affiliate's orders before aggregating.
sub_affiliate_numberqueryintegernoOPTIONAL alternative to `sn_sub`: the sub-affiliate's number. Names the same sub; sending both for two different subs is a 422, a number naming none of your subs is a 422, and a non-number is a 400.
statusquerystringnoRestrict to one order status (network-reported) before aggregating.
currencyquerystringnoRestrict to one ISO-4217 currency before aggregating. Never converts or cross-sums — every bucket is already single-currency.
group_byquerystringnoComma-separated subset of `brand`, `sn_sub`, `date`, `label` (e.g. `brand,date`). Unrecognised tokens are dropped, not rejected. Omit for network-only buckets. Echoed back on the response as the `group_by` array. `label` groups by the label of the link each sale came through (`group.label`, null = no labelled link). A request using `label` (as a group or as the `label` filter) is aggregated over every matching order and answered in one page (no `next_cursor`).
granularityquerystring (day | month)no · default dayBucket width when `group_by` includes `date`. Ignored otherwise. Echoed back on the response ONLY when `group_by` includes `date`.
get/subnetwork/sub-affiliates/reportreports:read

Per-affiliate performance and the split of commission

For each of your affiliates and for all of them together, one row per currency: clicks, sales, conversion rate, the commission your side of the split received on those sales (`commission_generated`), the affiliate's share after your own controls (the status you set on a sale, pause and removal), your share, and the status breakdown by the network's status and by the status you set. Amounts are DECIMAL STRINGS and are never summed across currencies. `clicks` is what your networks report; it is `null`, not zero, when none of your connections reports clicks.

ParameterInTypeRequiredNotes
fromquerystringnoStart of the window, INCLUSIVE, on each sale's `transaction_date`. `YYYY-MM-DD`.
toquerystringnoEnd of the window, INCLUSIVE OF THE WHOLE CALENDAR DAY. `YYYY-MM-DD`.
brand_idqueryintegernoRestrict to an advertiser, by its number. May repeat. A number naming no advertiser is a 422.
networkquerystringnoRestrict to one of your connections, by the network's slug (e.g. `awin`). May repeat. A slug matching none of your connections is a 400.
currencyquerystringnoRestrict to one ISO-4217 currency.
countryquerystringnoRestrict to advertisers in one country (the network-stated country, else the derived one).
sub_affiliate_numberqueryintegernoRestrict to an affiliate, by its number. May repeat. A number naming none of your affiliates is a 422.
labelquerystringnoOnly sales on links carrying this exact label.
post/subnetwork/reporting/exportreports:write

Start an asynchronous report export

Returns a job. Poll `/subnetwork/jobs/{job_id}` until it is ready, then follow `/subnetwork/jobs/{job_id}/download`.

ParameterInTypeRequiredNotes
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Request body (required)

FieldTypeRequiredNotes
fromstringyesStart of the exported window, INCLUSIVE, compared against `transaction_date` — the date each SALE occurred. Calendar day (`YYYY-MM-DD`). Narrow this first if an export keeps timing out: window size is the main driver of export cost.
tostringyesEnd of the exported window, INCLUSIVE OF THE WHOLE CALENDAR DAY, compared against `transaction_date`. Calendar day (`YYYY-MM-DD`).
formatstring (csv)no · default csvOutput format of the generated file. `csv` is the only accepted value and is the default when you omit the field. `json` is explicitly recognised and REJECTED with a distinct message rather than silently falling back, so you can tell 'not supported yet' apart from a typo; any other value is a plain validation error.
brand_idintegernoThe brand's number (`brand_id` on `GET /subnetwork/brands`): a JSON integer or a digits-only string. A uuid or a `brd_…` handle is a `validation_error` (400) — those forms are no longer accepted; a number naming no brand is answered exactly like a brand outside this key's scope.
sn_substring | nullnoRestrict the export to ONE affiliate, matched VERBATIM AND CASE-SENSITIVELY against each row's `sn_sub`. Omit to export every sub, including rows attributed to none. NULL MEANS NO RESTRICTION, identical to omitting the key — every sub is exported, including rows attributed to none. As with the other filters on this body, any OTHER non-string or empty value is REJECTED with a 422 naming the key. A mistyped but well-formed sub id still matches no row and yields an empty export — check the row count against what you expected.
statusstring | nullnoRestrict the export to sales in one lifecycle state — `pending`, `approved`, `declined` or `rejected`. Matched exactly against the stored status. Remember that `declined` and `rejected` both mean reversed and are used by different networks, so filtering on only one of them will miss reversals from the other. Omit to export every status. NULL MEANS NO RESTRICTION, identical to omitting the key: every status is exported. The value is NOT validated against the four-word vocabulary — an unrecognised non-empty string is passed through and simply matches no row, yielding an empty export; a null exports everything (null is 'no filter'); a non-string or empty value is REJECTED with a 422. The first two mistakes fail in opposite directions, so check the row count against what you expected.
currencystring | nullnoRestrict the export to sales recorded in ONE currency, as an ISO-4217 code matched against the row's sale `currency`. Useful precisely because this platform performs no FX conversion and never cross-sums currencies: exporting one currency at a time gives you a file you can total directly. Omit to export every currency, in which case you must group by currency before summing anything. NULL MEANS NO RESTRICTION, identical to omitting the key: every currency is exported, and you must then group by currency before summing anything, because this platform performs no FX conversion. An unrecognised code is not rejected — it matches no row and yields an empty file.
client_referencestring | nullnoIdempotency key in the body. The `Idempotency-Key` header wins if both are sent. NULL MEANS NO BODY-LEVEL IDEMPOTENCY KEY — identical to omitting it. If no `Idempotency-Key` header is sent either, THE REQUEST IS NOT IDEMPOTENT AT ALL and a retry creates a second export job. Null is therefore not a safe default; it is the opt-out.

Payouts

Track manual payments you make to your own affiliates out of your own funds — a record you maintain, not money Affilitera moves (see there is no balance, payable, or owed field above). Reads need payouts:read; recording a payment needs payouts:write, which is never granted by default.

get/subnetwork/payoutspayouts:read

Payout statements

`data` is a PAGE of payout records, newest first, ordered by (`created_at`, `id`) descending — page it with `cursor` / `has_more` like every other list endpoint here. `earned_vs_paid` IS NOT PAGED and never will be: it is a SUM over every payout record in your scope, so a windowed version of it would under-report `paid` and overstate `outstanding`. It is therefore complete on every page, and identical on every page of one pull — read it once and ignore it thereafter. COST NOTE, so you can size your own timeouts honestly: paging bounds the RESPONSE, not the work. Because the aggregate above spans your whole payout history, this endpoint reads all of it on every request — `limit=1` costs the server the same as `limit=200`. Prefer few large pages to many small ones.

ParameterInTypeRequiredNotes
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
post/subnetwork/payoutspayouts:write

Record a payout you have made to an affiliate

Requires the `payouts:write` scope — every other endpoint here is read-only. A container key MUST name `instance_id` explicitly; it is not defaulted, because attributing a payout to an arbitrary instance would be worse than refusing. A NAMED `instance_id` must also be one of the key's ACTIVE authorized instances (deactivated ones are excluded, same as every other write route) — otherwise 422 `validation_error` ('instance_id is not authorized by this key.'), distinct from the 403 `link_locked` case above, which fires when the KEYED instance itself is deactivated. A deactivated connection returns 403 `link_locked`. The affiliate must already be registered under your subnetwork, else 422. IDEMPOTENCY: send an `Idempotency-Key` header. A retry with the same key and the same body returns the ORIGINAL 201, not an error, with `Idempotency-Replayed: true` set — so a client that timed out and retried records exactly ONE payout. The same key with a different body returns 409. The `client_reference` body field remains a fallback for callers not sending the header, and a collision on it alone still returns 409 carrying the payout already recorded. ITEMIZED MODE: sending `items` (or `coverage_mode: "itemized"`) records a payout broken down per order instead of a single lump `amount`, and `amount` is then not required. ITEMIZED-MODE TRANSACTION RESOLUTION IS TWO STEPS WITH TWO DIFFERENT NOT-FOUND SHAPES. First, every `items[].transaction_id` is resolved to an internal order id WITHIN THE KEYED INSTANCE ONLY (before any RPC runs): an id that does not resolve there returns a plain 404 `not_found` ('One or more transaction_ids were not found.') — indistinguishable from one belonging to someone else's instance, so this is not an existence oracle. Only once every id resolves does the write proceed to `sn_create_itemized_payout`, whose OWN failures surface as the 422 `order_not_found` sub-code below — a structurally different case (e.g. a since-voided or re-keyed row) that the pre-resolution step cannot see. Do not conflate the two: a 404 here means "resend without that id"; a 422 `order_not_found` means the write itself was refused. ITEMIZED-MODE SUB-CODES: a 409 or 422 from itemized mode carries a top-level `code` field (sibling of `error.code`, which stays `conflict`/`validation_error`) drawn from a SECOND, itemized-only vocabulary — not a member of the platform-wide closed error-code set. Values: `transaction_already_claimed` (409 — one of these transactions was claimed by another payout record while you were reviewing; reload and retry), `stale_snapshot` (409 — one of these transactions changed value while reviewing; reload), `items_required` (422 — must reference at least one transaction), `invalid_direction` (422), `invalid_item_kind` (422 — each item must be an earning or an adjustment), `order_not_found` (422), `order_not_in_instance` (422), `currency_mismatch` (422 — amounts are never converted), `transaction_not_confirmed` (422 — only confirmed transactions are itemizable), `nothing_to_claim` (422), `no_drift_to_adjust` (422), `overpaid_no_disbursement` (422 — reversals on already-paid transactions exceed new earnings; no payment due, balance carries forward), `nothing_to_recover` (422), `exceeds_outstanding` (422 — this payment is larger than what's still owed in this currency), `exceeds_overpayment` (422 — this recovery is larger than the amount overpaid in this currency). NOT CONFIGURED (503): if the server has no database configured at all, both write paths return 503 with `error.code: service_unavailable` and a `Retry-After` header. CHANGED 2026-08-16 (gap G-29, now CLOSED): this previously returned 503 carrying `error.code: internal_error`, contradicting that code's own documented 500 — a status-branching caller read "transient, retry" while a code-branching caller read "a genuine, non-transient server fault", for the identical failure. THE STATUS IS UNCHANGED at 503; only the code that disagreed with it moved. `GET /subnetwork/payouts/claimable` carried the same defect and was corrected in the same change, so the two payout surfaces agree.

ParameterInTypeRequiredNotes
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Request body (required)

FieldTypeRequiredNotes
sn_substringyesThe affiliate paid. Must be registered under this subnetwork.
sub_affiliate_numberintegernoOPTIONAL alternative to `sn_sub`: the sub-affiliate's number. Names the same sub; sending both for two different subs is a 422, a number naming none of your subs is a 422, and a non-number is a 400.
amountstringyesAmount paid, in `currency`. Must be strictly positive. Never cross-summed across currencies. FORBIDDEN in itemized mode (`items` present, or `coverage_mode: "itemized"`) — not merely optional: supplying it there is 422 `validation_error` ('amount is derived from the items and may not be supplied.'), since the amount is computed from `items[]` and a caller-supplied value could disagree with it. SEND A DECIMAL STRING (`"25.50"`). That is the form every response emits, so a payout you read back from this API can be posted straight back with no type conversion, and a large or high-precision amount is not rounded by your JSON encoder on the way in. A JSON number is still accepted for convenience. NOTHING ELSE IS. `"0x10"`, `"1e5"`, `"Infinity"`, `"$25"` and `"1,234.00"` are 422 `validation_error`. (`"0x10"` previously recorded a payout of 16.00, silently.)
currencystringyesISO-4217 code, upper-cased server-side — but the two write paths validate at a DIFFERENT POINT relative to that upper-casing, so they disagree on lower-case input. Non-itemized mode validates the format on the RAW value before upper-casing it, so `"usd"` is 422 `validation_error`. Itemized mode upper-cases FIRST, so `"usd"` is accepted there. Send upper-case to avoid depending on which mode you are in.
providerstring | nullnoRESERVED for Phase-2 (provider-managed payouts). Setting `provider`, `provider_payout_id` or `provider_status` on a create — in EITHER mode — is 422 `validation_error` ('provider fields are reserved for Phase-2 and may not be set manually.' on the non-itemized path; the itemized path's wording is 'provider fields are reserved for Phase-2 and may not be set.'). Do not send any of the three. NULL IS NOT AN ACCEPTED VALUE, and this is the trap: the guard tests whether the KEY IS PRESENT, not what it holds, so sending `"provider": null` is 422 exactly as `"provider": "stripe"` is. The key must be ABSENT from the body. That makes this field the one place on this API where null and omitted differ, so a client that serialises its whole model — nulls included — will be rejected until it drops the key.
settlement_currencystring | nullnoRESERVED for Phase-2. ITEMIZED MODE ONLY (the non-itemized path has no equivalent check, since it has no settlement concept today). Setting `settlement_currency` or `settlement_amount` is 422 `validation_error` ('settlement fields are reserved for Phase-2 and may not be set.'). Do not send either. NULL IS NOT AN ACCEPTED VALUE. Like the provider fields, the guard tests KEY PRESENCE rather than value, so `"settlement_currency": null` is 422. Omit the key entirely. A client that emits every field of its model with explicit nulls will be rejected on this key alone.
instance_idstringnoRequired for container keys. For a single-instance key it is resolved from the key.
payment_methodstring | nullnoHow you paid the sub, as FREE TEXT that you choose — for example a bank transfer, PayPal or Wise. NOT an enum: nothing validates or normalises it, so it will only be as consistent as your own writes. Recorded for your reference and never interpreted by us. Omit if you have nothing to record. NULL MEANS NOT RECORDED — you chose to say nothing about how you paid — and is identical to omitting the key, to `""`, and to any non-string value, all of which are stored as null rather than rejected. Nothing is inferred: we never guess a method from the amount, the currency or your previous payouts.
referencestring | nullnoYour own payment reference. NULL MEANS NOT RECORDED — no payment reference was supplied — and is identical to omitting the key, to `""`, and to any non-string value. It is never generated for you, and it is NOT the idempotency key: use `client_reference` or the `Idempotency-Key` header for that. Two payouts may share a reference; nothing enforces uniqueness here.
notestring | nullnoA free-text note to store against this payout. Never interpreted by us and never shown to the sub by this API. Omit if unused. NULL MEANS NOT RECORDED — no note was supplied — and is identical to omitting the key, to `""`, and to any non-string value. Never interpreted, never shown to the sub, never generated for you.
client_referencestring | nullnoIdempotency key in the body. The `Idempotency-Key` header wins if both are sent. NULL MEANS NO BODY-LEVEL IDEMPOTENCY KEY — identical to omitting it. If no `Idempotency-Key` header is sent either, THE REQUEST IS NOT IDEMPOTENT AT ALL: a retried POST records a SECOND PAYOUT for the same money. On this endpoint that is not a duplicate record but a duplicate payment in your books, so treat null here as a decision, not a default.
coverage_modestring (itemized)noSwitches to itemized mode.
itemsobject[]noPer-order breakdown. Presence alone switches to itemized mode.
directionstring (disbursement | recovery | write_off)no · default disbursementITEMIZED MODE ONLY (ignored/absent on a non-itemized create, which has no direction concept). `amount` on the created `Payout` and on each `items[].amount` is ALWAYS positive; `direction` carries the sign — see the `Payout.direction` schema note. `disbursement` (the default) is a normal payment. `recovery` claws back an earlier disbursement (money coming BACK to the owner). `write_off` records an amount as no longer owed without money moving. Any other value returns 422 with sub-code `invalid_direction` (see ITEMIZED-MODE SUB-CODES below) — added later than the rest of this request shape and previously undocumented here even though the error sub-code it produces was.
statusstring (recorded | pending)no · default recordedCreation status. `recorded` (the default, and the unchanged behaviour) means the payment has already been made and is being recorded — it counts as settled immediately. `pending` reports the amount as in_flight and withholds it from claimable, so a later batch cannot double-pay it; it does NOT reduce outstanding. ONE-WAY DOOR: there is currently no mark-sent / mark-confirmed path for an owner-to-sub payout, so a pending record cannot yet be advanced to settled by anyone, and this endpoint has no PATCH. Any other value returns 422. NON-ITEMIZED CREATES ONLY: the itemized write path always records `recorded`, and supplying `status` alongside `items` returns 422 rather than being silently ignored.
get/subnetwork/reconciliation/linespayouts:read

List network payment reconciliation lines

What your networks say they PAID YOU, one line per transaction, each matched against your orders (network transaction id first, then order reference, then brand + date + amount). Lines come from a network's payment API or from a statement you uploaded. Every id is a number; no internal UUID is returned. Duplicate lines are excluded unless you ask for `outcome=duplicate`.

ParameterInTypeRequiredNotes
limitqueryintegerno · default 50Page size. Default 50, maximum 200. A value ABOVE the maximum is CLAMPED to it, not rejected — the response reports the applied size in `limit` and sets `limit_clamped: true`. A value that is not a positive integer returns 400 `invalid_parameter`.
cursorquerystringnoOPAQUE keyset cursor. Pass back the `next_cursor` from the previous page verbatim. Do not construct, parse or increment it — its internal shape is not part of the contract. A cursor that cannot be read (truncated, re-encoded, or never issued by us) restarts from the beginning rather than erroring, and THAT RESPONSE CARRIES THE `X-Cursor-Warning` RESPONSE HEADER, whose value begins with the token `undecodable`. Status and body are exactly what a first page returns; the header is the only thing that tells a restart apart from a real next page, so check for it on every paged call: if it is present, your stored cursor was damaged and the page you hold is page one. This is planned to become a `400 invalid_parameter` naming `cursor`, on a date that will be announced in advance. (`/subnetwork/creatives`, `/subnetwork/advertisers` and `/subnetwork/links/mine` already refuse a cursor they cannot read with their own 4xx, so they never restart and never send this header.) ONE EXCEPTION, on `/subnetwork/links/domains` only: that endpoint previously minted a bare decimal row offset as its cursor and still honours one for backward compatibility, but refuses one deeper than 10000 rows with `400 invalid_parameter`. Past that depth the underlying offset read exceeds the database statement timeout and fails identically on every retry, so it is reported as the permanent condition it is rather than as a retryable error; restart the pull with no cursor. Keyset cursors — everything `next_cursor` mints today, on every endpoint — do not degrade with depth and are never refused this way.
outcomequerystring (matched_paid | matched_unpaid | paid_not_approved | amount_mismatch | currency_mismatch | status_differs | duplicate | unmatched_line | cancelled_after_paid)noRestrict to lines carrying this reconciliation outcome. A line can carry several (for example `amount_mismatch` and `status_differs`).
sourcequerystring (api | csv)noRestrict to lines read from the network's API (`api`) or from an uploaded statement file (`csv`, which also covers XLSX uploads).
monthquerystringnoRestrict to one calendar month, `YYYY-MM`: the month of the line's payment date, or of its transaction date when the network gave no payment date. Anything else returns 400 `invalid_parameter`.
statusquerystring (paid | approved | pending | cancelled | unknown)noRestrict to the network's payment status, reduced to a class. `unknown` selects lines whose network status word was not recognised — it is never read as paid or pending.
get/subnetwork/reconciliation/summarypayouts:read

Network payment reconciliation totals

Totals of what your networks say they paid you, by network, brand, month and network status — ALWAYS one row per (group, currency). Two currencies are never added together, and duplicate lines are excluded.

ParameterInTypeRequiredNotes
monthquerystringnoRestrict to one calendar month, `YYYY-MM`: the month of the line's payment date, or of its transaction date when the network gave no payment date. Anything else returns 400 `invalid_parameter`.
sourcequerystring (api | csv)noRestrict to lines read from the network's API (`api`) or from an uploaded statement file (`csv`, which also covers XLSX uploads).
get/subnetwork/payouts/balancespayouts:read

What you owe each affiliate, or owe on each brand

Pending / approved / cancelled / paid / in a batch / owed now, per affiliate or per brand, per currency — the API twin of the owner portal's Balances view, computed by the same fold, so the two never disagree. An affiliate's share of a sale is their commission group's share of the commission the network actually paid on it (Decision 294); no per-sale rate is served. Filters narrow the sales; an unrecognised value is refused (400/422), never silently ignored. Money is a decimal string beside its currency and is never summed across currencies. Every id is a number: `brand_id` is the brand's number; an affiliate is `sn_sub` beside `sub_affiliate_number`.

ParameterInTypeRequiredNotes
groupquerystring (affiliate | brand)no · default affiliateGroup per affiliate (default) or per brand.
fromquerystringnoEarliest sale date, inclusive (YYYY-MM-DD). A sale with no date is excluded by any date filter.
toquerystringnoLatest sale date, inclusive (YYYY-MM-DD).
brand_idqueryarraynoOnly these brands, by NUMBER (repeatable, or comma-separated). A uuid is a 400; a number naming no brand is a 422.
sn_subqueryarraynoOnly these affiliates, by name (repeatable, or comma-separated).
sub_affiliate_numberqueryintegernoOnly this affiliate, by number. A number naming none of your affiliates is a 422.
statusquerystring (pending | approved | cancelled | paid | owed)noOnly sales in this state. `paid` = in a completed payment; `owed` = approved, unpaid, not in a batch.
currencyquerystringnoOnly this currency (ISO-4217, upper-cased).
countryquerystringnoOnly sales on brands in these countries: a comma list of stored country codes, plus `__unknown__` for brands with no country.
instance_idquerystringnoNarrow to one connection. Validated against the key's own authorized set — an unauthorized value is a 422. Default: every connection the key holds.
get/subnetwork/payouts/batchespayouts:read

Your payment batches

Every payment batch you issued, newest first, with its state and per-currency totals. Not paginated. Only `paid` payments count as paid; an exported batch is still owed.

post/subnetwork/payouts/batchespayouts:write

Create a payment batch

Issue one payment per (affiliate, connection, currency) over the approved-and-unpaid sales the selection names — every owed sale of the chosen affiliates (default: every affiliate with something owed), optionally only the sales the network has already paid you for. Each payment also nets every clawback on that affiliate's already-paid sales; netting is not optional. NO AMOUNT IS ACCEPTED: amounts come from the ledger inside the database, and a sale can be in only one open or completed payment (the database refuses a second). Two steps: `dry_run: true` returns the plan and its per-currency `totals`; `dry_run: false` with those totals as `confirm_totals` creates the batch — refused with 409 `conflict` (`reason: totals_changed`) if the sales moved since, so nothing you did not review is ever created. Idempotent under `Idempotency-Key`. A deactivated connection accepts no batch (403 `link_locked`).

Request body (required)

FieldTypeRequiredNotes
dry_runbooleanno · default true`true` (default) plans and creates nothing. `false` creates the batch and requires `confirm_totals`.
sn_substring[]noAffiliates to pay, by name. Omit to pay every affiliate with something owed.
sub_affiliate_numbersinteger[]noAffiliates to pay, by number (a list). May be combined with `sn_sub`.
only_network_paidbooleanno · default falseInclude only sales the network has already paid you for (`network_paid` true).
currencystringnoOnly this currency (ISO-4217). Default: every currency, each as its own payment.
fromstringnoOnly sales dated on or after this day (YYYY-MM-DD).
tostringnoOnly sales dated on or before this day (YYYY-MM-DD).
brand_idsinteger[]noOnly sales on these brands, by NUMBER.
confirm_totalsobject[]noREQUIRED when `dry_run` is `false`: the `totals` a dry run returned. Compared per currency; any difference refuses the batch.
payment_methodstringnoFree text stamped on every payment (e.g. `bank_transfer`).
notestringnoFree text stamped on every payment.
instance_idstringnoNarrow to one connection; must be one the key holds and be active.
get/subnetwork/payouts/batches/{batch_reference}payouts:read

One payment batch

The batch's state, per-currency totals, every payment with the sales it covers, and the actions recorded against it.

ParameterInTypeRequiredNotes
batch_referencepathstringyesThe batch key (`T2BATCH-…`) as returned by POST /subnetwork/payouts/batches. A key you do not own, or a native `NBATCH-…` key, is the same 404.
post/subnetwork/payouts/batches/{batch_reference}/completepayouts:write

Mark a batch paid — or cancel it

Default (`action: complete`): mark the whole batch, or only `payment_ids`, PAID, with an optional transfer `reference` and `paid_date`. Only this makes a payment count as paid — exporting a file does not. A payment already paid is left alone (repeat-safe); a payment with a payout provider is refused (409): the provider's confirmation marks it paid. `action: cancel` releases the batch's UNPAID payments: their sales are owed again. Paid payments are never cancelled; a batch with a payment at a provider cannot be cancelled here (409). Idempotent under `Idempotency-Key`.

ParameterInTypeRequiredNotes
batch_referencepathstringyesThe batch key (`T2BATCH-…`) as returned by POST /subnetwork/payouts/batches. A key you do not own, or a native `NBATCH-…` key, is the same 404.

Request body

FieldTypeRequiredNotes
actionstring (complete | cancel)no · default completeWhich operation to apply to the batch, caller-supplied. `complete` marks the batch, or only `payment_ids`, paid; `cancel` releases the batch's unpaid payments so their sales are owed again. Absent means `complete`.
payment_idsstring[]no(complete) Only these payments of the batch. Omit for the whole batch. A payment not in this batch is a 422.
referencestringno(complete) The transfer reference to stamp on the payments.
paid_datestringno(complete) The day the payments were made (YYYY-MM-DD, not in the future). Default: now.
reasonstringno(cancel) Why, recorded in the audit trail.
post/subnetwork/payouts/batches/{batch_reference}/exportpayouts:write

Download the payments file

The payments file for the batch's OPEN payments, in your choice of format: `csv` (generic: affiliate, payee details on file, amount, currency, reference), `paypal` (PayPal Payouts bulk CSV: recipient email, amount, currency, reference, note, PAYPAL), or `sepa` (SEPA credit transfer, pain.001.001.03, EUR only — needs your own account as `debtor`). The response IS the file (`Content-Disposition: attachment`), not a JSON envelope. Payments the format could not include are listed in the `X-Payments-Excluded` header (percent-encoded JSON `[{sn_sub, reason, amount, currency}]`) — never silently dropped — and the per-currency totals of the file in `X-Payments-Totals`. Producing the file marks the batch `exported`; it stays owed until you complete it. A POST, not a GET: the debtor account must not travel in a URL and the export records state.

ParameterInTypeRequiredNotes
batch_referencepathstringyesThe batch key (`T2BATCH-…`) as returned by POST /subnetwork/payouts/batches. A key you do not own, or a native `NBATCH-…` key, is the same 404.

Request body (required)

FieldTypeRequiredNotes
formatstring (csv | paypal | sepa)yesThe file format.
debtorobjectno(sepa) Your own account the transfers are drawn on. Taken per request, never stored.
get/subnetwork/payouts/claimablepayouts:read

Claimable balance

A payout PROPOSAL for exactly one (`sn_sub`, `currency`) pair. Both of those parameters are REQUIRED — a proposal spanning currencies is meaningless (a GBP recovery never offsets a EUR debt), so the endpoint refuses rather than rolling up across a sub's currencies. `instance_id` becomes required as well when the key is a CONTAINER key, because the instance cannot then be derived from the key alone; for an instance-scoped key it is derived and must be omitted or match. Every one of these is a `422 validation_error`, not a `400`.

ParameterInTypeRequiredNotes
sn_subquerystringyesREQUIRED. The affiliate to build the proposal for. Absent or blank returns 422 (`sn_sub is required.`).
sub_affiliate_numberqueryintegernoOPTIONAL alternative to `sn_sub`: the sub-affiliate's number. Names the same sub; sending both for two different subs is a 422, a number naming none of your subs is a 422, and a non-number is a 400.
currencyquerystringyesREQUIRED. A 3-letter ISO-4217 code; it is upper-cased before validation, so `eur` is accepted. Anything not matching returns 422 (`currency is required and must be a 3-letter ISO-4217 code.`).
instance_idquerystringnoREQUIRED FOR A CONTAINER KEY, and validated against the key's own authorized instance set — an unauthorized value returns 422, never 403, and never reveals whether the instance exists. Omitting it on a container key returns 422 (`instance_id required for container keys`). On an instance-scoped key it defaults to the key's instance. `GET /subnetwork/instance` tells you which kind of key you hold (`scope_kind`).

Jobs

Poll and download the CSV/JSON exports you enqueued from Reporting. Reads need reports:read; enqueueing or retrying an export needs reports:write.

get/subnetwork/jobs/{job_id}reports:read

Job status

ParameterInTypeRequiredNotes
job_idpathstringyesThe export job to poll, as returned in `job_id` when you submitted it. Ours. A job belonging to another owner returns 404, deliberately indistinguishable from one that does not exist. A `job_id` that is not a uuid is refused with 422 `validation_error`, never 404. This endpoint accepts no query parameters; sending one is a 400 `invalid_parameter`.
get/subnetwork/jobs/{job_id}/downloadreports:read

Download a finished export

Responds 302 to a short-lived presigned URL. A job that has not finished returns 409 `job_not_ready`.

ParameterInTypeRequiredNotes
job_idpathstringyesThe export job whose file you want, as returned in `job_id` when you submitted it. The job must have reached `done`; anything earlier returns a conflict rather than an empty file. This endpoint REDIRECTS to a short-lived storage URL, so follow redirects and do not cache the target. A `job_id` that is not a uuid is refused with 422 `validation_error`, never 404. This endpoint accepts no query parameters; sending one is a 400 `invalid_parameter`.
post/subnetwork/jobs/{job_id}/retryreports:write

Retry a failed export

Only a FAILED job can be retried — anything else returns 409 `job_not_failed`. A job that has exhausted its retries returns 409 `max_retries_exceeded`.

ParameterInTypeRequiredNotes
job_idpathstringyesThe export job to retry. ONLY A `failed` JOB CAN BE RETRIED — retrying a job in any other state is a conflict, not a no-op. There is a hard cap on retries per job, after which further attempts are refused. A `job_id` that is not a uuid is refused with 422 `validation_error`, never 404.
Idempotency-KeyheaderstringnoMakes this write safe to retry. Send any unique string (a UUID is typical) and reuse it for the retry. A retry with the SAME key and a byte-identical body does NOT re-execute the write — it returns the stored response, with the original `request_id` still in the body and an `Idempotency-Replayed: true` response header. So a client that timed out and retried creates exactly one record. The SAME key with a DIFFERENT body returns 409 `conflict`; use a new key for a new request. A key whose first call is still in flight also returns 409 — retry once it settles. Keys are scoped to your API key (yours can never collide with another partner's) and retained 24 hours. A non-2xx stores nothing, so you may correct the request and retry with the same key. If the idempotency store itself is unreachable the request is REFUSED with a retryable 503 rather than executed without the guarantee you asked for.

Affiliate

get/affiliate/campaignscampaigns:read

List the campaigns you may promote

Authenticate with your PERSONAL AFFILIATE key (`Authorization: Bearer affk_…`, scheme `affiliateKeyAuth`), not an `snk_` SubNetwork key. Returns EVERY campaign you may promote in one response: there is no paging and no filter, and this operation takes NO query parameter — any parameter at all is refused with 400 `invalid_parameter` rather than ignored. A campaign is listed when it is active, its brand is active on the platform and visible to your account, and it is public or you are on its allowlist (`selected` campaigns: an accepted invitation; `private` campaigns: invited, pending or accepted). Tracking links are not built here. Rate tier: standard.

get/affiliate/statsstats:read

Your headline figures for a date window

Authenticate with your PERSONAL AFFILIATE key (`Authorization: Bearer affk_…`, scheme `affiliateKeyAuth`), not an `snk_` SubNetwork key. Aggregates YOUR clicks, sales and earnings over one date window (default: the last 30 days). Counts are currency-free; every money figure is PER CURRENCY in `data.by_currency` and is never summed across currencies — Affilitera performs no FX conversion. The whole window is aggregated in one response: there is no paging. Only `from` and `to` are accepted; any other query parameter is refused with 400 `invalid_parameter`. Read `truncated` and `degraded` before trusting a figure. `by_currency.<currency>.commission` adds your earning roles together and is DEPRECATED: responses from this operation carry `Deprecation` and `Sunset` headers for it; read `by_earning_role` instead. Rate tier: reporting.

ParameterInTypeRequiredNotes
fromquerystringnoStart of the reporting window, INCLUSIVE, as a calendar day `YYYY-MM-DD` (UTC), compared against the date each sale occurred. Omit for the default: 30 days before today. Send exactly this form: the value is not format-checked, so a malformed one is not refused with 400 `invalid_parameter`.
toquerystringnoEnd of the reporting window, INCLUSIVE OF THE WHOLE CALENDAR DAY (`YYYY-MM-DD`, UTC). Omit for the default: today. Send exactly this form: the value is not format-checked, so a malformed one is not refused with 400 `invalid_parameter`.
get/affiliate/transactionstransactions:read

Your own share of each sale in a date window

Authenticate with your PERSONAL AFFILIATE key (`Authorization: Bearer affk_…`, scheme `affiliateKeyAuth`), not an `snk_` SubNetwork key. Lists YOUR OWN share of each sale in one date window (default: the last 30 days) — never the network's raw commission and never another party's cut. ONE ROW PER (SALE, EARNING ROLE): an account that earns on one sale under two roles gets two rows with the same `transaction_id`, so key a row on `transaction_id` together with `earning_role`. The whole window is returned in one response: there is no paging, and `truncated` says when a cap was reached. Only `from` and `to` are accepted; any other query parameter is refused with 400 `invalid_parameter`. `totals_by_currency` adds your earning roles together and is DEPRECATED: responses from this operation carry `Deprecation` and `Sunset` headers for it; read `totals_by_currency_and_earning_role` instead. Rate tier: reporting.

ParameterInTypeRequiredNotes
fromquerystringnoStart of the reporting window, INCLUSIVE, as a calendar day `YYYY-MM-DD` (UTC), compared against the date each sale occurred. Omit for the default: 30 days before today. Send exactly this form: the value is not format-checked, so a malformed one is not refused with 400 `invalid_parameter`.
toquerystringnoEnd of the reporting window, INCLUSIVE OF THE WHOLE CALENDAR DAY (`YYYY-MM-DD`, UTC). Omit for the default: today. Send exactly this form: the value is not format-checked, so a malformed one is not refused with 400 `invalid_parameter`.
includequerystring (clicks)noOPT-IN, off by default: `include=clicks` adds `clicks` to every row — each of YOUR clicks behind the sale, oldest first, with the credited click marked and your own Sub-IDs. Never another affiliate's click. Without it the response is exactly as before. Any other value is a 400 `invalid_parameter`. A window with more than 200 sales that have tracked clicks is refused with 400 `filter_too_broad`: narrow `from`/`to`.
get/affiliate/network-earningsstats:read

Your sales and earnings with the networks you promote for

Authenticate with your PERSONAL AFFILIATE key (`Authorization: Bearer affk_…`, scheme `affiliateKeyAuth`), not an `snk_` SubNetwork key. For an affiliate who promotes through one or more SubNetwork operators' networks: your own sales there, your commission on each with the status the operator set, and your per-currency totals. It shows ONLY your share — never the operator's share or earnings, never the total the network paid, and never another affiliate's data. Every sale you have with those networks is returned in one response (no window, no paging). This operation takes NO query parameter — any parameter is refused with 400 `invalid_parameter`. An account that promotes for no network gets empty `networks`, `totals` and `sales`. Rate tier: reporting.

Merchant

post/merchant/eventsconversions:write

Report a conversion event, payment, refund, dispute or cancellation

Authenticate with a BRAND (merchant) key (`Authorization: Bearer mk_…`, scheme `merchantKeyAuth`), not an `snk_` or `affk_` key. Server to server, your brand reports ONE of five things per request, chosen by `type`: an `occurrence` (an event you defined, a sale or a recurring payment — the default), a `refund` of one earlier occurrence (full, or partial with `remaining_ratio`), a `dispute` or `dispute_won` on one earlier occurrence, or the `cancellation` of a subscription. Each event is priced by the commission rule in force on the date of `occurred_at`, and commission is split by the platform as for any other sale. IDEMPOTENT ON `external_event_id` within your brand: sending an occurrence whose `external_event_id` was already recorded writes nothing and answers 200 with `duplicate: true` and the FIRST outcome, so a retry is always safe. The event is stored before the response is sent, so a 2xx always means it was recorded. Your brand must be an Affilitera-native brand (404 `not_native_advertiser` otherwise). Amounts are major units EXCLUDING TAX and are never converted between currencies. An occurrence whose `click_id` is a test link's reference is recorded for your test report only and never paid. The `Idempotency-Key` header is not read here; `external_event_id` is the idempotency key. Error codes on this operation are this operation's own (see `MerchantEventError`), not only the shared set. Rate tier: standard.