Skip to content

Update Affiliate ​

Approve, deactivate or change an affiliate: status, commission rate and note. It acts at once, with no preview; a status change emails the affiliate. Only the fields you pass change. A new rate applies to referrals created from now on.

Abilityfluent-affiliate/update-affiliate
MCP tool namefluent-affiliate-update-affiliate
GroupAffiliates
PermissionManage affiliates: manage_options, or manage_all_affiliates or manage_all_data
TypeWrite
RunsAffiliateTools::updateAffiliate

Input ​

ParameterTypeRequiredDescription
idintegerYesAffiliate id.
statusstringNoactive approves the affiliate; inactive stops new commissions. One of: pending, active, inactive.
notestringNoInternal note, shown to staff only. Replaces the note.
payment_emailstringNoRefused: where an affiliate is paid changes only in the admin screen.
bank_detailsstringNoRefused: where an affiliate is paid changes only in the admin screen.
rate_typestringNodefault: the site rate. flat: a fixed amount per referral. percentage: a share of the order. group: the rate of group_id. One of: default, group, flat, percentage. group needs Pro.
ratenumberNoRequired with rate_type flat or percentage. A percentage is 10 for 10%. Minimum 0.
group_id PROintegerNoRequired with rate_type group.

Annotations ​

HintValue
readonlyfalse
destructivefalse
idempotentfalse
openWorldHinttrue

Example request ​

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fluent-affiliate-update-affiliate",
    "arguments": {
      "id": 1
    }
  }
}

FluentAffiliate developer documentation