Home

PHP

API Overview

Before you get started:

You will need your username and subscription ID. Your API authentication data is your Account once logged in. Every API requires individual authentication data. It is necessary for you to select at least one network and one category from your feed configuration in order for the API to return the data for a specific merchant.

Now you are ready to make API calls. There are several types of calls, ones which are common to both APIs and others which are specific to the cashback API. These are:

Search cashback offers: Return all cashback offers provided by the merchants you joined.
Categories listing: Search our database and will return all categories you joined.
Clicks Report: Return statistics regarding the clicks made through your affiliate links.
Search Countries: Get a list of all available countries. You can use this data to filter the results in your offers feed.
Commissions Report: Return all commissions that you have registered on your joined merchants.
Impressions Report: Return statistics regarding the impressions registered for your published offers.
Get Merchant Returns all details for a merchant, it's programs and cashback offers (if available)
Search Merchants: Return all available merchants
Search Networks: List all available affiliate networks.
Search online offers: Return all online and voucher offers provided by the merchants you joined.
Search subcategories: Obtain a list with subcategories for online offers.

Accessing the API:

The API implement the SOAP standard and is platform and programming language independent. It's WSDL end point can be located here:

https://synced.io/api/v2?wsdl - the number of available functions depends on your subscription type.

To invoke the API you will need your username and subscription ID.

API fair usage limit

Our system provides for fair usage of up to 5,000 API server requests per month with standard subscription.

A server call request is each time Dealium servers are contacted with your username and subscription ID. API may return many results on a query but it is counted as one call. It is recommended that you blacklist bots from your websites to reduce usage costs.

What you can do with our APIs

Our API was created and designed for affiliate marketers who are either developers or have development resources to work with.

With the Deals Distributed API you can create anything from a dynamic super mall to a range of niche coupon sites, and have complete control over the code including HTML and the content calls to populate your websites.

Sub IDs (affiliate tracking)

You can use affiliate-defined sub-ID tracking to help you manage your sales. Each network gives this "sub ID" tracking a different name, but in a nutshell it appends the text (or code) that you want to the URL. You can then run reports at the network level for that sub-ID.

Short Links

We provide the following structure for our API short links. https://synced.io/visit/p?uid={user_id}&pid={program_id}&cid={country_id}&source={site_id}

If you need to track converssions based on the member ids, you can add information in the subid1/subid2/subid3/subid4/subid5 parameters. For instance, you can add the memberid in the subid1 parameter. All the information you entered will be available in the commission report: https://synced.io/visit/p?uid={user_id}&pid={program_id}&cid={country_id}&source={site_id}&subid1={subid1}&subid2={subid2}&subid3={subid3}&subid4={subid4}

The member ID and the rest of the data you send to the short links needs to contain only numbers and letters

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

try
{
        $client = new SoapClient('https://synced.io/api/v2?wsdl');			
}
catch(Exception $e)
{
        echo $e->getMessage();
        exit;
}                                    

?>