Skip to main content
GET
https://api.chariow.com/v1
/
affiliates
/
{affiliateCode}
curl -X GET "https://api.chariow.com/v1/affiliates/CREATOR123" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "message": "Affiliate retrieved successfully",
  "data": {
    "id": "saff_xyz789abc",
    "status": "active",
    "source": {
      "label": "Invitation",
      "description": "Joined via invitation",
      "value": "invitation"
    },
    "total_visits": 150,
    "total_sales": 25,
    "total_earnings": {
      "amount": 125000,
      "formatted": "$1,250.00",
      "currency": "USD"
    },
    "first_visit_at": "2025-01-16T09:00:00+00:00",
    "last_visit_at": "2025-01-25T14:30:00+00:00",
    "suspended_at": null,
    "suspended_reason": null,
    "account": {
      "id": "aff_abc123def",
      "pseudo": "creative_studio",
      "country": {
        "code": "US",
        "name": "United States"
      },
      "status": "active",
      "user": {
        "name": "John Doe",
        "email": "[email protected]"
      },
      "created_at": "2025-01-15T10:30:00+00:00"
    },
    "created_at": "2025-01-15T10:30:00+00:00",
    "updated_at": "2025-01-25T14:30:00+00:00"
  },
  "errors": []
}
Retrieves detailed information about a specific affiliate by their unique affiliate code. This endpoint returns comprehensive affiliate information including their account details, performance statistics, and earnings.

Path Parameters

affiliateCode
string
required
The unique affiliate code (e.g., CREATOR123, PARTNER2025)

Response

message
string
Response status message
data
object
errors
array
Array of error messages (empty on success)
curl -X GET "https://api.chariow.com/v1/affiliates/CREATOR123" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "message": "Affiliate retrieved successfully",
  "data": {
    "id": "saff_xyz789abc",
    "status": "active",
    "source": {
      "label": "Invitation",
      "description": "Joined via invitation",
      "value": "invitation"
    },
    "total_visits": 150,
    "total_sales": 25,
    "total_earnings": {
      "amount": 125000,
      "formatted": "$1,250.00",
      "currency": "USD"
    },
    "first_visit_at": "2025-01-16T09:00:00+00:00",
    "last_visit_at": "2025-01-25T14:30:00+00:00",
    "suspended_at": null,
    "suspended_reason": null,
    "account": {
      "id": "aff_abc123def",
      "pseudo": "creative_studio",
      "country": {
        "code": "US",
        "name": "United States"
      },
      "status": "active",
      "user": {
        "name": "John Doe",
        "email": "[email protected]"
      },
      "created_at": "2025-01-15T10:30:00+00:00"
    },
    "created_at": "2025-01-15T10:30:00+00:00",
    "updated_at": "2025-01-25T14:30:00+00:00"
  },
  "errors": []
}