developer:soap:methods:getcustomerhistory

This is an old revision of the document!


Soap API v1.2

getCustomerHistory

Pull details of all transactions run for CustNum.

Description

This method allows you to view all of the transactions completed for a particular customer.

This method requires the use of the CustNum, a unique customer number assigned by the gateway. If you have lost or cannot remember the customer's CustNum, use the searchCustomers method to find the correct CustNum.

See also runCustomerTransaction, enableCustomer, disableCustomer, deleteCustomer, searchCustomerID, getCustomer, searchCustomers, addCustomer, addCustomerPaymentMethod, deleteCustomerPaymentMethod, updateCustomer, quickUpdateCustomer

Syntax

TransactionSearchResult getCustomerHistory ( ueSecurityToken Token, integer CustNum )

Arguments

Type Name Description
ueSecurityToken Token Merchant security token: used to identify merchant and validate transaction.
integer CustNum A unique customer number assigned by the gateway.

Return Value

TransactionSearchResult Returns the results of the customer transaction history search.

Examples

PHP

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

<?php  
 
try { 
 
  $custnum='547'; 
  print_r($client->getCustomerHistory($token,$custnum)); 
 
} 
 
catch(SoapFault $e) { 
 
  echo $e->getMessage(); 
 
} 
 
echo "\n\nRequest: " . $client->__getLastRequest(); 
echo "\n\nResponse: " . $client->__getLastResponse(); 
 
?> 
developer/soap/methods/getcustomerhistory.1246898580.txt.gz · Last modified: 2009/07/06 09:43 by epouchak

Page Tools