Home

PHP

Merchants

              
              
              
              
<?php   
$api_username      = '*******';
$api_subscription  = '*******';

$api_network_id    = 0;   // replace with your network id
$api_category_id   = 0;   // replace with your category id
$api_country_id    = 221; // replace with your country id

$api_exclude_network_id = 0; // replace with network id you want to exclude

try
{
        $client    = new SoapClient('https://synced.io/api/v2?wsdl');
        $merchants = $client->get_merchants($api_username, $api_subscription, $api_network_id, $api_country_id, $api_category_id, $api_exclude_network_id);			
}
catch(Exception $e)
{
        echo $e->getMessage();
}    


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