MarkCustomerAsSynchronized

Description

This method is used to mark the customer as synchronized.

Syntax

CustomerResponse MarkCustomerAsSynchronized (SecurityToken securityToken, string customerInternalId)

Arguments

Type

Name

Description

SecurityToken

securityToken

Merchant security token.

String

customerInternalId

Customer's Internal ID

Return Value

Type

Description

MarkCustomerAsSynchronized

Returns result of Mark Customer As Synchronized

Example

public function MarkCustomerAsSynchronized()
{
	$client = new SoapClient('End point URL');
    $securityToken = array(
        'SecurityId' => '******-454757-4567457-777',
        'UserId' => 'merchant1',
        'Password' => 'merchant1'
    );
		
	$response = $client->MarkCustomerAsSynchronized(
		array(
			'securityToken' => $securityToken,
			'customerInternalId' => '1234-43343-3433-34',
		)
	);
	
	$result = $response->MarkCustomerAsSynchronizedResult;
}
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header/>
   <soapenv:Body>
      <ebiz:MarkCustomerAsSynchronized>
                  <ebiz:securityToken>
                        <ebiz:SecurityId>********-55ee-434c-b126-f630f2486a2d</ebiz:SecurityId>
            <ebiz:UserId></ebiz:UserId>
            <ebiz:Password></ebiz:Password>
         </ebiz:securityToken>
         <ebiz:customerInternalId>********-61b1-4457-a4d1-5c2049f421b2</ebiz:customerInternalId>
      </ebiz:MarkCustomerAsSynchronized>
   </soapenv:Body>
</soapenv:Envelope>

Response: 

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <MarkCustomerAsSynchronizedResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <MarkCustomerAsSynchronizedResult>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error />
            <ErrorCode>0</ErrorCode>
         </MarkCustomerAsSynchronizedResult>
      </MarkCustomerAsSynchronizedResponse>
   </s:Body>
</s:Envelope>
public void MarkCustomerAsSynchronized()
        {
            eBizService apiClient = new eBizService();
            SecurityToken securityToken = new SecurityToken
            {
                SecurityId = "*******-c870-41b8-aa5c-205e55b7a049",
                UserId = "",
                Password = ""
            };
            var response = apiClient.MarkCustomerAsSynchronized(securityToken, "354f80ec-7dfd-4aad-ae21-9f902a2292d3");
            Console.WriteLine(response.Status);
            Console.WriteLine(response.StatusCode);
            Console.WriteLine(response.Error);
            Console.WriteLine(response.ErrorCode);
            Console.ReadLine();
      }