ESTAGE Support
IdeasMy tickets

Remove an affiliate from every program

Permission affiliates:writeRate limit writesIdempotent with Idempotency-Key

Takes the person out of every program of the project and deletes their agreement acceptances for it. Earnings, payouts and debts stay; the contact itself is not deleted.

DELETEhttps://api.estage.com/v1/affiliates/{contactId}

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Path parameters

contactIdintegerrequired

Headers

Idempotency-Keystring≤ 255 chars

Any unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.

RequestcURL
curl --request DELETE \
  --url 'https://api.estage.com/v1/affiliates/contact-id' \
  --header 'ESTAGE-API-Key: est_live_your-api-key' \
  --header 'Idempotency-Key: your-unique-key'
OK
{
  "data": {
    "removed": true,
    "programs_detached": 2,
    "agreements_removed": 1
  }
}
Example. Errors are { error: { code, message, details } }.