developer:resellerapi:methods:getmerchant

getMerchant

Retrieve merchant information

Description

This method pulls the account information for an active merchant.  Requires the gateway assigned MerchantID. Returns a Merchant object containing merchant's contact, billing and platform information. The account number and the routing number for the billing information is masked.

See also  searchMerchants, getMerchantSummary 

Syntax

Merchant getMerchant ( ueSecurityToken Token, integer MerchantID ) 

Arguments

Type     Name    Description    
ueSecurityToken Token Reseller security token, used to identify reseller and validate request.
integer MerchRefNum Merchant ID number assigned by the gateway to an active merchant

Return Value

Merchant Returns merchant object

Examples

PHP

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

<?php>
 
try { 
 
  $MerchRefNum=2; 
 
  $Merchant=$client->getMerchant($restoken, $MerchRefNum); 
 
  print_r($Merchant);  
                         
} 
 
catch (SoapFault $e) { 
 
  echo $client->__getLastRequest(); 
  echo $client->__getLastResponse(); 
  die("getMerchant failed: " .$e->getMessage()); 
  } 
 
?> 

     

.NET C#

string merchantID = "133534";
reseller.Merchant merchant = new reseller.Merchant();
 
try 
{
   merchant = reclient.getMerchant(retoken, merchantID);
   MessageBox.Show(string.Concat(merchant.MerchantName));
}
catch (Exception err) {
   MessageBox.Show(err.Message);
}

Java

BigInteger merchrefnum = new BigInteger("118227");
Merchant merchant;
merchant = client.getMerchant(restoken, merchrefnum);
developer/resellerapi/methods/getmerchant.txt · Last modified: 2012/04/24 08:27 by jpresley

Page Tools