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": []
}
Affiliates
Send Affiliate Invitations
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": []
}
Sends invitation emails to the provided email addresses. Up to 25 emails can be sent in a single request. Existing affiliates and pending invitations are automatically skipped.
Request Body
Array of email addresses (1-25 items)Example:
["john@example.com", "jane@example.com"]Response
Show properties
Show properties
Array of created invitation objects
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?
⌘I