• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

newCustomer

Some tooltip text!
• 1 minute to read
 • 1 minute to read

Description

This method will create a new customer with the specified user name and password. You have to log in the customer afterward to use more methods by using the login method. If you want to specify more values than the user name and password, log them in after this method, and use the setCustomer method to set any other value.

In parameters

Parameter Description
userName The user name of the new user
password The password of the new user

Out parameters

Parameter Description
errorCode See list of codes

Example

customer.customerService custService = new customer.customerService();
string ret = custService.newCustomer("Billy", "pass");

if (ret.Equals("0"))
  //Ok, customer created
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top