developer:soap:methods:movecustomer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developer:soap:methods:movecustomer [2008/07/21 12:46]
tem created
developer:soap:methods:movecustomer [2009/09/17 10:04]
charlie
Line 1: Line 1:
-====== moveCustomer ======+<embed ..:​contents/>​====== moveCustomer ======
  
 Move customer from one merchant to another. Move customer from one merchant to another.
Line 10: Line 10:
 ===== Syntax ===== ===== Syntax =====
  
-CustNum **moveCustomer** ( [[developer:​soap:​objects:​ueSecurityToken]] FromToken, integer CustNum, [[developer:​soap:​objects:​ueSecurityToken]] ToToken) ​+CustNum **moveCustomer** ( [[..:​objects:​ueSecurityToken]] FromToken, integer CustNum, [[..:​objects:​ueSecurityToken]] ToToken) ​
  
  
Line 16: Line 16:
  
 ^Type   ​^Name ​  ​^Description ​  ^ ^Type   ​^Name ​  ​^Description ​  ^
-|[[developer:​soap:​objects:​ueSecurityToken]] |FromToken |Merchant security token: used to identify the  merchant ​ that the customer is being moved from.|+|[[..:​objects:​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. | |integer |CustNum | The gateway assigned customer number for the the customer to be moved. |
-|[[developer:​soap:​objects:​ueSecurityToken]] |ToToken |Merchant security token: used to identify the merchant that the customer is being moved to.|+|[[..:​objects:​ueSecurityToken]] |ToToken |Merchant security token: used to identify the merchant that the customer is being moved to.|
  
  
Line 26: Line 26:
  
 ===== Examples ===== ===== Examples =====
 +
 +==== Java ====
 +
 +This example uses the [[developer/​javalibrary|USAePay Java library]]. ​ For directions on how to install the library and create the token/​client objects, go to either the [[..:​howto:​javajaxrpc|Java JAX-RPC Howto]] or the [[..:​howto:​javajaxws|Java JAX-WS Howto]].
 +
 +<code java>
 +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());​
 +}
 +</​code>​
  
  
developer/soap/methods/movecustomer.txt ยท Last modified: 2009/09/17 10:04 by charlie

Page Tools