CopyCustomer

Description

Syntax

Arguments

TypeNameDescription
StringcustomerInternalidCustomer Internal ID.
SecurityToken copyFromSecurityTokenMerchant security token: used to identify merchant and validate transaction. (required)
SecurityToken copyToSecurityTokenMerchant security token.

Return Value

TypeDescription
CustomerResponse Returns result of Copy Customer request.

Examples

public function CopyCustomer()
{
	$client = new SoapClient('End point URL');
    $fromSecurityToken = array(
        'SecurityId' => '467457-454757-4567457-777',
        'UserId' => 'merchant1',
        'Password' => 'merchant1'
    );
	
	$toSecurityToken = array(
        'SecurityId' => '567457-454757-4567457-888',
        'UserId' => 'merchant2',
        'Password' => 'merchant2'
    );
	
	$response = $client->CopyCustomer(
		array(
			'copyFromSecurityToken' => $fromSecurityToken,
			'copyToSecurityToken' => $toSecurityToken,
			'customerInternalId' => '343-345435-45435-454',
		)
	);
	
	$result = $response->CopyCustomerResult;
}