GET
/statistics/conversions/revenue
Get conversions revenue by day
Statistics
Description
Retrieve daily net revenue for your affiliate business.
Returns a time series of net commissions earned grouped by day (after platform fees), with zero values filled in for days with no data.
Authentication Required: User must be authenticated and have the 'affiliate' role.
Users can only query their own affiliate_id.
Parameters
affiliate_id
integer
query
required
The affiliate ID to get conversions revenue statistics for
start_date
string
query
Start date for the statistics range (ISO 8601 format). Defaults to 30 days ago.
end_date
string
query
End date for the statistics range (ISO 8601 format). Defaults to current time.
reward_status
string
query
Filter conversions by reward status. When omitted, all reward statuses are included.
Responses
200
Successful response with daily conversions revenue
application/jsonstatusstring
Example:
successdataarray [object]
Array of daily revenue totals, including days with zero revenue
datestring (date)
Example:
2024-01-01revenuenumber (float)
Example:
12.5Example:
{
"status": "success",
"data": [
{
"date": "2024-01-01",
"revenue": 12.5
},
{
"date": "2024-01-02",
"revenue": 0
},
{
"date": "2024-01-03",
"revenue": 34.75
},
{
"date": "2024-01-04",
"revenue": 8.2
}
]
}
401
Authentication required
application/jsonExample:
{
"status": "error",
"message": "Not authenticated or insufficient permissions"
}
500
Internal server error
application/jsonstatusstring
Example:
errormessagestring
Example:
Failed to fetch conversions revenue statisticserrorstring
Example:
Connection error