Skip to content

Create Affiliate ​

Make an existing WordPress user an affiliate. It does not create WordPress users. It acts at once: status=active emails the new affiliate as an approval would.

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

Input ​

ParameterTypeRequiredDescription
user_idintegerYesWordPress user id.
statusstringYesOne of: pending, active, inactive.
payment_emailstringNoWhere payouts go. Required when the site pays by PayPal or by hand (the default).
bank_detailsstringNoRequired when the site pays by bank transfer.
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-create-affiliate",
    "arguments": {
      "user_id": 1,
      "status": "pending"
    }
  }
}

FluentAffiliate developer documentation