Move customer from one merchant to another.
This method allows you to move a customer record from one merchant to another. This method is only available to merchants who have a master user setup to access both accounts. The move method copies the customer to new merchant and then deletes the original customer. A new CustNum is assigned.
| Type | Name | Description |
| ueSecurityToken | FromToken | Merchant security token: used to identify the merchant that the customer is being moved from. |
| integer | CustNum | The gateway assigned customer number for the the customer to be moved. |
| ueSecurityToken | ToToken | Merchant security token: used to identify the merchant that the customer is being moved to. |
| Integer | Returns gateway assigned Customer Number of the new customer. |
This example uses the USAePay Java library. For directions on how to install the library and create the token/client objects, go to either the Java JAX-RPC Howto or the Java JAX-WS Howto.
try {
//Set CustNum to the customer number that you want to move. "merch2token"
//represents a token set up under the merchant the customer is being moved to.
BigInteger CustNum = new BigInteger("123456");
BigInteger NewCustNum = client.moveCustomer(token, CustNum, merch2token);
System.out.println(NewCustNum);
} catch (Exception e) {
System.out.println("Soap Exception: " + e.getMessage());
}