API Designer Customer Create

    Purpose

    Create a single customer. The system gives you the flexibility of supplying as much or as little information as makes sense for your installation.

    Arguments

    Type Name Description Default Optional
    string customer_code Code for the new customer. Use this field to help keep the applications in sync with each other. Empty string will generate a random 15 digit alpha numeric code. Empty string Yes
    string email Email for the new customer. Empty string will generate a random 20 digit alpha numeric email with @dummyemail.com appended. Empty string Yes
    string password Password for the new customer. Empty string will generate a random 15 digit alpha numeric password. Empty string Yes
    string first_name First name for the new customer. Empty string will generate a random 5 digit alpha numeric name. Empty string Yes
    string last_name Last name for the new customer. Empty string will generate a random 5 digit alpha numeric name. Empty string Yes
    string username Username for the new customer. Empty string will generate a random 10 digit alpha numeric name. This field is used primarily for ePublication URLs. Empty string Yes

    Sample Usage

    $client = new SoapClient('http://l001.pageprodigy.com/api/soap/?wsdl');
    
    $session = $client->login('apiUser', 'apiKey');
    $api_result = $client->call($session, 'design_customers.create', 
            array($customer_code, $email, $password, $first_name, $last_name, $username));
    
    echo $api_result ['id'];
    
    

    Returns

    Type Name Description
    array customer_array A single designCusotmerEntity

    The designCusotmerEntity content is as follows:

    Type Name Description
    integer id The ID of the Customer
    integer customer_code The Code of the Customer
    string name Combination of first and last name of the customer
    string first_name First name of the customer.
    string last_name Last name of the customer.
    string email Email address of the customer.