MS:getTransaction

From Wiki

Jump to: navigation, search

Gets the requested transactions

Parameters


Element

Type

aTransactionIds required

Array of transaction IDs

Value Type: ArrayOfInt
Example: array(1011, 1012, 1013)


Response


getTransactionReturn

Array of Transaction objects

Value Type: Transaction


Example Request (parameters)


$aParams1 = array(
	'aTransactionIds'	=>	array(xxx)
);

$oResponse = $oClient->call('getTransaction', $aParams1);


Example Response


stdClass Object
(
    [getTransactionReturn] => Array
        (
            [0] => stdClass Object
                (
                    [iId] => ...
                    [sStatus] => pending
                    [sType] => normal
                    [sOrderRef] => ...
                    [sIp] => ...
                    [bPaid] => 
                    [iPaymentId] => 0
                    [iAffiliateId] => ...
                    [fSaleAmount] => 274.17
                    [fCommissionAmount] => 5.48
                    [dClickDate] => 2014-03-07 10:18:29
                    [dTransactionDate] => 2014-03-07 10:21:55
                    [sClickref] => ...
                    [aTransactionParts] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [sCommissionGroupName] => DEFAULT
                                    [fSaleAmount] => 274.17
                                    [fCommissionAmount] => 5.48
                                    [iCommission] => 2
                                    [sCommissionType] => percentage
                                )

                        )

                )

        )

)

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button