Advertiser API
For advertiser users. Every call only returns your own data: your offers and the traffic on them.
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.
https://YOUR-NETWORK-DOMAIN/api/v1Use the domain of the network you work with. New here? Start with the quickstart.
All endpoints
- GET/meThe token owner, the account it acts for and what the token may do.
- GET/reference/currenciesList currencies.
- GET/reference/countriesList countries.
- GET/reference/payout-typesList active payout types (CPA / CPL / RevShare / …).
- GET/reference/statusesList the status catalog (shared across many tables).
- GET/reference/categoriesList categories (IAB).
- GET/reference/marketing-channelsList marketing channels (email, social, search, …).
- GET/reference/creative-typesList creative types (image banner, text link, HTML, …).
- GET/affiliatesList affiliates.
- GET/affiliates/{id}Fetch one affiliate.
- GET/advertisersList advertisers.
- GET/advertisers/{id}Fetch one advertiser.
- GET/offersList live offers.
- GET/offers/{id}Fetch a single offer.
- PATCH/offers/{id}Partially update an offer.
- GET/offers/{id}/urlsList the landing pages of an offer.
- GET/offers/{id}/creativesList the creatives of an offer.
- GET/offers/{id}/creatives/{creative_id}Fetch one creative, with its HTML.
- GET/offers/{id}/payoutsList what an offer pays.
- GET/creativesFind creatives across offers.
- GET/offers/{id}/eventsList the events of an offer.
- POST/offers/{id}/access/{affiliate_id}/approveApprove an affiliate's access to an offer.
- POST/offers/{id}/access/{affiliate_id}/rejectReject or revoke an affiliate's access.
- GET/stats/generalRolled-up KPIs: clicks, conversions, money, CR, approval rate.
- GET/stats/clicksClick counts by day, offer, affiliate, country, device, creative or sub id.
- GET/stats/conversionsConversion counts and money by day, offer, affiliate, country, device, creative or sub id.
- GET/clicksPaginated per-click list.
- GET/clicks/{click_id}Fetch one click.
- GET/conversionsPaginated list of conversions.
- GET/conversions/{id}Fetch one conversion.
- GET/invoicesList invoices.
- GET/invoices/summaryTotals of invoices.
- GET/invoices/{id}Fetch one invoice, with its lines.
Identity
Who the token belongs to and what it may do. Open to every key.
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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Reference
Small lookup lists (currencies, countries, payout types, statuses, categories, marketing channels, creative types). Open to every key.
List currencies.
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/currencies" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List countries.
Always included: no grant needed.
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/reference/countries" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate 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.
List affiliates.
search looks in the company name (and, for Network keys, the email).
Returns the affiliates approved on at least one of your offers. 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
| Name | In | Type | Notes |
|---|---|---|---|
search | query | string | Text to look for. |
status_id | query | integer | See /reference/statuses. |
country_id | query | integer | See /reference/countries. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Fetch one affiliate.
Only an affiliate approved on one of your offers; 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
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/affiliates/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
List advertisers.
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
| Name | In | Type | Notes |
|---|---|---|---|
search | query | string | Text to look for. |
status_id | query | integer | See /reference/statuses. |
country_id | query | integer | See /reference/countries. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Fetch one advertiser.
Returns your own record, with all fields.
Always included: no grant needed.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/advertisers/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Offers
Offers, their landing pages, creatives and payouts, and tracking links.
read:offersList live offers.
Only your own offers.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
search | query | string | Offer name contains. |
category_id | query | integer | See /reference/categories. |
marketing_channel_id | query | integer | See /reference/marketing-channels. |
country_id | query | integer | Offers a visitor from this country can be sent to. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersFetch a single offer.
Only one of your own live offers.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
write:offersPartially update an offer.
Only one of your own offers.
Needs write:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | |
description | string | |
default_url | string (uri) | |
preview_url | string (uri) | |
is_private | boolean | |
status_id | integer |
Example request
curl -X PATCH "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123" \
-H "Authorization: Bearer $LINKNETIK_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Example offer"}'Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList the landing pages of an offer.
Only for your own offers.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/urls" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList 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.
Only for your own offers.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersFetch one creative, with its HTML.
Only for your own offers.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer | |
creative_idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/creatives/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList 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 pay by default, for your own offers. Payouts are never returned.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/payouts" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersFind 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 your own offers.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
offer_id | query | integer | |
type_id | query | integer | See /reference/creative-types. |
search | query | string | Creative name contains. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:offersList 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.
Only for your own offers, with what each event costs you. Payouts are never returned.
Needs read:offers, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/events" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Access
Which affiliate may run which offer.
write:accessApprove an affiliate's access to an offer.
Only on your own offers.
Needs write:access, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer | |
affiliate_idrequired | path | integer |
Example request
curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access/123/approve" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
write:accessReject or revoke an affiliate's access.
Only on your own offers.
Needs write:access, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer | |
affiliate_idrequired | path | integer |
Example request
curl -X POST "https://YOUR-NETWORK-DOMAIN/api/v1/offers/123/access/123/reject" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Reporting
Aggregated stats and raw click / conversion lists.
read:statsRolled-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 traffic on your offers. revenue is what you pay; payout and epc are never returned.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | One of: offer. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsClick counts by day, offer, affiliate, country, device, creative or sub id.
Only traffic on your offers.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | advertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsConversion counts and money by day, offer, affiliate, country, device, creative or sub id.
Only traffic on your offers. revenue is what you pay; payout is never returned.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
group_by | query | string | advertiser is for Network keys only. One of: day, offer, affiliate, advertiser, country, device, creative, sub1, sub2, sub3, sub4, sub5. Default day. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsPaginated 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 traffic on your offers. 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
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
status_id | query | integer | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsFetch one click.
click_id is the id handed to the advertiser on the redirect, the one a postback sends back.
Only clicks on your offers. 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
| Name | In | Type | Notes |
|---|---|---|---|
click_idrequired | path | string |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/clicks/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsPaginated 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 traffic on your offers. revenue is what you pay; payout is never returned.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Default: 30 days ago. |
date_to | query | string (date) | Default: today. |
offer_id | query | integer | |
status_id | query | integer | One of: 1, 2, 4. |
tx_id | query | string | The advertiser's transaction id. |
click_id | query | string | |
country_code | query | string | Two letters, as in /reference/countries. |
device_type | query | string | |
sub1 | query | string | |
sub2 | query | string | |
sub3 | query | string | |
sub4 | query | string | |
sub5 | query | string | |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:statsFetch one conversion.
Only traffic on your offers. revenue is what you pay; payout is never returned.
Needs read:stats, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/conversions/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
Invoices
Invoices of affiliates and advertisers.
read:invoicesList 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
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Issue date from. No default range. |
date_to | query | string (date) | Issue date to. |
page | query | integer | Default 1. |
per_page | query | integer | With format=csv: 1000 by default, 5000 at most. Default 50. Maximum 200. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:invoicesTotals 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
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | Issue date from. No default range. |
date_to | query | string (date) | Issue date to. |
format | query | string | csv 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
| Status | Meaning |
|---|---|
200 | OK |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |
read:invoicesFetch one invoice, with its lines.
Only one of your own finalized invoices.
Needs read:invoices, granted by the Network.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
idrequired | path | integer |
Example request
curl "https://YOUR-NETWORK-DOMAIN/api/v1/invoices/123" \
-H "Authorization: Bearer $LINKNETIK_KEY"Responses
| Status | Meaning |
|---|---|
200 | OK |
404 | Resource not found, or not visible to this key. |
401 | Missing or invalid token (invalid_token). |
403 | The key may not do this: access_not_approved, insufficient_scope, forbidden or feature_unavailable. |
429 | Rate limit exceeded; check X-RateLimit-* headers. |