Tools
Report affiliate activity
Get separate visit counts, purchase counts, purchase totals and commission totals for each affiliate in an inclusive UTC date range. Purchases use the selected currency (USD by default); visits include all recorded visits. Affiliates with no activity return zeroes. Use next_offset for more affiliates. An affiliate ID outside your account returns ACCESS_DENIED without affiliate or activity details.
curl https://api.referhatch.com/v1/affiliate_report \
-H "Authorization: Bearer $API_KEY" \
-d '{"start_date":"your start date","end_date":"your end date"}'Input
| Field | Type | Description |
|---|---|---|
start_date (required) | string | First included date, YYYY-MM-DD. Dates use UTC. |
end_date (required) | string | Last included date, YYYY-MM-DD. Dates use UTC. |
affiliate_id | string | Affiliate ID in your account. Provide this or a referral code. |
currency | string | Purchase currency. Defaults to USD. Reports never combine currencies. |
limit | integer | Rows per page. |
offset | integer | Rows to skip. |
Output
| Field | Type | Description |
|---|---|---|
ok (required) | boolean | |
error | object | |
start_date | string | First included date, YYYY-MM-DD. Dates use UTC. |
end_date | string | Last included date, YYYY-MM-DD. Dates use UTC. |
currency | string | Purchase currency. Defaults to USD. Reports never combine currencies. |
items | array | |
has_more | boolean | |
next_offset | integer |