This is an old revision of the document!

Soap API v1.2


Retrieves only selected details of a specified transaction.


If only a small subset of the transaction data is needed, use this method instead of the broader getTransaction retrieval method. This method returns only the data requested in the Fields parameters and is therefore more efficient than the getTransaction method.

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 assigned by the gateway and returned when a transaction is processed. To find a missing RefNum, use the searchTransactions method.

Specify which transaction fields you would like to retrieve data from by entering one or more of the following:

  • Response.AuthCode
  • Response.AvsResult
  • Response.AvsResultCode
  • Response.BatchNum
  • Response.CardCodeResult
  • Response.CardCodeResultCode
  • Response.ConversionRate
  • Response.ConvertedAmount
  • Response.ConvertedAmountCurrency
  • Response.Error
  • Response.ErrorCode
  • Response.RefNum
  • Response.Result
  • Response.ResultCode
  • Response.Status
  • Response.StatusCode
  • CheckTrace.TrackingNum
  • CheckTrace.Effective
  • CheckTrace.Processed
  • CheckTrace.Settled
  • CheckTrace.Returned
  • CheckTrace.BankNote
  • DateTime
  • AccountHolder
  • Details.Invoice
  • Details.PoNum
  • Details.OrderID
  • Details.Clerk
  • Details.Terminal
  • Details.Table
  • Details.Description
  • Details.Amount
  • Details.Currency
  • Details.Tax
  • Details.Tip
  • Details.NonTax
  • Details.Shipping
  • Details.Discount
  • Details.Subtotal
  • CreditCardData.CardType
  • CreditCardData.CardNumber
  • CreditCardData.CardExpiration
  • CreditCardData.CardCode
  • CreditCardData.AvsStreet
  • CreditCardData.AvsZip
  • CreditCardData.CardPresent
  • CheckData.CheckNumber
  • CheckData.Routing
  • CheckData.Account
  • CheckData.SSN
  • CheckData.DriversLicense
  • CheckData.DriversLicenseState
  • CheckData.RecordType
  • User
  • Source
  • ServerIP
  • ClientIP
  • CustomerID
  • BillingAddress.FirstName
  • BillingAddress.LastName
  • BillingAddress.Company
  • BillingAddress.Street
  • BillingAddress.Street2
  • BillingAddress.City
  • BillingAddress.State
  • BillingAddress.Zip
  • BillingAddress.Country
  • BillingAddress.Phone
  • BillingAddress.Fax
  • BillingAddress.Email
  • ShippingAddress.FirstName
  • ShippingAddress.LastName
  • ShippingAddress.Company
  • ShippingAddress.Street
  • ShippingAddress.Street2
  • ShippingAddress.City
  • ShippingAddress.State
  • ShippingAddress.Zip
  • ShippingAddress.Country
  • ShippingAddress.Phone
  • ShippingAddress.Fax
  • ShippingAddress.Email

See also getTransactionStatus, getTransaction, searchTransactions, searchTransactionsCustom, getTransactionReport


FieldValue getTransactionCustom ( ueSecurityToken Token, integer RefNum, string Fields )


Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.
integer RefNum Transaction Reference number assigned by the gateway.
string Fields An array listing the fields to be retrieved.

Return Value

FieldValue Returns requested data from specified transaction. Possible values include transaction status, gateway response, date and time of transaction, credit card specific data, transaction amount, cardholder name and address, and any other transaction details entered in the request.



For directions on how to set up the WSDL link, create “$token” and “$client”, go to PHP Soap How-to.

try { 
  $Fields = array( 
  $res=$client->getTransactionCustom($token, $RefNum, $Fields);  
catch (SoapFault $e) { 
  echo $client->__getLastResponse(); 
  die("Get Transaction failed :" .$e->getMessage()); 


<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" 
xmlns:ns1="urn:usaepay" xmlns:xsd="" 
<Token xsi:type="ns1:ueSecurityToken"> 
<ClientIP xsi:type="xsd:string"></ClientIP> 
<PinHash xsi:type="ns1:ueHash"> 
<HashValue xsi:type="xsd:string">875e4d284a8a23990843ba2b9b3792ff7dd82a16</HashValue> 
<Seed xsi:type="xsd:string">11936945532142843996</Seed> 
<Type xsi:type="xsd:string">sha1</Type> 
<SourceKey xsi:type="xsd:string">HB4P7C4K2w2ZCQQQXRqrxDj6agrS2NIT</SourceKey> 
<RefNum xsi:type="xsd:integer">1118458</RefNum> 
<Fields SOAP-ENC:arrayType="xsd:string[5]" xsi:type="ns1:stringArray"> 
<item xsi:type="xsd:string">Response.AvsResult</item> 
<item xsi:type="xsd:string">Response.AvsResultCode</item> 
<item xsi:type="xsd:string">DateTime</item> 
<item xsi:type="xsd:string">Response.Error</item> 
<item xsi:type="xsd:string">Details.Invoice</item> 
developer/soap/methods/gettransactioncustom.1246657119.txt.gz · Last modified: 2009/07/03 14:38 by epouchak

Page Tools