GET
/api/v1/affiliate/affiliates/
Query Parameters
Parameter | Type | Description |
---|---|---|
page |
int | Page number (default: 1) |
page_size |
int | Results per page (max: 100, default: 20) |
status |
string | Filter by status (pending , approved , rejected ) |
tier |
int | Filter by tier (1-5) |
search |
string | Search by name or email |
active |
boolean | Filter by active status |
Example Request
curl -X GET "https://rebusai.com/api/v1/affiliate/affiliates/?page=1&page_size=20&status=approved" \
-H "Authorization: Bearer sk_live_your_api_key"
Example Response
{
"success": true,
"data": {
"results": [
{
"id": 123,
"name": "John Smith",
"email": "john@example.com",
"status": {
"value": "approved",
"display": "Approved"
},
"tier": 2,
"commission_rate": 12.0,
"join_date": "2024-01-15T10:30:00Z",
"active": true,
"performance_metrics": {
"total_sales": 15000.00,
"total_commissions": 1800.00,
"conversion_rate": 12.5,
"total_clicks": 2500
}
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total_pages": 5,
"total_count": 95,
"has_next": true,
"has_previous": false,
"next_url": "/api/v1/affiliate/affiliates/?page=2",
"previous_url": null
}
},
"message": "Affiliates retrieved successfully",
"timestamp": 1640995200,
"api_version": "1.0"
}