MarkCustomerAsActive

Description

The MarkCustomerAsActive method marks a Customer as active.

If this object is marked as active, it will be returned by the GetCustomer, SearchCustomers, and SearchCustomerList methods.

Syntax

CustomerResponse MarkCustomerAsActive(SecurityToken securityToken, string customerInternalId)

Arguments

TypeNameReq.Description
SecurityTokensecurityTokenRA unique token that is used to identify a merchant and authenticate the API request.
stringcustomerInternalIdRInternal ID of the Customer object to mark as active.

Return Value

TypeDescription
CustomerResponseIndicates whether the Customer was successfully marked as active. 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:MarkCustomerAsActive>
         <ebiz:securityToken>
            <ebiz:SecurityId>********-23f6-4466-a993-************</ebiz:SecurityId>
            <ebiz:UserId />
            <ebiz:Password />
         </ebiz:securityToken>
         <ebiz:customerInternalId>********-0b2a-44ed-90be-************</ebiz:customerInternalId>
      </ebiz:MarkCustomerAsActive>
   </soapenv:Body>
</soapenv:Envelope>
public void MarkCustomerAsActive()
{
  eBizService apiClient = new eBizService();
  SecurityToken securityToken = new SecurityToken
  {
    SecurityId = "*******-c870-41b8-aa5c-************",
    UserId = "",
    Password = ""
    };
  var response = apiClient.MarkCustomerAsActive(securityToken, "*************-4aad-ae21-************");
  Console.WriteLine(response.Status);
  Console.WriteLine(response.StatusCode);
  Console.WriteLine(response.Error);
  Console.WriteLine(response.ErrorCode);
  Console.ReadLine();
}
public function MarkCustomerAsActive()
{
  $client = new SoapClient('End point URL');
  $securityToken = array(
    'SecurityId' => '******-454757-4567457-***',
    'UserId' => 'merchant1',
    'Password' => 'merchant1'
  );

  $response = $client->MarkCustomerAsActive(
    array(
      'securityToken' => $securityToken,
      'customerInternalId' => '***-345435-*********',
    )
  );

  $result = $response->MarkCustomerAsActiveResult;
}

Example Response

<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">
      <MarkCustomerAsActiveResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <MarkCustomerAsActiveResult>
            <CustomerId>****-273-282-2833</CustomerId>
            <CustomerInternalId>********-0b2a-44ed-90be-************</CustomerInternalId>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error />
            <ErrorCode>0</ErrorCode>
         </MarkCustomerAsActiveResult>
      </MarkCustomerAsActiveResponse>
   </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>