curl -X POST "https://api.chariow.com/v1/affiliates/invitations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"emails": ["john@example.com", "jane@example.com"]
}'
{
"message": "2 invitations sent successfully",
"data": {
"invitations": [
{
"id": "affinv_abc123xyz",
"email": "john@example.com",
"status": "pending",
"expires_at": "2026-02-10T10:30:00+00:00",
"created_at": "2026-01-11T10:30:00+00:00"
},
{
"id": "affinv_def456uvw",
"email": "jane@example.com",
"status": "pending",
"expires_at": "2026-02-10T10:30:00+00:00",
"created_at": "2026-01-11T10:30:00+00:00"
}
],
"skipped": {
"already_affiliate": [],
"already_invited": []
}
},
"errors": []
}
Send invitation emails to potential affiliates
curl -X POST "https://api.chariow.com/v1/affiliates/invitations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"emails": ["john@example.com", "jane@example.com"]
}'
{
"message": "2 invitations sent successfully",
"data": {
"invitations": [
{
"id": "affinv_abc123xyz",
"email": "john@example.com",
"status": "pending",
"expires_at": "2026-02-10T10:30:00+00:00",
"created_at": "2026-01-11T10:30:00+00:00"
},
{
"id": "affinv_def456uvw",
"email": "jane@example.com",
"status": "pending",
"expires_at": "2026-02-10T10:30:00+00:00",
"created_at": "2026-01-11T10:30:00+00:00"
}
],
"skipped": {
"already_affiliate": [],
"already_invited": []
}
},
"errors": []
}
["john@example.com", "jane@example.com"]Show properties
curl -X POST "https://api.chariow.com/v1/affiliates/invitations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"emails": ["john@example.com", "jane@example.com"]
}'
{
"message": "2 invitations sent successfully",
"data": {
"invitations": [
{
"id": "affinv_abc123xyz",
"email": "john@example.com",
"status": "pending",
"expires_at": "2026-02-10T10:30:00+00:00",
"created_at": "2026-01-11T10:30:00+00:00"
},
{
"id": "affinv_def456uvw",
"email": "jane@example.com",
"status": "pending",
"expires_at": "2026-02-10T10:30:00+00:00",
"created_at": "2026-01-11T10:30:00+00:00"
}
],
"skipped": {
"already_affiliate": [],
"already_invited": []
}
},
"errors": []
}
Was this page helpful?