Retrieves aggregated statistics for campaign ambassadors, grouped by individual affiliate. This endpoint provides performance metrics including revenue, commission, order counts, and clicks for ambassadors within a specified date range.
| Parameter | Type | Description | Required |
|---|---|---|---|
start_date | String | Start date in MM/DD/YYYY format | Yes |
end_date | String | End date in MM/DD/YYYY format | Yes |
campaign_id | Integer | ID of the campaign to query | Yes |
page | Integer | Page number for pagination. Default is 1. | No |
per_page | Integer | Number of results per page. Default is 20. Maximum is 100. | No |
include_clicks | String | Set to true to include click data. Default is false. | No |
search | String | Search across email, first name, last name, or full name | No |
email | String | Filter by ambassador email(s). Supports comma-separated values | No |
first_name | String | Filter by ambassador first name (case-insensitive, partial match) | No |
last_name | String | Filter by ambassador last name (case-insensitive, partial match) | No |
| Field | Type | Description |
|---|---|---|
data | Array | Array of ambassador statistics objects |
data[].campaign_affiliate_id | Integer | Unique identifier for the campaign affiliate relationship |
data[].user_id | Integer | Unique identifier for the user/ambassador |
data[].email | String | Ambassador’s email address |
data[].first_name | String | Ambassador’s first name |
data[].last_name | String | Ambassador’s last name |
data[].creator_name | String | Full name of the ambassador (first + last) |
data[].revenue | Number | Total revenue generated in dollars (for the specified date range) |
data[].commission | Number | Total commission earned in dollars |
data[].orders_count | Integer | Total number of completed orders |
data[].clicks | Integer | Total number of unique link clicks. Default is 0 unless include_clicks=true |
data[].refund_amount | Number | Total refunded/canceled order amount in dollars |
data[].joined_campaign_date | String | Date the ambassador joined the campaign (MM/DD/YYYY format) |
meta | Object | Pagination and query metadata |
meta.total_ambassadors | Integer | Total number of ambassadors matching the query (across all pages) |
meta.current_page | Integer | Current page number |
meta.per_page | Integer | Number of results per page |
meta.total_pages | Integer | Total number of pages available |
meta.start_date | String | Query start date |
meta.end_date | String | Query end date |
meta.campaign_id | String | Campaign ID queried |
search parameter searches across email, first name, last name, and full name:
start_date and end_date parameters filter tracking events by their occurred_at timestamp (when the sale or click happened), not by when the ambassador joined the campaign.
To analyze different time periods, make separate API calls with different date ranges:
start_date=12/01/2024&end_date=12/31/2024start_date=11/01/2024&end_date=11/30/2024start_date=01/01/2024&end_date=12/31/2024total_pages in the meta response to iterate through all pagesinclude_clicks=true when you specifically need click datasearch for broad queries across all name/email fieldsemail, first_name, or last_name for precise filteringBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Start date in MM/DD/YYYY format
End date in MM/DD/YYYY format
ID of the campaign to query
Page number for pagination. Default is 1.
Number of results per page. Default is 20. Maximum is 100.
x <= 100Search across email, first name, last name, or full name
Filter by ambassador email(s). Supports comma-separated values
Filter by ambassador first name (case-insensitive, partial match)
Filter by ambassador last name (case-insensitive, partial match)
Filter by tracking event status
all, paid, pending, canceled, due