Linknetik Developers Linknetik site

Affiliate API

For affiliate users. Every call only returns your own data: the offers you are approved on and your own traffic.

Access. The Network approves each account. Ask for it at /my-profile/api-keys; until it is approved every call answers 403 access_not_approved. The Network chooses which groups below your keys can call. Identity, Reference and Parties are always included. GET /me returns token.scopes: what this key can really do right now. If the Network changes or revokes your access, it applies on the next call.

Base URLhttps://YOUR-NETWORK-DOMAIN/api/v1

Use the domain of the network you work with. New here? Start with the quickstart.

All endpoints

Identity

Who the token belongs to and what it may do. Open to every key.

GET/meNo scope needed

The token owner, the account it acts for and what the token may do.

Call this first. token.scopes lists what this key can really do; affiliate_id / advertiser_id say which record it acts for (both null for Network keys).

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/me" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Reference

Small lookup lists (currencies, countries, payout types, statuses, categories, marketing channels, creative types). Open to every key.

GET/reference/currenciesNo scope needed

List currencies.

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/currencies" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/countriesNo scope needed

List countries.

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/countries" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/payout-typesNo scope needed

List active payout types (CPA / CPL / RevShare / …).

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/payout-types" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/statusesNo scope needed

List the status catalog (shared across many tables).

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/statuses" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/categoriesNo scope needed

List categories (IAB).

What offers and traffic sources are classified with.

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/categories" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/marketing-channelsNo scope needed

List marketing channels (email, social, search, …).

What a traffic source is, and what an offer accepts.

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/marketing-channels" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/reference/creative-typesNo scope needed

List creative types (image banner, text link, HTML, …).

source says where the asset of that type is: a url or HTML code.

Always included: no grant needed.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/creative-types" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Parties

Affiliates and advertisers, their users and traffic sources. Each role sees its own record in full and the other side without contact details.

GET/affiliatesNo scope needed

List affiliates.

search looks in the company name (and, for Network keys, the email).

Returns your own record, with all fields.

Always included: no grant needed.

Parameters

NameInTypeNotes
searchquerystringText to look for.
status_idqueryintegerSee /reference/statuses.
country_idqueryintegerSee /reference/countries.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/affiliates/{id}No scope needed

Fetch one affiliate.

Returns your own record, with all fields.

Always included: no grant needed.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/advertisersNo scope needed

List advertisers.

search looks in the company name (and, for Network keys, the email).

Returns the advertisers of the live offers you are approved on, when the offer names its advertiser. Fields for a company on the other side: id, company_name, country_id, status_id. Contact details stay with the Network.

Always included: no grant needed.

Parameters

NameInTypeNotes
searchquerystringText to look for.
status_idqueryintegerSee /reference/statuses.
country_idqueryintegerSee /reference/countries.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/advertisers/{id}No scope needed

Fetch one advertiser.

Only the advertiser of an offer you are approved on that names its advertiser; anything else answers 404. Fields for a company on the other side: id, company_name, country_id, status_id. Contact details stay with the Network.

Always included: no grant needed.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/traffic-sourcesScope read:offers

List traffic sources.

Where an affiliate's traffic comes from (a site, a newsletter, a social account). country_ids and category_ids point at the Reference lists.

Only your own sources.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
marketing_channel_idqueryintegerSee /reference/marketing-channels.
status_idqueryintegerSee /reference/statuses.
searchquerystringName or URL contains.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/traffic-sources" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/traffic-sources/{id}Scope read:offers

Fetch one traffic source.

Only one of your own sources.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/traffic-sources/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Offers

Offers, their landing pages, creatives and payouts, and tracking links.

GET/offersScope read:offers

List live offers.

Only the offers you are approved on. advertiser_id is null when the offer does not name its advertiser. The offers you could still ask for are on /offers/available.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
searchquerystringOffer name contains.
category_idqueryintegerSee /reference/categories.
marketing_channel_idqueryintegerSee /reference/marketing-channels.
country_idqueryintegerOffers a visitor from this country can be sent to.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/availableScope read:offers

List the offers an affiliate could ask for.

The marketplace: live offers the affiliate is not running yet, that accept at least one marketing channel it has a traffic source for. can_request is false for private offers, which need an invite; ask for the others with POST /offers/{id}/access-request.

Empty until you have a traffic source.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
searchquerystringOffer name contains.
category_idqueryintegerSee /reference/categories.
marketing_channel_idqueryintegerSee /reference/marketing-channels.
country_idqueryintegerOffers a visitor from this country can be sent to.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/available" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}Scope read:offers

Fetch a single offer.

Only a live offer you are approved on.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/urlsScope read:offers

List the landing pages of an offer.

Each one comes with tracking_url, your own link to that landing page. redirect_url is not returned.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/urls" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/creativesScope read:offers

List the creatives of an offer.

url is where the file is (or, for a text link, where it leads). has_code says there is HTML to fetch with the next endpoint. Types are in /reference/creative-types.

Each one comes with tracking_url, the link to run that creative with.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/creatives/{creative_id}Scope read:offers

Fetch one creative, with its HTML.

code is ready to publish: every link in it is already your own tracking link.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger
creative_idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/payoutsScope read:offers

List what an offer pays.

One row per event of the offer (offer_event_id is null for an offer with a single event). Types are in /reference/payout-types.

What you earn: your own rate where the Network gave you one (is_custom), the default otherwise. Revenue is never returned.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/payouts" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/creativesScope read:offers

