curl -X GET "https://api.affonso.io/v1/program/notifications" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"data": [
{
"id": "ns_abc123",
"email_type_id": "nt_welcome",
"is_active": true,
"custom_subject": "Welcome to our affiliate program!",
"custom_body": null,
"type": {
"name": "Welcome Email",
"description": "Sent when an affiliate is approved",
"icon": "mail",
"is_customizable": true,
"target_audience": "affiliate"
}
},
{
"id": null,
"email_type_id": "nt_payout",
"is_active": true,
"custom_subject": null,
"custom_body": null,
"type": {
"name": "Payout Notification",
"description": "Sent when a payout is processed",
"icon": "dollar-sign",
"is_customizable": true,
"target_audience": "affiliate"
}
}
]
}
Get all notification types with your team-specific settings
curl -X GET "https://api.affonso.io/v1/program/notifications" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"data": [
{
"id": "ns_abc123",
"email_type_id": "nt_welcome",
"is_active": true,
"custom_subject": "Welcome to our affiliate program!",
"custom_body": null,
"type": {
"name": "Welcome Email",
"description": "Sent when an affiliate is approved",
"icon": "mail",
"is_customizable": true,
"target_audience": "affiliate"
}
},
{
"id": null,
"email_type_id": "nt_payout",
"is_active": true,
"custom_subject": null,
"custom_body": null,
"type": {
"name": "Payout Notification",
"description": "Sent when a payout is processed",
"icon": "dollar-sign",
"is_customizable": true,
"target_audience": "affiliate"
}
}
]
}
true for successful responsesShow Notification Setting Properties
null if using defaultscurl -X GET "https://api.affonso.io/v1/program/notifications" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"data": [
{
"id": "ns_abc123",
"email_type_id": "nt_welcome",
"is_active": true,
"custom_subject": "Welcome to our affiliate program!",
"custom_body": null,
"type": {
"name": "Welcome Email",
"description": "Sent when an affiliate is approved",
"icon": "mail",
"is_customizable": true,
"target_audience": "affiliate"
}
},
{
"id": null,
"email_type_id": "nt_payout",
"is_active": true,
"custom_subject": null,
"custom_body": null,
"type": {
"name": "Payout Notification",
"description": "Sent when a payout is processed",
"icon": "dollar-sign",
"is_customizable": true,
"target_audience": "affiliate"
}
}
]
}
Was this page helpful?