▪️Deals management API

circle-info

This document describes the API for the Operator to manage deals for affiliates

triangle-exclamation

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:


export enum AffDealType {
    // Pure deals
    CPL = 1,
    CPA = 2,
    RevShare_NetPL = 4,
    RevShare_NetDeposit = 8,

    // Hybrid deals
    CPL_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

Last updated

Was this helpful?