Network API
Every endpoint under /api/v1/network. Use a pk_company_ key.
Finance
| Endpoint | What it does |
|---|---|
GET /api/v1/network/payouts/ledger | Pending, payable, paid and rejected amounts per affiliate and currency. |
GET /api/v1/network/affiliate-invoices | Invoices for affiliate payouts. Filters: status, affiliateId. |
GET /api/v1/network/affiliate-invoices/{publicId} | |
PATCH /api/v1/network/affiliate-invoices/{publicId} | Mark an affiliate invoice paid, partially paid (with amountPaid) or void. |
GET /api/v1/network/affiliate-invoices/{publicId}/pdf | The invoice as a PDF. |
GET /api/v1/network/advertiser-invoices | Invoices issued to advertisers. Filters: status, advertiserId. |
GET /api/v1/network/advertiser-invoices/{publicId} | One advertiser invoice with its lines. |
GET /api/v1/network/advertiser-invoices/{publicId}/pdf | The invoice as a PDF. |
Offers
| Endpoint | What it does |
|---|---|
GET /api/v1/network/offers | Offers. Filters: status, advertiserId, category, visibility, q. |
POST /api/v1/network/offers | Create an offer. Counts against the plan's offer limit. |
GET /api/v1/network/offers/{publicId} | One offer with payout, revenue, caps, targeting and dates. |
PATCH /api/v1/network/offers/{publicId} | Change an offer's name, URLs, payout, revenue, status or dates. Fields left out stay as they are. |
GET /api/v1/network/offers/{publicId}/events | Conversion events, with payout and revenue per event. |
POST /api/v1/network/offers/{publicId}/events | Add a conversion event with its own payout and revenue. |
GET /api/v1/network/offers/{publicId}/payout-rules | Per-affiliate, per-event and per-country payout overrides. |
POST /api/v1/network/offers/{publicId}/payout-rules | Add a payout override for some affiliates, an event or countries. |
GET /api/v1/network/offers/{publicId}/creatives | Creatives with download URLs. |
GET /api/v1/network/offers/{publicId}/caps | Capping rules and their usage this period. |
GET /api/v1/network/offer-requests | Affiliate applications for offers. Filters: status, offerId, affiliateId. |
PATCH /api/v1/network/offers/{publicId}/targeting | Replace the countries, devices or operating systems an offer accepts. A list left out stays; an empty list clears it. |
POST /api/v1/network/offer-requests/{publicId}/approve | Approve an affiliate's offer request, with an optional note. |
POST /api/v1/network/offer-requests/{publicId}/reject | Reject an affiliate's offer request, with an optional note. |
POST /api/v1/network/offer-requests/{publicId}/suspend | Suspend an affiliate's offer request, with an optional note. |
POST /api/v1/network/offer-requests/{publicId}/reinstate | Reinstate an affiliate's offer request, with an optional note. |
POST /api/v1/network/tracking-links | A tracking link for an affiliate and offer, with optional sub IDs. |
Partners
| Endpoint | What it does |
|---|---|
GET /api/v1/network/advertisers | Advertisers. Filters: status, q. |
POST /api/v1/network/advertisers | Create an advertiser. Counts against the plan's advertiser limit. |
GET /api/v1/network/advertisers/{publicId} | |
PATCH /api/v1/network/advertisers/{publicId} | Change an advertiser's details or status. |
GET /api/v1/network/affiliates | Affiliates. Filters: status, manager, q. Payment details are never included. |
POST /api/v1/network/affiliates | Create an affiliate; sendInvite emails them a link to set a password. Counts against the plan's affiliate limit. |
GET /api/v1/network/affiliates/{publicId} | |
PATCH /api/v1/network/affiliates/{publicId} | Change an affiliate's details, or its status (active, pending, suspended…). Status changes email the affiliate as in the dashboard. |
Reports
| Endpoint | What it does |
|---|---|
GET /api/v1/network/reports/summary | Clicks, conversions, CR, revenue, payout and profit. groupBy: up to 3 of day, hour, offer, affiliate, advertiser, country, event, subId1–subId5. |
GET /api/v1/network/reports/revenue | Revenue, payout and profit per day, week or month. Range up to a year (default 90 days). |
GET /api/v1/network/reports/fraud | Fraud signals per offer, affiliate and signal type. |
Traffic
| Endpoint | What it does |
|---|---|
GET /api/v1/network/conversions | Raw conversions, newest first, cursor-paged. Range up to 93 days (default 7). |
POST /api/v1/network/conversions | Record a conversion for one of the network's clicks, server to server. Same rules as the /p postback; a duplicate returns 409 with the original. |
GET /api/v1/network/clicks | Raw clicks, newest first, cursor-paged. Range up to 31 days (default 1). |
GET /api/v1/network/clicks/{clickId} | One click and the conversions attributed to it. |
POST /api/v1/network/conversions/status | Approve, reject, set pending or mark payable up to 1000 conversions, with an optional reason. All or nothing. |
Webhooks
| Endpoint | What it does |
|---|---|
GET /api/v1/network/webhooks | Webhook subscriptions. |
POST /api/v1/network/webhooks | Subscribe a URL to events. The signing secret is returned once: verify X-Signature (t=<unix>,v1=<hex HMAC-SHA256 of "t.body">) on every delivery. |
DELETE /api/v1/network/webhooks/{publicId} | Unsubscribe. Deliveries still queued are dropped. |
POST /api/v1/network/webhooks/{publicId}/test | Send a webhook.test event now and see what the endpoint answered. |
GET /api/v1/network/webhooks/{publicId}/deliveries | Recent deliveries: status, attempts, the endpoint's last answer and the next retry. |