Syntax

updateAffiliateCommission( affiliate_id, product_ids, data=[] )

Changes the affiliate commission(s).

If product_ids is not “all” and no affiliations have been set up for some products, then they will be recreated.

Access rights

Full access required.

Arguments

affiliate_id – the ID or the name of the affiliate

product_ids – comma-separated list of product IDs for which the commission should be changed. Or “all” for all products.

data – data record with the changes with the following fields (all optional):

  • commission_rate – percentage of the affiliate commission
  • commission_fix – commission amount (in the currency e.g. EUR)
  • commission_currency – currency of the commission amount (if specified)
  • approval_status – new, approved, rejected, pending

Return data

none

See also