Home

PHP

Get not joined programs

If you want to search or browse through all available merchants in our catalog for the programs that you haven't yet established a relationship with (the programs that have the status "not joined"), you can use this feature. Thus, this call will provide you an unique ID, a logo, a general description, a URL and a list of programs associated with the merchant.

API Function: get_not_joined

Parameters:

Name Type Description
username string Your API username. You should have received this with your account
subscription_id string Your Subscription ID. You can copy or regenerate it from your API management interface.
country_id numeric The ID of the country to return descriptions for. This field must be always equal or greater than 1
Filters
offset numeric Enter the start point from where the API should return the rows
limit numeric Enter the number of rows that API should return.

 

Response fields:

Name Type Description
merchant_id numeric The unique ID associated with the merchant
merchant_name string The merchant's name
merchant_logo string The merchant logo url
max_commissions scalar An array with max comissions for every category
merchant_description string The merchant's description
merchant_url string A link pointing to the merchant's website
programs list a list of programs associated with this merchant. Each program containing the fields bellow.

 

Name Type Description
program_id string The unique ID associated with this program
network_id numeric The affiliate network to which the program belongs to
program_name string The program's name
program_status string The status of the program {joines, pending, not applied, rejected}
              
              
              
              
<?php   
$api_username      = '*******';
$api_subscription  = '*******';
$api_country_id    = 221; // replace with your country id
$offset            = 0;

try
{
        $client    = new SoapClient('https://synced.io/api/v2?wsdl');
        $limits = array("offset" => $offset, "limit" => "100");
        $response  = $client->get_not_joined_programs($api_username, $api_subscription, $api_country_id, $limits);			
}
catch(Exception $e)
{
        echo $e->getMessage();
}    


if(!empty($merchant))
{
    print_r($response);
}
?>