Associates a Cashflow Group with a Goal for the purpose of Revenue calculations. In doing so, if the rules of the Cashflow Group match and the Affiliate belongs to the group, the revenue specified in this model will be used. Only applicable to Goals which have the "use_revenue_groups" field set to "1".
Name | Type | Description |
---|---|---|
cashflow_group_id | Array | ID of Cashflow Group object whose rules and affiliates will be used |
goal_id | Integer | The Goal to which this Revenue Group is assigned. Cannot be modified after creation. |
id | Integer | ID of unique, auto-generated object for this RevenueGroupGoal This parameter is non-writable |
percent | Nullable Decimal | The percent of the amount to revenue. Must be set if the Goal has a "revenue_type" of "cpa_percentage" or "cpa_both". |
rate | Nullable Decimal | A flat amount to revenue. Must be set if the Goal has a "revenue_type" of "cpa_flat" or "cpa_both". |