Getting StartedAPI Reference
Getting StartedAPI Reference
Help Center
Login
  1. Affiliates
  • Campaigns
    • Get All Campaigns
      GET
    • Get Campaign By ID
      GET
    • Create campaign
      POST
    • Update campaign
      PUT
    • Delete campaign
      DELETE
  • Affiliates
    • List affiliates
      GET
    • Get Affiliate By ID
      GET
    • Create Affiliate
      POST
    • Update Affiliate
      PUT
    • Delete Affiliate
      DELETE
  • Affiliate Links
    • Get Affiliate Link By Affiliate ID
      GET
    • Create Affiliate Link
      POST
    • Delete Affiliate Link
      DELETE
  • Comissions
    • Get All Commissions
      GET
    • Get Commission By ID
      GET
    • Create Commision
      POST
    • Update Commision
      PUT
    • Delete Commision
      DELETE
  • Referred Users
    • Get All Referred Users
      GET
    • Get Referred User by Email
      GET
    • Create Referred User
      POST
    • Update Referred User
      PUT
    • Delete Referred User
      DELETE
Getting StartedAPI Reference
Getting StartedAPI Reference
Help Center
Login
  1. Affiliates

Delete Affiliate

DELETE
/affiliates
Last modified:2025-12-29 13:00:30
Permanently deletes an affiliate identified by the specified affiliate ID.
This action is will completely remove the affiliate and all related data from the system.

This action will permanently delete:#

The affiliate record identified by the provided affiliate ID
All commission records and payout history associated with the affiliate
All referral links generated by the affiliate
All users referred by the affiliate and their referral attribution data

Request

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/affiliates' \
--header 'x-auth-referralstack: rs_live_e6761c15744c9be53be18802278fd3da751d03ce'

Responses

🟢200Success
application/json
Body

Example
{
    "status": 200,
    "message": "Affiliate deleted successfully"
}
🟠400Bad Request (Incorrect AffiliateId)
🟠401Unauthorized (Missing API Key)
Modified at 2025-12-29 13:00:30
Previous
Update Affiliate
Next
Get Affiliate Link By Affiliate ID
Built with