Sign Up For An Account


Forgot Passwod?
Login

Subscribe

 
Knowledgebase
General (6)
Supplier (13)
Buyers (1)
FAQs (2)
Knowledgebase: Advertisers
Retrieving CPA Sales Using API
Posted by John D on 28 July 2015 05:14 PM

Now at ClickBetter, you as a vendor can retrieve your account CPA sales data using an API.

 

API URL:

 

http://clickbetter.com/getcpasale.php?userid=USERID&apikey=APIKEY&limit=LIMIT&startdate=STARTDATE&enddate=ENDDATE

 

where

 

USERID (required) is your ClickBetter username

 

APIKEY (required) is your ClickBetter account API Key

 

LIMIT (optional) is the number of how many sales records you want to retrieve.

 

STARTDATE (optional) is the date in format dd-mmm-yyyy (eg. 1-jan-2015) from which you wish to get the sales data

 

ENDDATE (optional) is the date in format dd-mmm-yyyy (eg. 31-jan-2015) up to which you wish to get the sales data

 

The above API URL with valid parameters will generate XML of your account CPA sales data which then you can parse with your choice of programming language.

 

<response>
<details>
<campid>CAMPAIGN ID</campid>
<campname>CAMPAIGN NAME/TITLE</campname>
<affiliate>AFFILIATE ID</affiliate>
<orderid>ORDER ID</orderid>
<amount>CPA SALE AMOUNT</amount>
<saledate>SALE DATE</saledate>
<vendortid>VENDOR TRANSACTION ID</vendortid>
<status>Sale OR Void</status>
<payoutdate>COMMISSION PAYOUT DATE</payoutdate>
</details>


<details>
<campid>CAMPAIGN ID</campid>
<campname>CAMPAIGN NAME/TITLE</campname>
<affiliate>AFFILIATE ID</affiliate>
<orderid>ORDER ID</orderid>
<amount>CPA SALE AMOUNT</amount>
<saledate>SALE DATE</saledate>
<vendortid>VENDOR TRANSACTION ID</vendortid>
<status>Sale OR Void</status>
<payoutdate>COMMISSION PAYOUT DATE</payoutdate>
</details>

..... and so on


</response>

 

where tags are self explanatory.

 

If you have any questions regarding this API, please email devsupport@clickbetter.com and for any other account related assistance, email support@clickbetter.com

 

LAST REVISED: 30-Dec-2015 by John D (added more parameters plus date range support)