Skip to Content
TrackCrest Docs

Affiliate API

Every endpoint under /api/v1/affiliate. Use a pk_aff_ key.

Account

EndpointWhat it does
GET /api/v1/affiliate/meYour profile, manager and the network's currency.

Finance

EndpointWhat it does
GET /api/v1/affiliate/payoutsYour balance per currency: pending, payable and paid.
GET /api/v1/affiliate/invoicesYour invoices.
GET /api/v1/affiliate/invoices/{publicId}
GET /api/v1/affiliate/invoices/{publicId}/pdfThe invoice as a PDF.
EndpointWhat it does
GET /api/v1/affiliate/tracking-linksYour tracking links.
POST /api/v1/affiliate/tracking-linksBuild a link for an offer you're approved for, with sub1–sub5 and an optional deep link. Nothing is stored: the values ride on the URL.

Offers

EndpointWhat it does
GET /api/v1/affiliate/offersOffers you can see, with your payout and application status. Filters: approved, category, country, q.
GET /api/v1/affiliate/offers/{publicId}One offer with its events (your payout per event) and creatives.
POST /api/v1/affiliate/offers/{publicId}/applyApply to run an offer, with an optional note. Public offers are approved at once.
GET /api/v1/affiliate/offer-requestsYour applications and their status.

Postbacks

EndpointWhat it does
GET /api/v1/affiliate/postbacksYour postbacks: global, or for one offer.
POST /api/v1/affiliate/postbacksAdd a postback: url (with macros such as {click_id}), optional offerId, event (Conversion, Click, Lead, Rejected, All) and trigger (Every, First, Unique).
PATCH /api/v1/affiliate/postbacks/{publicId}Change a postback. Fields left out stay as they are.
DELETE /api/v1/affiliate/postbacks/{publicId}
GET /api/v1/affiliate/postbacks/deliveriesRecent postback firings: the URL called, the HTTP status and any error.

Reports

EndpointWhat it does
GET /api/v1/affiliate/reports/summaryClicks, conversions, CR, payout and EPC. groupBy: up to 3 of day, hour, offer, country, event, subId1–subId5.
GET /api/v1/affiliate/conversionsYour conversions, newest first, cursor-paged: status, event, payout, sub IDs. Up to 93 days (default 7).
GET /api/v1/affiliate/clicksYour clicks, newest first, cursor-paged. Up to 31 days (default 1).

Webhooks

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

On this page