When you are doing integration via API, as an affiliate, you might counter a basic problem, how to pull offers.


In this article, we will introduce how to pull offers in two statuses, one is public offer, the other is required approval offer. Since private offer is unique, we won’t discuss here.


Public Offer


We divide pulling offers into three steps:


Step 1: Get Public Offer IDs

https://{your adv’s API domain}/aff/v1/batches/offers?filters[offer_approval]=2&filters[status]=active

By the above link,  you will fetch the public offer IDs.


Step 2: Get Tracking Link of Public offers

https:// {your adv’s API domain}/aff/v1/batches/offers/tracking_links/1,2,3

Replace red color part with your offer IDs, using comma to separate numbers.


Step 3: Get Your Available Offers Details

https:// {your API domain}/aff/v1/batches/offers?type=personal&filters[status]=active&offset=1&limit=50


Require Approval Offer

 

Step 1: Get Public Offer IDs

https:// {your API domain}/aff/v1/batches/offers?filters[offer_approval]=1&filters[status]=active


Step 2: Get Tracking Link of need approval offers

https:// {your adv’s API domain}/aff/v1/batches/offers/tracking_links/1,2,3

Replace red color part with your offer IDs, using comma to separate numbers.


Step 3: Get Your Available Offers Details

https:// {your API domain}/aff/v1/batches/offers?type=personal&filters[status]=active&offset=1&limit=50


Some explanations of parameters are as follows:

type=personal:  Access offers which can be promoted;

filters[status]=active:  Filter offers which are in active status;

limit=50:  One page with 50 results (50 is maximum);

offset=1:  Request result of the first page