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": {
"value": 1250,
"formatted": "$1,250.00",
"short": "1.25K",
"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": "john@example.com"
},
"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": []
}
Affiliates
Get Affiliate
Retrieve details of a specific affiliate by their unique code
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": {
"value": 1250,
"formatted": "$1,250.00",
"short": "1.25K",
"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": "john@example.com"
},
"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
The unique affiliate code (e.g.,
CREATOR123, PARTNER2025)Response
Response status message
Show properties
Show properties
Unique store affiliate identifier (e.g.,
saff_abc123xyz)Affiliate status:
active, inactive, or suspendedTotal number of visits through affiliate links
Total number of sales made through referrals
ISO 8601 timestamp of first referral visit
ISO 8601 timestamp of most recent referral visit
ISO 8601 timestamp when affiliate was suspended (if applicable)
Reason for suspension (if applicable)
ISO 8601 creation timestamp
ISO 8601 last update timestamp
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": {
"value": 1250,
"formatted": "$1,250.00",
"short": "1.25K",
"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": "john@example.com"
},
"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": []
}
Was this page helpful?
⌘I