Skip to main content
DELETE
/
v1
/
referrals
/
{id}
curl -X DELETE "https://api.affonso.io/v1/referrals/ref_abc123" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "success": true,
  "data": {
    "id": "ref_abc123",
    "deleted": true
  }
}
This action is irreversible. All associated commission transactions will be permanently deleted. A webhook event will be emitted before deletion.

Path Parameters

id
string
required
The unique identifier of the referral to delete

Response

The response confirms successful deletion.
success
boolean
Always true for successful deletions
data
object
Deletion confirmation object.
curl -X DELETE "https://api.affonso.io/v1/referrals/ref_abc123" \
  -H "Authorization: Bearer sk_live_your_api_key"
{
  "success": true,
  "data": {
    "id": "ref_abc123",
    "deleted": true
  }
}