GetDailyTransactions Example

Below is an example page which will call GetDailyTransactions and display some information from it.
There is also a GetDailyTransactionsCSV function available.

For the technical details of the API call, click here.

You need to specify:

  • Your Merchant and Authentication codes
  • The date for the transactions you wish to check

  • PHP
  • C#
Loading ...
$token = $_POST["Token"];
if(is_null($token)) {
	$token = $_GET["token"];
 $auth = base64_encode("PriceBusterDVD_AU:MyPassword1!");
 $header = array();
 $header[] = 'Authorization: Basic '.$auth;
 $date = "14/08/2014";
 $ch = curl_init("".$date);
 //See the cURL documentation for more information:
 //We recommend using this bundle:
 curl_setopt( $ch, CURLOPT_CAINFO, "ca-bundle.crt");
 curl_setopt( $ch, CURLOPT_HTTPHEADER, $header);
 curl_setopt( $ch, CURLOPT_HEADER, 0);
 curl_setopt( $ch, CURLOPT_POST, 1);
 curl_setopt( $ch, CURLOPT_POSTFIELDS, $json_builder);
 curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 0);
 curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
 $response = curl_exec( $ch );
 curl_close ($ch);
 $json = json_decode($response, true);

There are other integration steps required for a complete integration. Return to the Integration Overview to understand and complete the remaining integration work.

dailyexample.txt · Last modified: 2017/10/24 10:03 (external edit)