Find creatives across offers.

The same creatives the per-offer list returns, without having to know the offer. The HTML of one is on /offers/{id}/creatives/{creative_id}.

Only active creatives of the offers you are approved on, each with its tracking_url.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
offer_idqueryinteger
type_idqueryintegerSee /reference/creative-types.
searchquerystringCreative name contains.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/creatives" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/offers/{id}/eventsScope read:offers

List the events of an offer.

What can be reported as a conversion on this offer (a lead, a sale, a deposit…). slug is what a postback sends as e=; id is the offer_event_id of payouts and conversions. Empty for an offer with a single kind of conversion.

With the base payout of each event. Revenue is never returned.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/events" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Access

Which affiliate may run which offer.

GET/offers/{id}/access-requestScope read:offers

Your access status for an offer.

status is one of none, pending, approved, revoked.

Needs read:offers, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access-request" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
POST/offers/{id}/access-requestScope write:access

Request access to an offer.

Only public offers can be self-requested: private offers need an invite.

Needs write:access, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access-request" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
201Pending created
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Reporting

Aggregated stats and raw click / conversion lists.

GET/stats/generalScope read:stats

Rolled-up KPIs: clicks, conversions, money, CR, approval rate.

Flat totals by default. Pass group_by=offer to split by offer, offer_id to look at one offer.

Only your own traffic. payout is what you earn; revenue is never returned.

Needs read:stats, granted by the Network.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
group_byquerystringOne of: offer.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/general" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/stats/clicksScope read:stats

Click counts by day, offer, affiliate, country, device, creative or sub id.

Only your own traffic.

Needs read:stats, granted by the Network.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
group_byquerystringadvertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/clicks" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/stats/conversionsScope read:stats

Conversion counts and money by day, offer, affiliate, country, device, creative or sub id.

Only your own traffic. payout is what you earn; revenue is never returned.

Needs read:stats, granted by the Network.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
group_byquerystringadvertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/stats/conversions" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/clicksScope read:stats

Paginated per-click list.

Default window is the last 24 h because click rows are high-volume. Pass explicit dates to widen. status_id=4 lists the clicks that were refused, each with its rejection_reason.

Only your own traffic. advertiser_id is null when the offer does not name its advertiser. The fraud score and the rules a click tripped are not returned; a click refused by fraud detection has rejection_reason fraud.

Needs read:stats, granted by the Network.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
status_idqueryinteger
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/clicks/{click_id}Scope read:stats

Fetch one click.

click_id is the id handed to the advertiser on the redirect, the one a postback sends back.

Only your own clicks. advertiser_id is null when the offer does not name its advertiser. The fraud score and the rules a click tripped are not returned; a click refused by fraud detection has rejection_reason fraud.

Needs read:stats, granted by the Network.

Parameters

NameInTypeNotes
click_idrequiredpathstring

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/conversionsScope read:stats

Paginated list of conversions.

Pass tx_id or click_id to find one conversion by the advertiser's transaction id or by the click it came from. status_id=1 lists the conversions still waiting for approval.

Only your own traffic. payout is what you earn; revenue is never returned. advertiser_id is null when the offer does not name its advertiser.

Needs read:stats, granted by the Network.

Parameters

NameInTypeNotes
date_fromquerystring (date)Default: 30 days ago.
date_toquerystring (date)Default: today.
offer_idqueryinteger
status_idqueryintegerOne of: 1, 2, 4.
tx_idquerystringThe advertiser's transaction id.
click_idquerystring
country_codequerystringTwo letters, as in /reference/countries.
device_typequerystring
sub1querystring
sub2querystring
sub3querystring
sub4querystring
sub5querystring
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/conversions/{id}Scope read:stats

Fetch one conversion.

Only your own traffic. payout is what you earn; revenue is never returned. advertiser_id is null when the offer does not name its advertiser.

Needs read:stats, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.

Invoices

Invoices of affiliates and advertisers.

GET/invoicesScope read:invoices

List invoices.

An invoice is for an affiliate (what the Network pays it) or for an advertiser (what the Network charges it): type says which. status_id here is the invoice's own: 1 draft, 2 finalized, 3 cancelled.

Only your own invoices, once they are finalized.

Needs read:invoices, granted by the Network.

Parameters

NameInTypeNotes
date_fromquerystring (date)Issue date from. No default range.
date_toquerystring (date)Issue date to.
pagequeryintegerDefault 1.
per_pagequeryintegerWith format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/invoices/summaryScope read:invoices

Totals of invoices.

One row per type, status and currency: how many invoices and the sums of subtotal, VAT and total. Takes the filters of the list. Amounts in different currencies are never added together.

Only your own finalized invoices.

Needs read:invoices, granted by the Network.

Parameters

NameInTypeNotes
date_fromquerystring (date)Issue date from. No default range.
date_toquerystring (date)Issue date to.
formatquerystringcsv returns the same rows as a file to download. One of: json, csv. Default json.

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/summary" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.
GET/invoices/{id}Scope read:invoices

Fetch one invoice, with its lines.

Only one of your own finalized invoices.

Needs read:invoices, granted by the Network.

Parameters

NameInTypeNotes
idrequiredpathinteger

Example request

curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/123" \
  -H "Authorization: Bearer $LINKNETIK_KEY"

Responses

StatusMeaning
200OK
404Resource not found, or not visible to this key.
401Missing or invalid token (invalid_token).
403The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable.
429Rate limit exceeded; check X-RateLimit-* headers.