curl -X DELETE "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"message": "Affiliate deleted successfully"
}
Affiliates
Delete Affiliate
Delete an affiliate user and optionally their associated user account
DELETE
/
v1
/
affiliates
/
{id}
curl -X DELETE "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"message": "Affiliate deleted successfully"
}
This action is irreversible. All associated data including referrals, commissions, and partnerships will be permanently deleted. A webhook event will be emitted before deletion.
Path Parameters
string
required
The unique identifier of the affiliate to delete
Response
The response confirms successful deletion.boolean
Always
true for successful deletionsstring
Confirmation message:
"Affiliate deleted successfully"curl -X DELETE "https://api.affonso.io/v1/affiliates/cmj8pptm10002p3010z8mk9ak" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"message": "Affiliate deleted successfully"
}
- The user has no other affiliate accounts
- The user does not own any teams
- The user is not a member of any teams
Was this page helpful?
