Affiliate Reports API
GET
/af/reportsThis endpoint is deprecated and may be removed in a future version.
Pull your own click, conversion and payout stats. Pick the columns with fields: dimension fields (date, campaignId, country, …) split the rows, metric fields (grossClicks, totalConv, affiliatePayout, …) are totalled for each row. The range is at most 31 days, both dates inclusive, in the timezone you choose. Only your own traffic is ever returned. Rate limit: 30 requests a minute and 500 a day per affiliate (shared with the other Affiliate API endpoints); a 429 carries Retry-After.
Authentication
API Key (header: X-Api-Key)
Domain ID — your network's tenant ID (header: X-Domain-Id)
Affiliate ID (header: X-Affiliate-Id)
No API key yet? Start a 14-day free trial and generate a key from your dashboard's security settings. No credit card required.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
startDate | query | string (date) | No | First day of the report, YYYY-MM-DD, in the chosen timezone. Defaults to endDate (a one-day report). |
endDate | query | string (date) | No | Last day of the report (inclusive), YYYY-MM-DD, in the chosen timezone. Defaults to today; a future date is treated as today. Must be on or after startDate, and the range may cover at most 31 days. |
timezone | query | string | No | GMT offset the dates and the date/hour columns are in, e.g. +05:30 for India or -05:00 for New York. URL-encode the plus sign as %2B (timezone=%2B05:30); an unencoded + is also accepted. Default +00:00 (UTC). |
campaignId | query | string | No | Only include these campaigns: one ID or several separated by commas. Omit for all campaigns. |
fields | query | array | No | Columns to return, comma separated; an unknown name is a 422. Dimensions (split rows): date, time, hour, month, campaignId, campaignName, currency, event, status, statusType, country, region, city, isp, proxy, ip, source, landingPage, creativeId, deviceType, deviceBrand, deviceId, browser, browserVersion, os, osVersion, clickId, affClickId, impressionId, subAffiliate1 … subAffiliate10. Metrics (totalled per row): grossClicks, clicks (same as grossClicks), uniqueClicks, approvedClicks, rejectedClicks, totalConv, convApproved, convPending, convRejected, affiliatePayout, affiliatePayoutApproved, affiliatePayoutPending, affiliatePayoutRejected, sale, saleApproved, salePending, saleRejected, affiliateModel, ctr, epc, cpc, ecpm, totalCr, approvedCr, pendingCr, rejectedCr, approvedClicksPerGrossConv. Default: date, campaignId, grossClicks, uniqueClicks, totalConv, convApproved, affiliatePayout, currency. |
sortBy | query | string | No | Column to sort rows by: clicks (gross clicks), uniqueClicks, totalConv, date, time or hour. Default clicks. |
sortOrder | query | string | No | asc (smallest first) or desc (largest first). Default desc. |
page | query | integer | No | Page of rows to return, starting at 1. meta.pagination.totalPages says how many there are. |
limit | query | integer | No | Rows per page, 1–1000. Default 100. |
Responses
| Status | Description |
|---|---|
| 200 | Report rows. Each row has exactly the requested fields; metrics are numbers. |
| 400 | Authentication headers missing (X-Domain-Id, X-Affiliate-Id, X-Api-Key) |
| 403 | Invalid credentials, API access not enabled for this affiliate, IP not on the allowlist, or API access not in the network's plan |
| 422 | A parameter is invalid, or the range is longer than 31 days |
| 429 | Rate limit reached (30 a minute / 500 a day). Wait for Retry-After seconds. |
| 500 | Server error |
Example data
[
{
"date": "2026-11-17",
"campaignId": 101,
"grossClicks": 1520,
"uniqueClicks": 1312,
"totalConv": 48,
"convApproved": 45,
"affiliatePayout": 225,
"currency": "USD"
},
{
"date": "2026-11-18",
"campaignId": 101,
"grossClicks": 1610,
"uniqueClicks": 1398,
"totalConv": 51,
"convApproved": 50,
"affiliatePayout": 250,
"currency": "USD"
}
]