Skip to main content
GET
/
v1
/
affiliates
/
{id}
curl -X GET "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "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"
  }
}

Path Parameters

id
string
required
The unique identifier of the affiliate to retrieve

Query Parameters

expand
string
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 the affiliate object with the following fields:
success
boolean
Always true for successful responses
data
object
The affiliate object.
curl -X GET "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "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"
  }
}