Query Parameters
Page number for pagination. Must be a positive integer.
Number of results per page. Maximum value is 200. Default is 50.
Filter by partnership approval status. Valid values: pending, approved, rejected.
Search by name, email, or tracking ID. Case-insensitive partial matching. Maximum 100 characters.
Filter by affiliate group.
Filter by specific program (defaults to team’s program).
Sort field and direction in the format field:direction. Valid fields: createdAt, updatedAt, name, partnershipStatus. Valid directions: asc, desc. Example: createdAt:desc.
Filter affiliates created on or after this date. ISO 8601 date-time format (e.g., 2024-01-01T00:00:00Z).
Filter affiliates created on or before this date. ISO 8601 date-time format (e.g., 2024-12-31T23:59:59Z).
Comma-separated list of related data to include in the response. Valid values: promoCodes, commissionOverrides, invoiceDetails, payoutMethod. You can combine multiple values: promoCodes,payoutMethod.
Response
The response includes a paginated list of affiliates and pagination metadata.
Always true for successful responses
Array of affiliate objects. Each affiliate object has the same structure as the single affiliate response (see Get Affiliate endpoint). Show Data Object Properties
Unique identifier for the affiliate
The affiliate’s display name
The affiliate’s email address
Unique tracking ID for the affiliate
Source of the affiliate creation (e.g., "api", "dashboard")
Partnership status with the program: "PENDING", "APPROVED", "REJECTED", or null if no partnership exists
Whether the affiliate has completed their onboarding process
The affiliate program ID the affiliate is assigned to
The affiliate group ID if assigned, otherwise null
ISO 8601 timestamp of when the affiliate was created
Pagination metadata object containing:
page (integer): Current page number
limit (integer): Number of results per page
total (integer): Total number of affiliates matching the filters
totalPages (integer): Total number of pages
hasNextPage (boolean): Whether there is a next page
hasPrevPage (boolean): Whether there is a previous page
curl -X GET "https://api.affonso.io/v1/affiliates?limit=10&partnership_status=approved" \
-H "Authorization: Bearer sk_live_your_api_key"
Response
Response with Expand
{
"success" : true ,
"data" : [
{
"id" : "cmj8pptm10002p3010z8mk9ak" ,
"name" : "John Doe" ,
"email" : "[email protected] " ,
"tracking_id" : "PARTNER123" ,
"source" : "api" ,
"partnership_status" : "APPROVED" ,
"onboarding_completed" : true ,
"program_id" : "cm7xutqbb0001yfkcrnpextmp" ,
"group_id" : "efbf3f29-efb1-4837-8924-7322606858f3" ,
"created_at" : "2024-01-15T10:30:00Z"
}
],
"pagination" : {
"page" : 1 ,
"limit" : 10 ,
"total" : 50 ,
"totalPages" : 5 ,
"hasNextPage" : true ,
"hasPrevPage" : false
}
}