pem.addAccount
This method is supported by Operations starting from version 2.3.
This method creates an Account for Reseller or Customer in Operations. Note that this method does not create an Account’s Staff Member; use pem.addAccountMember method for this purpose.
The request must contain either the set of Account information parameters such as person
, address
, phone
, fax
, email
or the external_info
that uniquely identifies External System where Operations should get appropriate data.
Important: You should always call pem.addAccountMember just after pem.addAccount. Otherwise, the deployment will be considered incorrect and, in general, subsequent call of pem.activateSubscription will lead to the unpredictable result.
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
The ID of the Account to create. This ID is generated by External System. Optional parameter. If this parameter is not specified, Operations will generate it according its internal sequence of IDs. |
|
string |
Indicates the type of the Account to create. It can take the following values:
|
|
int |
The ID of Subscription that provides resource Client accounts or Reseller accounts depending on Account type. If |
|
int |
Account ID of a parent Account. Operations Provider's Account is the default value. |
|
string |
The domain, brand is created on. If such domain is specified, the created account is bound to this brand. If parameter is omitted, the brand is selected in the following way:
|
Send the following info, if Operations uses external account info storage: | ||
[external_info]
|
struct |
|
|
string |
The reference ID to External System that stores Account info |
|
string |
Some Account identifier that will be passed to the External System for identification of this Account. |
Send the following info, if Operations stores account info in its own database: | ||
[person]
|
struct |
Contains general information about person/company represented by the Account being created. |
|
string |
This is salutation like “Mr.” or “Mrs.”, etc. |
|
string |
The first name of the person represented by the Account. |
|
string |
The middle name of the person represented by the Account. |
|
string |
The last name of the person represented by the Account. |
|
string |
The name of the company represented by the Account. If the company is not specified, first name, middle name and last name will be used instead. |
|
struct |
Contains address information for the person/company represented by the Account being created. |
|
string |
Name of the street. |
|
string |
The number of the house. |
|
string |
Second address. |
|
string |
Postal code. |
|
string |
Name of the city. |
|
string |
This is the code of the country represented by two lowercased letters, like us, uk, etc. |
|
string |
Name of the state/province. |
|
struct |
Contains phone information for the person/company represented by the Account being created. |
|
string |
Country code part of the phone number. |
|
string |
Area code part of the phone number. |
|
string |
The phone number itself. |
|
string |
Extension to the phone number, if present. |
|
struct |
Contains fax information for the person/company represented by the Account being created. |
|
string |
Country code part of the fax number. |
|
string |
Area code part of the fax number. |
|
string |
The fax number itself. |
|
string |
Extension to the fax number, if present. |
|
string |
The e-mail address of the person/company represented by the Account being created. |
|
struct |
Locale of Account. |
|
string |
Language code (two-letter code system), for example: en, de, etc. |
|
string |
Country code (two-letter code system), for example: US, DE, etc. |
|
string |
Variant code. It contains a customization of Locale (this field can be empty). |
|
string |
A note that contains some additional information about the customer (or about the reseller). The note maximum length is 255 symbols. |
The method has the following output parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
ID of the created Account. |
For XML-RPC sample of using this method see pem.addAccount Sample section in XML-RPC Samples appendix.
See also: