Skip to content

Update Referrals ​

Set the status of up to 100 referrals at once, for example approve pending ones (status=unpaid) or reject them. Two calls: preview, then confirm. Paid, processing or payout-held referrals are refused, and the error lists them.

Abilityfluent-affiliate/update-referrals
MCP tool namefluent-affiliate-update-referrals
GroupReferrals
PermissionManage referrals: manage_options, or manage_all_referrals or manage_all_data
TypeWrite — two calls: preview, then confirm
RunsReferralTools::updateReferrals

Input ​

ParameterTypeRequiredDescription
idsinteger[]YesReferral ids, from list-referrals. At most 100 items.
statusstringYesunpaid: approved and owed, goes into the next payout. rejected: no commission. pending: back to waiting for approval. One of: unpaid, rejected, pending.
confirmstringNoLeave it out to get a preview and a confirm value. Send that value back only after the person agreed to the preview.

Two-step confirmation ​

A call without confirm changes nothing. It returns needs_confirmation: true, a preview of the change, and a confirm value. Show the preview to the person. After they agree, call update-referrals again with the same arguments and that confirm value. The value stays valid for at least 15 minutes, only while what the preview showed is unchanged, and only once. A stale value fails with invalid_param on confirm, and the error carries the new preview and confirm value. See Conventions.

Annotations ​

HintValue
readonlyfalse
destructivefalse
idempotenttrue
openWorldHintfalse

Example request ​

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "fluent-affiliate-update-referrals",
    "arguments": {
      "ids": [
        1,
        2
      ],
      "status": "unpaid"
    }
  }
}

FluentAffiliate developer documentation