curl -X GET "https://api.chariow.com/v1/affiliates/CREATOR123" \
-H "Authorization: Bearer sk_live_your_api_key"
const response = await fetch('https://api.chariow.com/v1/affiliates/CREATOR123', {
headers: {
'Authorization': 'Bearer sk_live_your_api_key'
}
});
const { data } = await response.json();
console.log(data);
$ch = curl_init('https://api.chariow.com/v1/affiliates/CREATOR123');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer sk_live_your_api_key'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$data = json_decode($response, true);
import requests
response = requests.get(
'https://api.chariow.com/v1/affiliates/CREATOR123',
headers={'Authorization': 'Bearer sk_live_your_api_key'}
)
data = response.json()
{
"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": []
}
{
"message": "Affiliate not found",
"data": [],
"errors": []
}
{
"message": "Unauthenticated",
"data": [],
"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"
const response = await fetch('https://api.chariow.com/v1/affiliates/CREATOR123', {
headers: {
'Authorization': 'Bearer sk_live_your_api_key'
}
});
const { data } = await response.json();
console.log(data);
$ch = curl_init('https://api.chariow.com/v1/affiliates/CREATOR123');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer sk_live_your_api_key'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$data = json_decode($response, true);
import requests
response = requests.get(
'https://api.chariow.com/v1/affiliates/CREATOR123',
headers={'Authorization': 'Bearer sk_live_your_api_key'}
)
data = response.json()
{
"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": []
}
{
"message": "Affiliate not found",
"data": [],
"errors": []
}
{
"message": "Unauthenticated",
"data": [],
"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
string
required
The unique affiliate code (e.g.,
CREATOR123, PARTNER2025)Response
string
Response status message
object
Show properties
Show properties
string
Unique store affiliate identifier (e.g.,
saff_abc123xyz)string
Affiliate status:
active, inactive, or suspendedobject
integer
Total number of visits through affiliate links
integer
Total number of sales made through referrals
object
string|null
ISO 8601 timestamp of first referral visit
string|null
ISO 8601 timestamp of most recent referral visit
string|null
ISO 8601 timestamp when affiliate was suspended (if applicable)
string|null
Reason for suspension (if applicable)
object
string
ISO 8601 creation timestamp
string
ISO 8601 last update timestamp
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"
const response = await fetch('https://api.chariow.com/v1/affiliates/CREATOR123', {
headers: {
'Authorization': 'Bearer sk_live_your_api_key'
}
});
const { data } = await response.json();
console.log(data);
$ch = curl_init('https://api.chariow.com/v1/affiliates/CREATOR123');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer sk_live_your_api_key'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$data = json_decode($response, true);
import requests
response = requests.get(
'https://api.chariow.com/v1/affiliates/CREATOR123',
headers={'Authorization': 'Bearer sk_live_your_api_key'}
)
data = response.json()
{
"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": []
}
{
"message": "Affiliate not found",
"data": [],
"errors": []
}
{
"message": "Unauthenticated",
"data": [],
"errors": []
}
Was this page helpful?
⌘I