To create a new deal for an affiliate, you need to make an HTTP POST request to the API endpoint with the following JSON body.
{
"affiliate_id": 64257,
"deal_type_id": 2, // One of deal types
"deal_group_name": "Some name of the deal",
// parameters specific for CPA deal
"cpa_amount": 10.5, // required, CPA amount that will be paid for affiliate
"qua_cpa_net_deposit": 10, // optional, NetDeposit qualifier amount
"qua_cpa_deposit": 20, // optional, Deposit qualifier amount
"qua_cpa_ftd": 10, // optional, FTD qualifier amount
"qua_cpa_volume": 100, // optional, Volume (wagering) qualifier amount
"qua_cpa_activity_count": 5 // optional, activities (bets) count qualifier amount
// parameters specific for CPA deal
"cpl_amount": 10.5, // required, CPL amount that will be paid for affiliate
"qua_cpl_volume": 100, // optional, Volume (wagering) qualifier amount
// parameters specific for RevShare deals (both P&L and NetDeposit based)
"rev_share_percentage": 25, // required, % of rev share
}
For hybrid deals, you can use a combination of parameters. For example, for CPA + RevShare_NetPL deal, the required fields will be cpa_amount and rev_share_percentage.
The API key to access the end-point is the same as described here
Example of the call that creates a CPA + RevShare_NetPL deal with