affiliate.removed

Fired when an affiliate is removed from your program.

POSTYour webhook URL

The affiliate.removed event is triggered when an affiliate is removed from your program, through any removal path: the dashboard, single or bulk removal API, or the affiliate update API with status: "removed". Delivery requires the event to be enabled in your webhook settings. The affiliate's referral links will stop working after removal.

Payload

json
{
  "id": "evt_cm1abc2def3",
  "event": "affiliate.removed",
  "created_at": "2026-04-08T12:00:00.000Z",
  "data": {
    "affiliate": {
      "email": "[email protected]",
      "name": "Jane Smith",
      "referral_code": "jane-smith"
    },
    "product": {
      "id": "cuid_abc123",
      "name": "My SaaS"
    }
  }
}

Payload fields

ParameterTypeDescription
idrequired
stringUnique event ID (prefixed with evt_).
eventrequired
stringAlways "affiliate.removed" for this event.
created_atrequired
stringISO 8601 timestamp of when the event occurred.
data.affiliate.emailrequired
stringEmail of the removed affiliate.
data.affiliate.name
stringName of the affiliate (may be null).
data.affiliate.referral_coderequired
stringThe affiliate's referral code.
data.product.idrequired
stringYour Anderro product ID.
data.product.namerequired
stringYour product name in Anderro.

Example handler

javascript
app.post("/webhooks/anderro", (req, res) => {
  const { event, data } = req.body;

  if (event === "affiliate.removed") {
    console.log(`Affiliate removed: ${data.affiliate.email}`);

    // Revoke affiliate-specific access
    // Archive referral data
    // Notify internal team
  }

  res.status(200).send("OK");
});