Skip to main content
GET
/
v1
/
program
/
groups
curl -X GET "https://api.affonso.io/v1/program/groups" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "success": true,
  "data": [
    {
      "id": "efbf3f29-efb1-4837-8924-7322606858f3",
      "name": "Default",
      "description": "Default affiliate group",
      "custom_website_url": null,
      "is_default": true,
      "created_at": "2024-01-10T08:00:00.000Z"
    },
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Premium Partners",
      "description": "High-performing affiliates with higher commissions",
      "custom_website_url": "https://partners.acme.com",
      "is_default": false,
      "created_at": "2024-03-01T12:00:00.000Z"
    }
  ]
}
List all affiliate groups for your program. Use the expand parameter to include nested incentive and multi-level incentive data.

Query Parameters

expand
string
Comma-separated list of fields to expand. Valid values: incentives, multi_level_incentives.

Response

success
boolean
Always true for successful responses
data
array
Array of group objects.
curl -X GET "https://api.affonso.io/v1/program/groups" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "success": true,
  "data": [
    {
      "id": "efbf3f29-efb1-4837-8924-7322606858f3",
      "name": "Default",
      "description": "Default affiliate group",
      "custom_website_url": null,
      "is_default": true,
      "created_at": "2024-01-10T08:00:00.000Z"
    },
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Premium Partners",
      "description": "High-performing affiliates with higher commissions",
      "custom_website_url": "https://partners.acme.com",
      "is_default": false,
      "created_at": "2024-03-01T12:00:00.000Z"
    }
  ]
}