This document describes the API for the Operator to manage deals for affiliates
The default API URL is https://boapi.smartico.ai/ but depending on your setup it could be different. Check for the exact URL in the 'Settings' section.
Creating new deals for affiliates
The operator can use the HTTP POST method to build deals for specified affilite_id.
The platform supports the following deals:
exportenumAffDealType{ // Pure dealsCPL=1,CPA=2,RevShare_NetPL=4,RevShare_NetDeposit=8, // Hybrid dealsCPL_CPA=3,CPL_RevShare_NetPL=5,CPA_RevShare_NetPL=6,CPL_RevShare_NetDeposit=9,CPA_RevShare_NetDeposit=10,}
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.
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
CPA amount of - 10
Rev share percentage - 25
CPA FTD Qualifier - 30
Such a deal will correspond to the following configurations made from the platform BackOffice.
10 CPA with 25 FTD Qualifier, 25% rev share
Set default deal for affiliate
You can use the HTTP POST method to set a default deal for the affiliate.
Example of the call:
Example of the response:
Getting a list of deals for the affiliate
You can use the HTTP GET method to get a list of all deals for the affiliate
You need to pass affiliate_id; as a response, you will get a list of all deals, including the sub-deals. Example of the response
If you are interested only in the root level deals, you will need to take only deals with level_id: 1
{
"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
// parameters for setting the deal criteria
"match_brand_is": [123], // optional, if not passed, deal will be applicable for 'Any Brand'
}