API for offers and statistics (affiliates)
Natalya Yefimenko avatar
Written by Natalya Yefimenko
Updated today

Before you begin

API for offers and statistics

Affise API provides you methods to work with offers: get access to them, get the list of them, add, edit, and delete postbacks, and so on. As for statistics: you can import one or more conversions via API, as well as see statistics on sub accounts.

You can find all API methods available to you in this API document section, here and here.

Offers list

Use this method to get the list of offers, which you're connected to (you can send traffic to them). You can filter by countries and other properties, and sort offers in the response.

πŸ”Ž When filtering by countries, n the response, you will see offers, where in at least one general targeting group there is the USA. You will see also offers, where all countries are allowed in at least one general targeting group.

The method: GET /3.0/partner/offers.

The request for getting offers for the USA:

https://api-rocketcompany.affise.com/3.0/partner/offers?api-key=4sdf87fsdfd8723lkjhrn324&countries[]=US

Connect to the offer

Use this method to request a connection to the offer.

The method: POST /3.0/partner/activation/offer

The cURL request:

curl --request POST \
--url https://api-rocketcompany.affise.com/3.0/partner/activation/offer \
--header 'api-key: 4sdf87fsdfd8723lkjhrn324' \
--header 'content-type: application/x-www-form-urlencoded' \
--cookie PHPSESSID=lqci0k9p1d4ft892gclhj9nokl \
--data offer_id=309108 \
--data 'comment=I want to work with this offer'

πŸ”Ž The system creates a new ticket for your request. Your account manager needs to check the ticket and approve/reject your request. You will find the result in the Support section.

Statistics by sub accounts

Use this method to get statistics by sub accounts for one offer per request.

πŸ”Ž You can see statistics only for the last seven days.

The method: GET /3.0/stats/getbysub.

The request for getting statistics per sub accounts:

https://api-rocketcompany.affise.com/3.0/stats/getbysub?api-key=4sdf87fsdfd8723lkjhrn324&filter[date_from]=2022-12-03&filter[date_to]=2022-12-10&filter[offer]=313910

Import multiply conversions

Use this method to import as many conversions to the affiliate panel as you need. On Affise, it is the only method of importing conversions for you.

πŸ”Ž The system automatically creates conversions with the Pending status. You can't adjust the status via API.

The method: POST /4.0/affiliate/conversions/import.

The cURL request for importing two conversions for the same offer and different IPs:

curl --request POST \
--url https://api-rocketcompany.affise.com/4.0/affiliate/conversions/import \
--header 'api-key: 4sdf87fsdfd8723lkjhrn324' \
--header 'content-type: application/x-www-form-urlencoded' \
--cookie PHPSESSID=lqci0k9p1d4ft892gclhj9nokl \
--data 'list[0][offer]=313910' \
--data 'list[0][action_id]=123456789' \
--data 'list[0][ip]=37.77.224.32' \
--data 'list[1][offer]=313910' \
--data 'list[1][ip]=51.195.0.23' \
--data 'list[1][action_id]=987654321'

⚠️ If you see the Access denied error, refer to your account manager.


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].

Did this answer your question?