Get Transactions

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
                        )
                )
        )
)
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

Add Cancel Request

addcancelrequest Purpose This command is used to Add Cancellation Request for a specific...

Add Contact

addcontact Purpose This command is used to create a new contact under an account. Attributes...

Delete Contact

deletecontact Purpose This command is used to delete a contact in the system. Attributes...

Get Clients Details

getclientsdetails Purpose This command is used to retrieve all the data held about your...

Get Clients Addons

getclientsaddons Purpose This command is used to obtain the addons associated with a client...