gettransactions
Purpose
This command is used to obtain list of your transactions
Attributes
Optional Attributes
- invoiceid - Obtain transactions for a specific invoice
- transid - Obtain details for a specific transaction ID
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "gettransactions"; $result = mikrovps_SendCommand( $postfields );
Successful Response
Array ( [result] => success [totalresults] => 1 [startnumber] => 0 [numreturned] => 1 [transactions] => Array ( [transaction] => Array ( [0] => Array ( [id] => 1 [userid] => 1 [currency] => 1 [gateway] => paypal [date] => 2015-05-09 00:01:01 [description] => Invoice #1 [amountin] => 10.00 [fees] => 10.00 [amountout] => 0.00 [rate] => 1.00000 [transid] => 111sdf224 [invoiceid] => 1 [refundid] => 0 ) ) ) )