GetTransactionDetails

Retrieves all details of a specified transaction.

Description

This method is used to view all of the details relating to a particular transaction, including transaction status, type, and gateway response.

To specify the transaction you would like to view, you must retrieve it using the reference number (RefNum) assigned to the transaction by the gateway. The RefNum is returned when a transaction is processed.

Syntax

TransactionObject GetTransactionDetails( SecurityToken securityToken, string transactionId)

Arguments

TypeNameDescription
SecurityTokensecurityTokenSecurity token. (required)
stringtransactionRefNumTransaction reference number assigned by the gateway (RefNum). (required)

Examples

<?php 
 
 
try { 
  $RefNum=1009411; 
 
  $res=$client->GetTransactionDetails($securityToken, $RefNum);  
  print_r($res); 
 
} 
 
catch (SoapFault $e){ 
  die("getTransaction failed :" .$e->getMessage()); 
} 
 
?>
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:GetTransactionDetails>
         <ebiz:securityToken>
            <ebiz:SecurityId>********-90b4-4a38-ad78-********</ebiz:SecurityId>
            <ebiz:UserId/>
            <ebiz:Password/>
         </ebiz:securityToken>
         <ebiz:transactionRefNum>128346278</ebiz:TransactionId>
      </ebiz:GetTransactionDetails>
   </soapenv:Body>
</soapenv:Envelope>

