partner10.createClient

Purpose

Creates a Client account.

Signature

Method name: partner10.createClient

 

Parameters

# Type Description

1

struct AuthInfo

requesting party authentication information

2

struct ClientCreationInfo

client creation information

 

Returns

Field Type Description

resultCode

int

code for command execution result (see below)

resultDesc

string

textual description of command execution result (see below)

clientId

string

identifier of created client

login

string

login for created client

password

string

password for created client

 

Result Codes

resultCode resultDesc

100

New client login has been successfully created

200

Authorization failed

201

Access to this method is denied

251

Login already exists

300

Internal error, please try after some time

400

Incorrect authorization info format

431

Incorrect login format

432

Incorrect password format

433

Incorrect firstName format

434

Incorrect lastName format

435

Incorrect company format

437

Incorrect email format

443

Incorrect country format

444

Incorrect language format

 

XML Examples

Request message

<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
  <methodName>partner10.createClient</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>login</name>
            <value>
              <string><em>API_LOGIN</em></string>
            </value>
          </member>
          </struct>
      </value>
    </param>
    <param>
      <value>
        <struct>
          <member>
            <name>login</name>
            <value>
              <string><em>CLIENT_LOGIN</em></string>
            </value>
          </member>
          <member>
            <name>password</name>
            <value>
              <string><em>CLIENT_PASSWORD</em></string>
            </value>
          </member>
          <member>
            <name>firstName</name>
            <value>
              <string>John</string>
            </value>
          </member>
          <member>
            <name>lastName</name>
            <value>
              <string>Doe</string>
            </value>
          </member>
          <member>
            <name>company</name>
            <value>
              <string>Example, Inc.</string>
            </value>
          </member>
          <member>
            <name>email</name>
            <value>
              <string>jdoe@example.com</string>
            </value>
          </member>
          <member>
            <name>country</name>
            <value>
              <string>US</string>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

 Response message

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>clientId</name>
            <value>1401588</value>
          </member>
          <member>
            <name>login</name>
            <value><em>JDOE_CLIENT_LOGIN</em></value>
          </member>
          <member>
            <name>resultCode</name>
            <value>
              <int>100</int>
            </value>
          </member>
          <member>
            <name>password</name>
            <value><em>JDOE_CLIENT_PASSWORD</em></value>
          </member>
          <member>
            <name>resultDesc</name>
            <value>New client <em>CLIENT_LOGIN</em> has been successfully created</value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodResponse>