Update a commission
Updates a commission’s amount, comment, approved and/or conversion_sub_amount. Send at least one of them. Fires Commission Updated triggers (yours and the affiliate’s). An empty comment clears it. approved takes true or false but can’t return a commission to pending.
A new conversion_sub_amount (regular and recurring commissions) also sets the conversion’s amount to the sum of its regular commissions’ sub-amounts. With one regular commission on the conversion, its commission amounts are recalculated. With several, they stay as they are unless the sub-amounts still add up to the previous conversion amount.
In archived programs only approved may change (409 program_archived). On accounts using Tapfiliate Pay, an approved commission’s amount and status are frozen (409 commission_approved). Once a payout has failed because your Tapfiliate Pay balance was too low, this call can’t approve a commission until the balance covers the failed payouts (409 commission_unfunded). Finalized commissions return 403.
Setting amount or conversion_sub_amount, or changing the comment, requires the Manage programs team permission. Setting approved requires the Approve commissions team permission. If the request sets a field you have no permission for, nothing is changed and it returns 403.