Skip to Content
TrackCrest Docs

Network API

Every endpoint under /api/v1/network. Use a pk_company_ key.

Finance

EndpointWhat it does
GET /api/v1/network/payouts/ledgerPending, payable, paid and rejected amounts per affiliate and currency.
GET /api/v1/network/affiliate-invoicesInvoices 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}/pdfThe invoice as a PDF.
GET /api/v1/network/advertiser-invoicesInvoices 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}/pdfThe invoice as a PDF.

Offers

EndpointWhat it does
GET /api/v1/network/offersOffers. Filters: status, advertiserId, category, visibility, q.
POST /api/v1/network/offersCreate 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}/eventsConversion events, with payout and revenue per event.
POST /api/v1/network/offers/{publicId}/eventsAdd a conversion event with its own payout and revenue.
GET /api/v1/network/offers/{publicId}/payout-rulesPer-affiliate, per-event and per-country payout overrides.
POST /api/v1/network/offers/{publicId}/payout-rulesAdd a payout override for some affiliates, an event or countries.
GET /api/v1/network/offers/{publicId}/creativesCreatives with download URLs.
GET /api/v1/network/offers/{publicId}/capsCapping rules and their usage this period.
GET /api/v1/network/offer-requestsAffiliate applications for offers. Filters: status, offerId, affiliateId.
PATCH /api/v1/network/offers/{publicId}/targetingReplace 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}/approveApprove an affiliate's offer request, with an optional note.
POST /api/v1/network/offer-requests/{publicId}/rejectReject an affiliate's offer request, with an optional note.
POST /api/v1/network/offer-requests/{publicId}/suspendSuspend an affiliate's offer request, with an optional note.
POST /api/v1/network/offer-requests/{publicId}/reinstateReinstate an affiliate's offer request, with an optional note.
POST /api/v1/network/tracking-linksA tracking link for an affiliate and offer, with optional sub IDs.

Partners

EndpointWhat it does
GET /api/v1/network/advertisersAdvertisers. Filters: status, q.
POST /api/v1/network/advertisersCreate 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/affiliatesAffiliates. Filters: status, manager, q. Payment details are never included.
POST /api/v1/network/affiliatesCreate 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

EndpointWhat it does
GET /api/v1/network/reports/summaryClicks, 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/revenueRevenue, payout and profit per day, week or month. Range up to a year (default 90 days).
GET /api/v1/network/reports/fraudFraud signals per offer, affiliate and signal type.

Traffic

EndpointWhat it does
GET /api/v1/network/conversionsRaw conversions, newest first, cursor-paged. Range up to 93 days (default 7).
POST /api/v1/network/conversionsRecord 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/clicksRaw 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/statusApprove, reject, set pending or mark payable up to 1000 conversions, with an optional reason. All or nothing.

Webhooks

EndpointWhat it does
GET /api/v1/network/webhooksWebhook subscriptions.
POST /api/v1/network/webhooksSubscribe 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}/testSend a webhook.test event now and see what the endpoint answered.
GET /api/v1/network/webhooks/{publicId}/deliveriesRecent deliveries: status, attempts, the endpoint's last answer and the next retry.

On this page