Get Affiliate

Retrieve details for a single affiliate including commission breakdown.

GET/api/v1/affiliates/:id

Returns detailed information about a single affiliate partnership, including performance stats and a breakdown of pending and approved commissions.

Path parameters

ParameterTypeDescription
idrequired
stringThe partnership ID returned from the list endpoint or registration.

Example request

bash
curl https://anderro.com/api/v1/affiliates/part_abc123 \
  -H "x-api-key: sk_your_secret_key"

Responses

200Affiliate details with commission breakdown
json
{
  "data": {
    "id": "part_abc123",
    "status": "active",
    "referral_code": "jane-smith",
    "created_at": "2026-04-01T10:00:00.000Z",
    "affiliate": {
      "id": "ap_xyz789",
      "email": "[email protected]",
      "name": "Jane Smith"
    },
    "stats": {
      "clicks": 142,
      "conversions": 8,
      "earned_cents": 39200
    },
    "commissions": {
      "pending_count": 2,
      "approved_count": 5,
      "pending_amount_cents": 9800,
      "approved_amount_cents": 24500
    }
  }
}
404Affiliate not found
json
{
  "error": "Affiliate not found"
}