v1

latestOpenAPI 3.0.12026-08-062532117.6 KB

Delete affiliates

Permanently deletes an affiliate from the program, along with the records that cascade from them (their affiliate links, referrals, sales and commissions). This cannot be undone.

affiliateId accepts either the affiliate's UUID or their email address. The request succeeds with the same response even when nothing matched, so check the affiliate exists first if that matters to you. Fires the affiliate.deleted webhook.

delete/affiliates

Request body

affiliateIdstring required

The ID of the affiliate to delete. An affiliate email address is also accepted.

Response

The affiliate was deleted.

messagestring

Confirmation message