/
5.3 getPaymentTransactions()

5.3 getPaymentTransactions()

Retrieves payment transactions per given date range.

Returned array format can change without notice so please take this into account while processing.

public getPaymentTransactions( type $date_start , type $date_end [, type $status = NULL ] )

Parameters

TypeParameterDescription
stringdate_startDate start in MySQL format (example: '2012-10-09 10:30:29')
stringdate_endDate end in MySQL format (example: '2012-10-10 10:30:29')
stringstatusFilter by status - Leave empty or send any of the following statuses: 'PENDING','PROCESSED','FAILED','CANCELLED','ERROR','DENIED','IN PROGRESS'
stringcurrencyplayers currency code

Return Values

TypeNoticeDescription
arrayArray of Arrays in following formatarray ( 0 => array( 'id' => '50', 'username' => 'test', 'agent' => 'test', 'skin' => 'test', 'player_id' => '41420', 'agent_id' => '642', 'amount' => '1.00', 'start_balance' => '0.00', 'end_balance' => '0.00', 'email' => '', 'date_request' => '2012-10-09 10:19:44', 'date_processed' => '2012-10-09 10:19:45', 'status' => 'PENDING', 'type' => 'deposit', 'instrument' => 'wpay', 'instrument_transid' => '0', 'instrument_type' => '', 'message' => '', 'error_message' => 'Payments_Wpay CREDIT CARD NOT FOUNDEDKOCREDIT CARD NOT FOUNDED', 'postback' => '',))

Tags

REST REQUEST
Array
(
	[api_password] => xapitest
	[api_login] => xapitest
	[method] => getPaymentTransactions
	[date_start] => 2012-10-09 10:30:29
	[date_end] => 2012-10-10 10:30:29
	[status] => PENDING
	[currency] => EUR
)
REST RESPONSE
No results:
{"error":0,"response":[]}


Results:
<br><pre><code class="brush: php, class-name: highlighted">Error:
</code></pre>
 
{"error":1,"message":"Date start can not be set in the future."}
Source Code
public function getPaymentTransactions($date_start,$date_end,$status = null){
    return $this->client->getPaymentTransactions($date_start,$date_end,$status);
}

Related content