Offer

Pass your token to receive offers.

Parameter Description Format Default value
affiliate_network_id Id affiliate network int -
currency currency read more "USD"
goal2 goal for lead2 false or goal object false
goal3 goal for lead3 false or goal object false
goal4 goal for lead4 false or goal object false
goal5 goal for lead5 false or goal object false
id offer ID int -
in_archive is it in the archive? 0 or 1 -
name offer name string -
payout type of payment 0 for manual or 1 for auto 0
payout_value value of payment float 0
url offer url string -
Goal
Parameter Description Format Default value
currency currency read more "USD"
payout type of payment 0 for manual or 1 for auto 0
payout_value value of payment string 0
Offer list
curl -H "token: your_token" 'https://api.might.io/offer'

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

{ "success": true, "data": [ { "affiliate_network_id": 4, "currency": "USD", "goal2": false, "goal3": false, "goal4": false, "goal5": false, "id": 1, "in_archive": 0, "name": "offer1", "payout": 0, "payout_value": 0, "url": "https://google.com" }, { "affiliate_network_id": 4, "currency": "USD", "goal2": { "currency": EUR, "payout": "0", "payout_value": "1", }, "goal3": false, "goal4": false, "goal5": false, "id": 2, "in_archive": 0, "name": "offer2", "payout": 0, "payout_value": 0, "url": "https://www.yahoo.com" }, ... ], }

Object description

Get offer by ID
curl -H "token: your_token" 'https://api.might.io/offer/your_offer_id'

Where:

  • your_offer_id - offer ID

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

{ "success": true, "data": { "affiliate_network_id": 4, "currency": "USD", "goal2": false, "goal3": false, "goal4": false, "goal5": false, "id": 1, "in_archive": 0, "name": "offer1", "payout": 0, "payout_value": 0, "url": "https://google.com" }, }

Object description

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

Where:

  • your_request_body - offer JSON object
    { "affiliate_network_id": 4, "currency": "USD", "goal2": false, "goal3": false, "goal4": false, "goal5": false, "name": "offer3", "payout": 0, "payout_value": 0, "url": "http://mysite.com" }
  • Parameters currency, currency, name, payout, payout_value, url is mandatory

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

{ "success": true, "data": { "id": 5, "affiliate_network_id": 4, "currency": "USD", "goal2": false, "goal3": false, "goal4": false, "goal5": false, "in_archive": 0, "name": "offer3", "payout": 0, "payout_value": 0, "url": "http://mysite.com" }, }

Object description

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

Where:

  • your_request_body - offer JSON object, which must contain an offer ID
    { "name": "new name", "currency": "EUR", "id": your_offer_id }
  • your_offer_id - offer ID
  • Parameter ID is mandatory

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

{ "success": true, "data": { "id": 5, "affiliate_network_id": 4, "currency": "EUR", "goal2": false, "goal3": false, "goal4": false, "goal5": false, "name": "new name", "payout": 0, "payout_value": 0, "url": "http://mysite.com" }, }

Object description