MarkCustomerAsInactive

Description

This method is used to mark customer as inactive.

Syntax

CustomerResponse MarkCustomerAsInactive(SecurityToken securityToken, string customerInternalId)

Arguments

TypeNameDescription
SecurityToken securityTokenMerchant security token.
SecurityToken customerInternalIdCustomer's Internal ID

Return Value

TypeDescription
CustomerResponse Returns result of Mark Customer As Inactive.

Example

public function MarkCustomerAsInactive()
{
	$client = new SoapClient('End point URL');
    $securityToken = array(
        'SecurityId' => '******-454757-4567457-777',
        'UserId' => 'merchant1',
        'Password' => 'merchant1'
    );
		
	$response = $client->MarkCustomerAsInactive(
		array(
			'securityToken' => $securityToken,
			'customerInternalId' => '343-345435-45435-454',
		)
	);
	
	$result = $response->MarkCustomerAsInactiveResult;
}
Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ebiz="http://eBizCharge.ServiceModel.SOAP">
   <soapenv:Header />
   <soapenv:Body>
      <ebiz:MarkCustomerAsInactive>
         <ebiz:securityToken>
            <ebiz:SecurityId>********-23f6-4466-a993-f0008187ab9a</ebiz:SecurityId>
            <ebiz:UserId />
            <ebiz:Password />
         </ebiz:securityToken>
         <ebiz:customerInternalId>********-0b2a-44ed-90be-ed0bc460aecb</ebiz:customerInternalId>
      </ebiz:MarkCustomerAsInactive>
   </soapenv:Body>
</soapenv:Envelope>

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">
      <MarkCustomerAsInactiveResponse xmlns="http://eBizCharge.ServiceModel.SOAP">
         <MarkCustomerAsInactiveResult>
            <CustomerId>****-273-282-2833</CustomerId>
            <CustomerInternalId>********-0b2a-44ed-90be-ed0bc460aecb</CustomerInternalId>
            <Status>Success</Status>
            <StatusCode>1</StatusCode>
            <Error />
            <ErrorCode>0</ErrorCode>
         </MarkCustomerAsInactiveResult>
      </MarkCustomerAsInactiveResponse>
   </s:Body>
</s:Envelope>
public void MarkCustomerAsInactive()
        {
            eBizService apiClient = new eBizService();
            SecurityToken securityToken = new SecurityToken
            {
                SecurityId = "*******-c870-41b8-aa5c-205e55b7a049",
                UserId = "",
                Password = ""
            };
            var response = apiClient.MarkCustomerAsInactive(securityToken, "354f80ec-7dfd-4aad-ae21-9f902a2292d3");
            Console.WriteLine(response.Status);
            Console.WriteLine(response.StatusCode);
            Console.WriteLine(response.Error);
            Console.WriteLine(response.ErrorCode);
            Console.ReadLine();
        }