Time to read: 5 min

The article covers the following topics:

General Info

First of all, to get started with API, you need to find your API-key. To do it, just navigate to 'Users' Tab - > 'Users management' -> 'User edit page':

Only the General manager has permission to get the 'User edit page'.

Next thing you need is API URL, you can find it in Settings tab -> Settings -> Tracking domains -> Default URL's tab.

Find out more about where you can find your/Affiliate's API-key and API URL here.

API Request Structure:

GET/POST + api domain + path + ? + api-key=189471975956279174174.

It should be noted that header content-type - application/x-www-form-urlencoded is used on an ongoing basis, and content-type - multipart/form-data is used for uploading files (logo, creative files).

To approve Offers to the Affiliate, make sure that your Affiliate is in "Active" status. To check the Affiliate status, you need to navigate to the 'Affiliate managing (admin methods)' section in the API Doc and use the 'Get Affiliate' method (follow the link):

chrome-capture__68_.gif

Note that if the Affiliate has "Banned", "On moderation", or "Not active" status, he/she will not see offers.

To approve Offers to the Affiliate, make sure that the offer is in "Active" status, not "Paused" or "Disabled". "Paused" and "Disabled" offers are not visible for the affiliates.

To check the Offer status, you need to navigate to the 'Offers' section in the API Doc and use the 'Offer by id' method (follow the link):

chrome-capture__70_.gif

Enable Affiliate

To enable the Affiliate for Offer (-s), you need to navigate to the 'Offer managing (admin methods)' section in the API Doc and use the 'Enable Affiliate' method (follow the link):

chrome-capture__72_.gif

Where,

  • offer_id[] - required parameter. You may enable the Affiliate for one specific Offer, or several Offers. cURL example:

curl --location --request POST 'https://api-rocketcompany.affise.com/3.0/offer/enable-affiliate' \
--header 'api-key: bf09c801ff9b95b14ac8e17d6e111111' \
--header 'Content-Type: multipart/form-data' \
--form 'offer_id[]=132118' \
--form 'offer_id[1]=132115' \
--form 'pid=15'
  • pid - required parameter. Enter here the Affiliate ID.

  • notice - optional parameter. You may send a notification for the Affiliate.

If this does not work for you, find out more about why your Affiliate does not see Offers via API

You may also find the following articles helpful:


If you have more questions on how to approve Offers to Affiliate via API, feel free to contact the Affise Support Team via [email protected] or your Dedicated Account Manager.

Did this answer your question?