Query the API against cashback offers from joined merchants on your networks. The response returns information about the commission rates, the types of purchases that are rewarded with a commission (i.e, all purchases, purchases made by new customers, all subscriptions, ticket purchases, all bookings, books purchases, toys purchases, etc.) alongside with the currency of the percentage of the commission. A cashback offer has an affiliate link associated to it.
API Function: get_cashback_offers
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. |
| merchant_id | numeric |
The ID of the desired merchant. You can use this parameter to get cashback offers provided by a specific merchant. To obtain a list of merchants please read the "Merchants" section. |
| country_id | numeric |
The ID of the desired country . Use this parameter to get cashback offers for a specific country. |
| has_postback | numeric |
Use this parameter = 1 to get only cashback offers which support postback reporting. |
| allow_cashback_sites | numeric |
Use this parameter = 1 to get only cashback offers from advertisers which allow incentive traffic. |
| no_purchase | numeric |
Use this parameter = 1 to get only cashback offers which don`t need any purchase |
| Name | Type | Description |
| offer_id | numeric | The unique ID associated with the cashback offer |
| merchant_id | numeric | The unique ID of the merchant linked to the current cashback offer |
| program_id | numeric | The unique ID of the program linked to the current cashback offer |
| program_category_id | numeric | The unique ID of the category linked to the current cashback offer program |
| country_id | numeric | The unique ID of the country linked to the current cashback offer |
| title | string | Cashback Offer Title |
| offer_currency | string | Cashback Offer Currency or % sign if the value is a percent |
| offer_value | float | Value of the cashback offer |
| affiliate_url | string | Url which redirect an user to the merchant site through the affiliate network linked to the cashback offer |
| category_id | numeric | The unique ID associated with the category |
| region_currency | string | If you have requested the cashback offers for a specified country this field will contain the country currency |
| region_value | numeric | If you have requested the cashback offers for a specified country this field will contain the cashback value converted on the local currency |
<?php
$api_username = '*******';
$api_subscription = '*******';
$api_merchant_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_has_postback = 0; // set this to 1 to show only offers which support postback
$api_allow_cashback_sites = 'all'; // all - return all offers, allow - return only advertisers which allow cashback sites, not allow - return only advertisers which not allow cashback sites
$api_no_purchase = 0; // set this to 1 if you want to get only cashback offers which don't require a purchase
try
{
$client = new SoapClient('https://synced.io/api/v2?wsdl');
$cashback = $client->get_cashback_offers($api_username, $api_subscription, $api_merchant_id, $api_country_id, $api_has_postback, $api_allow_cashback_sites, $api_no_purchase );
}
catch(Exception $e)
{
echo $e->getMessage();
}
if(!empty($cashback))
{
print_r($cashback);
}
?>