View affiliates
List your Referhatch affiliates, referral codes and current commission rates. Use next_offset for the next page when has_more is true.
curl https://api.referhatch.com/v1/list_affiliates \
-H "Authorization: Bearer $API_KEY" \
-d '{}'Input
| Field | Type | Description |
|---|---|---|
limit | integer | Rows per page. |
offset | integer | Rows to skip. |
Output
| Field | Type | Description |
|---|---|---|
ok (required) | boolean | |
error | object | |
items | array | |
has_more | boolean | |
next_offset | integer |
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.
View attributed purchases
Retrieve purchases in your account with their affiliate, saved commission and currency. Filter by affiliate, exact order reference or an inclusive UTC date range. Use next_offset when has_more is true.