GetCustomer

Description

This method allows you to view all of the stored data for a particular customer.

This method requires the use of the customerId or customerInternalId, a unique customer number assigned by the system. If you have lost or cannot remember the customerInternalId, use the searchCustomers method to find the correct customerInternalId.

Syntax

Customer GetCustomer(SecurityToken securityToken, string customerId, string customerInternalId)

Arguments

Type

Name

Description

SecurityToken

securityToken

Merchant security token: used to identify merchant and validate transaction. (required)

string

customerInternalId

Unique customer ID number assigned by the internal system. (required)

string

customerId

Customer ID. (required)

Return Value

Type

Description

Customer

Returns customer information, such as customer number, merchant-assigned customer ID, billing address, receipt settings, recurring billing settings, and other pertinent information.

Examples

var client = new EBizSOAP.IeBizServiceClient();
EBizSOAP.SecurityToken securityToken = new EBizSOAP.SecurityToken();
EBizSOAP.Customer customer = new EBizSOAP.Customer();
securityToken.UserId = "";
securityToken.SecurityId = "1dc496d1-90b4-4a38-ad78-28a795af78e9";
securityToken.Password = "";
EBizSOAP.Customer Customer= client.GetCustomer(securityToken, "123456", "");
Console.WriteLine(Customer.CustomerId);
Console.WriteLine(Customer.CustomerInternalId);
Console.WriteLine(Customer.FirstName);
Console.WriteLine(Customer.LastName);
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:GetCustomer>
         <ebiz:securityToken>
            <ebiz:SecurityId>1dc496d1-90b4-4a38-ad78-28a795af78e9</ebiz:SecurityId>
            <ebiz:UserId/>
            <ebiz:Password/>
         </ebiz:securityToken>
         <ebiz:customerInternalId>
</ebiz:customerInternalId>
         <ebiz:customerId>mm-0011-01</ebiz:customerId>
      </ebiz:GetCustomer>
   </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">
      <GetCustomerResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <GetCustomerResult>
            <CustomerInternalId>289d6bcc-20a4-42d7-af21-0bc767a80eea</CustomerInternalId>
            <CustomerId>mm-0011-01</CustomerId>
            <FirstName>Jack</FirstName>
            <LastName>Smith</LastName>
            <CompanyName>CBS</CompanyName>
            <Phone>18885007797</Phone>
            <CellPhone>7143581268</CellPhone>
            <Fax>8885557798</Fax>
            <Email>[email protected]</Email>
            <WebSite>centurybizsolutions.net</WebSite>
            <BillingAddress>
               <FirstName>Jack</FirstName>
               <LastName>Smith</LastName>
               <CompanyName>CBS</CompanyName>
               <Address1>20 Pacifica</Address1>
               <Address2/>
               <City>Irvine</City>
               <State>CA</State>
               <ZipCode>92618</ZipCode>
            </BillingAddress>
         </GetCustomerResult>
      </GetCustomerResponse>
   </s:Body>
</s:Envelope>