Time to read: 5 min
The article covers the following topics:
First of all, to get started with API, you need to find your API-key. To do it, just navigate to the '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 the 'Settings' Tab -> 'Settings' -> 'Tracking domains' -> 'URLs' section - > 'Api URL':
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):
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.
- 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=132115' \
- 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 here.
You may also find the following articles helpful:
- Getting started
- Setting API Integration with Affiliate
- How to create an offer via API?
- My Affiliate Does Not See Offers Via API.
If you have more questions on how to approve Offers to Affiliate via API, feel free to contact the Affise Support Team via email@example.com or your Dedicated Account Manager.
Written by Anastasia Deryugina