MarkCustomerAsSynchronized

Description

The MarkCustomerAsSynchronized method marks a Customer as synchronized by by assigning the current UTC time to its CustomerLastSyncDateTime field. The CustomerLastSyncDateTime field is null until the first synchronization.

Syntax

CustomerResponse MarkCustomerAsSynchronized(SecurityToken securityToken, string customerInternalId)

Arguments

TypeNameReq.Description
SecurityToken securityTokenRA unique token that is used to identify a merchant and authenticate the API request.
stringcustomerInternalIdRCustomer to mark as synchronized.

Return Value

TypeDescription
CustomerResponseIndicates whether the Customer was successfully marked as synchronized. Otherwise, a fault is returned.

Example 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-************</ebiz:SecurityId>
          <ebiz:UserId/>
          <ebiz:Password/>
       </ebiz:securityToken>
       <ebiz:customerInternalId>********-61b1-4457-a4d1-************</ebiz:customerInternalId>
     </ebiz:MarkCustomerAsSynchronized>
  </soapenv:Body>
</soapenv:Envelope>
public void MarkCustomerAsSynchronized()
{
  eBizService apiClient = new eBizService();
  SecurityToken securityToken = new SecurityToken
  {
    SecurityId = "*******-c870-41b8-aa5c-************",
    UserId = "",
    Password = ""
    };
  var response = apiClient.MarkCustomerAsSynchronized(securityToken, "*************-4aad-ae21-************");
  Console.WriteLine(response.Status);
  Console.WriteLine(response.StatusCode);
  Console.WriteLine(response.Error);
  Console.WriteLine(response.ErrorCode);
  Console.ReadLine();
}
public function MarkCustomerAsSynchronized()
{
  $client = new SoapClient('End point URL');
  $securityToken = array(
    'SecurityId' => '******-454757-***********',
    'UserId' => 'merchant1',
    'Password' => 'merchant1'
  );

  $response = $client->MarkCustomerAsSynchronized(
    array(
      'securityToken' => $securityToken,
      'customerInternalId' => '****-43343-*******',
    )
  );

  $result = $response->MarkCustomerAsSynchronizedResult;
}

Example 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">
      <MarkCustomerAsSynchronizedResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <MarkCustomerAsSynchronizedResult>
            <CustomerId>CUST-001</CustomerId>
            <CustomerInternalId>********-61b1-4457-a4d1-************</CustomerInternalId>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error/>
            <ErrorCode>0</ErrorCode>
         </MarkCustomerAsSynchronizedResult>
      </MarkCustomerAsSynchronizedResponse>
   </s:Body>
</s:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:InvalidCustomerInternalId</faultcode>
         <faultstring xml:lang="en-US">Invalid CustomerInternalId</faultstring>
      </s:Fault>
   </s:Body>
</s:Envelope>