Affiliate network

Pass your token to receive affiliate networks

Parameter Description Format Default value
id affiliate network ID int -
name affiliate network name string -
in_archive is it in the archive? 0 or 1 -
white_list white list of ip addresses 0 for disabled or 1 for enabled 0
ips the list of IP addresses divided through "," string -
postback_statuses statuses of postbacks 0 for disabled or 1 for enabled 0
postback_statuses_confirmed confirmed postback statuses []string -
postback_statuses_hold hold statuses of postbacks []string -
postback_statuses_rejected rejected statuses of postbacks []string -
Affiliate network list
curl -H "token: your_token" 'https://api.might.io/affiliate_network'

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": [ { "duplicate_postbacks": 0, "id": 22, "in_archive": 0, "postback_statuses": 1, "white_list": 0, "name": "Affiliate network 1", "postback_statuses_confirmed":[ "confirmed", "success", ], "postback_statuses_hold":[ "hold", ], "postback_statuses_rejected":[ "reject", ], }, { "duplicate_postbacks": 0, "id": 23, "in_archive": 0, "postback_statuses": 0, "white_list": 0, "name": "Affiliate network 2", "postback_statuses_confirmed":[], "postback_statuses_hold":[], "postback_statuses_rejected":[], }, ... ], }

Object description

Get affiliate network by ID
curl -H "token: your_token" 'https://api.might.io/affiliate_network/your_affiliate_network_id'

Where:

  • your_affiliate_network_id - affiliate network ID

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "duplicate_postbacks": 0, "id": 23, "in_archive": 0, "postback_statuses": 0, "white_list": 0, "name": "Affiliate network 2", "postback_statuses_confirmed":[], "postback_statuses_hold":[], "postback_statuses_rejected":[], }, }

Object description

Create affiliate network
curl -H "token: your_token" -d 'your_request_body' -X POST 'https://api.might.io/affiliate_network'

Where:

  • your_request_body - affiliate network JSON object
    { "duplicate_postbacks": 1, "name": "your affiliate network", }
  • Parameter name is mandatory

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "duplicate_postbacks": 1, "id": 24, "in_archive": 0, "postback_statuses": 0, "white_list": 0, "name": "your affiliate network", "postback_statuses_confirmed":[], "postback_statuses_hold":[], "postback_statuses_rejected":[], }, }

Object description

Update affiliate network
curl -H "token: your_token" -d 'your_request_body' -XPUT 'https://api.might.io/affiliate_network'

Where:

  • your_request_body - affiliate network JSON object, which must contain an affiliate network ID
    { "id": your_affiliate_network_id, "name": "new name", }
  • your_affiliate_network_id - affiliate network ID
  • Parameter id is mandatory

After a successful execution of the request you will receive JSON object:

{ "success": true, "data": { "duplicate_postbacks": 1, "id": 24, "in_archive": 0, "postback_statuses": 0, "white_list": 0, "name": "new name", "postback_statuses_confirmed":[], "postback_statuses_hold":[], "postback_statuses_rejected":[], }, }

Object description