Skip to content

Update Transaction ​

Record that you paid an affiliate: mark one payout transaction, or all processing ones of a payout (all_processing=true), as paid, or one back to processing. Two calls. A payment that bounced: if it is paid, set it to processing, then call remove-transaction; its referrals become unpaid again. A manual payout keeps no failed record; failed is set only by a payout gateway.

Abilityfluent-affiliate/update-transaction
MCP tool namefluent-affiliate-update-transaction
GroupPayouts
PermissionManage payouts: manage_options, or manage_all_payouts or manage_all_data
TypeWrite — two calls: preview, then confirm
RunsPayoutTools::setTransactionStatus

Input ​

ParameterTypeRequiredDescription
payout_idintegerYes
transaction_idintegerNoOne transaction of the payout. Required unless all_processing is true.
all_processingbooleanNotrue with status=paid and no transaction_id: mark every processing transaction of the payout paid.
statusstringYesOne of: paid, processing.
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-transaction 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
openWorldHinttrue

Example request ​

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

FluentAffiliate developer documentation