Response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <GetTransactionDetailsResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <GetTransactionDetailsResult>
           <AccountHolder xsi:type="xsd:string">Tester Jones</AccountHolder>
        <BillingAddress xsi:type="ns1:Address">
          <City xsi:type="xsd:string"></City>
          <Company xsi:type="xsd:string"></Company>
          <Country xsi:type="xsd:string"></Country>
          <Email xsi:type="xsd:string"></Email>
          <Fax xsi:type="xsd:string"></Fax>
          <FirstName xsi:type="xsd:string"></FirstName>
          <LastName xsi:type="xsd:string"></LastName>
          <Phone xsi:type="xsd:string"></Phone>
          <State xsi:type="xsd:string"></State>
          <Street xsi:type="xsd:string"></Street>
          <Street2 xsi:type="xsd:string"></Street2>
          <Zip xsi:type="xsd:string"></Zip>
        </BillingAddress>
        <CheckData xsi:type="ns1:CheckData">
          <Account xsi:nil="true" />
          <Routing xsi:nil="true" />
        </CheckData>
        <CheckTrace xsi:type="ns1:CheckTrace" />
        <ClientIP xsi:type="xsd:string"></ClientIP>
        <CreditCardData xsi:type="ns1:CreditCardData">
          <AvsStreet xsi:type="xsd:string">1234 Main Street</AvsStreet>
          <AvsZip xsi:type="xsd:string">99281</AvsZip>
          <CardCode xsi:type="xsd:string">XXX</CardCode>
          <CardExpiration xsi:type="xsd:string">XXXX</CardExpiration>
          <CardNumber xsi:type="xsd:string">XXXXXXXXXXXX7779</CardNumber>
          <CardPresent xsi:type="xsd:boolean">false</CardPresent>
          <CardType xsi:type="xsd:string">V</CardType>
          <InternalCardAuth xsi:type="xsd:boolean">false</InternalCardAuth>
          <MagStripe xsi:type="xsd:string"></MagStripe>
          <MagSupport xsi:type="xsd:string"></MagSupport>
          <Pares xsi:type="xsd:string"></Pares>
          <TermType xsi:type="xsd:string"></TermType>
        </CreditCardData>
        <CustomerID xsi:type="xsd:string"></CustomerID>
        <CustomFields SOAP-ENC:arrayType="ns1:FieldValue[0]" xsi:type="ns1:FieldValueArray" />
        <DateTime xsi:type="xsd:string">2015-11-19 16:20:13</DateTime>
        <Details xsi:type="ns1:TransactionDetail">
          <Amount xsi:type="xsd:double">4</Amount>
          <Clerk xsi:type="xsd:string"></Clerk>
          <Currency xsi:type="xsd:string"></Currency>
          <Description xsi:type="xsd:string">Example Transaction</Description>
          <Comments xsi:type="xsd:string"></Comments>
          <Discount xsi:type="xsd:double">0</Discount>
          <Invoice xsi:type="xsd:string">520009908</Invoice>
          <NonTax xsi:type="xsd:boolean">false</NonTax>
          <OrderID xsi:type="xsd:string"></OrderID>
          <PONum xsi:type="xsd:string"></PONum>
          <Shipping xsi:type="xsd:double">0</Shipping>
          <Subtotal xsi:type="xsd:double">0</Subtotal>
          <Table xsi:type="xsd:string"></Table>
          <Tax xsi:type="xsd:double">0</Tax>
          <Terminal xsi:type="xsd:string"></Terminal>
          <Tip xsi:type="xsd:double">0</Tip>
        </Details>
        <LineItems SOAP-ENC:arrayType="ns1:LineItem[0]" xsi:type="ns1:LineItemArray" />
        <Response xsi:type="ns1:TransactionResponse">
          <AcsUrl xsi:nil="true" />
          <AuthAmount xsi:type="xsd:double">4</AuthAmount>
          <AuthCode xsi:type="xsd:string">071044</AuthCode>
          <AvsResult xsi:type="xsd:string">Address: Match &amp; 5 Digit Zip: Match</AvsResult>
          <AvsResultCode xsi:type="xsd:string">YYY</AvsResultCode>
          <BatchNum xsi:type="xsd:integer">1911</BatchNum>
          <BatchRefNum xsi:type="xsd:integer">198442</BatchRefNum>
          <CardCodeResult xsi:type="xsd:string">Match</CardCodeResult>
          <CardCodeResultCode xsi:type="xsd:string">M</CardCodeResultCode>
          <CardLevelResult xsi:nil="true" />
          <CardLevelResultCode xsi:nil="true" />
          <ConversionRate xsi:type="xsd:double">0</ConversionRate>
          <ConvertedAmount xsi:type="xsd:double">0</ConvertedAmount>
          <ConvertedAmountCurrency xsi:type="xsd:string"></ConvertedAmountCurrency>
          <CustNum xsi:type="xsd:integer">0</CustNum>
          <Error xsi:type="xsd:string">Approved</Error>
          <ErrorCode xsi:type="xsd:integer">0</ErrorCode>
          <isDuplicate xsi:type="xsd:boolean">false</isDuplicate>
          <Payload xsi:nil="true" />
          <RefNum xsi:type="xsd:integer">102230299</RefNum>
          <Result xsi:type="xsd:string">Approved</Result>
          <ResultCode xsi:type="xsd:string">A</ResultCode>
          <Status xsi:type="xsd:string">Pending</Status>
          <StatusCode xsi:type="xsd:string">P</StatusCode>
          <VpasResultCode xsi:nil="true" />
        </Response>
        <ServerIP xsi:type="xsd:string">209.37.25.121</ServerIP>
        <ShippingAddress xsi:type="ns1:Address">
          <City xsi:type="xsd:string"></City>
          <Company xsi:type="xsd:string"></Company>
          <Country xsi:type="xsd:string"></Country>
          <Email xsi:type="xsd:string"></Email>
          <Fax xsi:type="xsd:string"></Fax>
          <FirstName xsi:type="xsd:string"></FirstName>
          <LastName xsi:type="xsd:string"></LastName>
          <Phone xsi:type="xsd:string"></Phone>
          <State xsi:type="xsd:string"></State>
          <Street xsi:type="xsd:string"></Street>
          <Street2 xsi:type="xsd:string"></Street2>
          <Zip xsi:type="xsd:string"></Zip>
        </ShippingAddress>
        <Source xsi:type="xsd:string">XML Trace Key</Source>
        <Status xsi:type="xsd:string">Authorized (Pending Settlement)</Status>
        <TransactionType xsi:type="xsd:string">Sale</TransactionType>
        <User xsi:type="xsd:string">auto</User>
         </GetTransactionDetailsResult>
      </GetTransactionDetailsResponse>
   </s:Body>
</s:Envelope>
string refnum;
            refnum = "46973526";
 
            TransactionObject tran = new TransactionObject();
 
            try
            {
                tran = client.GetTransactionDetails(securityToken, refnum);
                MessageBox.Show(string.Concat("Transaction RefNum: ",
                            tran.Response.RefNum));
 
 
            }
            catch (Exception err)
            {
                MessageBox.Show(err.Message);
 
            }