CopyCustomer
Description
Syntax
Arguments
Type | Name | Description |
---|---|---|
String | customerInternalid | Customer Internal ID. |
SecurityToken | copyFromSecurityToken | Merchant security token: used to identify merchant and validate transaction. (required) |
SecurityToken | copyToSecurityToken | Merchant security token. |
Return Value
Type | Description |
---|---|
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;
}
Updated about 1 year ago