pem.exchange.addContact

This method is supported by Operations starting from version 2.8 hotfix02

This method creates a Contact.

The method has the following input parameters:

Name

Type

Short Description

subscription_id

int

ID of a Subscription

alias

string

Alias of the Contact

display_name

string

Display Name of the Contact

target_email_address

string

E-mail Address of the Contact

[show_in_address_book]

boolean

It defines whether to show the Contact in the Address Book of the organization. There are the following options:

  • 0 – The Contact is not shown in the Address Book of the organization.
  • 1 – The Contact is shown in the Address Book of the organization.

This parameter is optional. If the parameter is not specified, the 1 value is used.

[contact_info]

struct

Contact information

  • [first_name]

string

First name

  • [last_name]

string

Last name

  • [description]

string

Description

  • [office]

string

Office

  • [telephone]

struct

Telephone

  • [country_code]

string

Country code

  • [area_code]

string

Area code

  • phone_number

string

Phone number

  • [extension_number]

string

Extension

  • [web_page]

string

Web page

  • [street]

string

Street

  • [city]

string

City

  • [state]

string

State/Province

  • [postal_code]

string

Zip/Postal code

  • [country]

string

Country/region

  • [home_phone]

struct

Home phone

  • [country_code]

string

Country code

  • [area_code]

string

Area code

  • phone_number

string

Phone number

  • [extension_number]

string

Extension

  • [pager]

struct

Pager

  • [country_code]

string

Country code

  • [area_code]

string

Area code

  • phone_number

string

Phone number

  • [extension_number]

string

Extension

  • [mobile_phone]

struct

Mobile phone

  • [country_code]

string

Country code

  • [area_code]

string

Area code

  • phone_number

string

Phone number

  • [extension_number]

string

Extension

  • [fax]

struct

Fax

  • [country_code]

string

Country code

  • [area_code]

string

Area code

  • phone_number

string

Phone number

  • [extension_number]

string

Extension number

  • [ip_phone]

struct

IP phone

  • [country_code]

string

Country code

  • [area_code]

string

Area code

  • phone_number

string

Phone number

  • [extension_number]

string

Extension

  • [org_title]

string

Title

  • [department]

string

Department

  • [company]

string

Company

The method has the following output parameters:

Name

Type

Short Description

mail_contact_id

int

ID of the Contact created.

Note: This method can also be called under Reseller permissions.