function contact.create

** page under construction **

The contact.create function allows you to specify contacts on your account. Its primary role is currently for setting the default account contact for a customer's account. This functionality may be extended in the future.

Arguments:

argrequired?syntaxinfo
ownerIDYposintcustID of account to which this contact is to belong
descNstringbrief textual description of contact (max 80 chars)
rolesYlist:account|domreg|domadmin|domtech|dombillingList of roles for this contact
defaultNlist:account|domreg|domadmin|domtech|dombillingList of roles for which this contact is the default
alias_ofNposintcontactID of contact for which this is to be an alias
alias_of_custIDNposintcustID of an account that has access to the contactID referenced in alias_of
titleNstringcontact title, eg Mr, Mrs
fnameYstringcontact first name
lnameYstringcontact last name
orgnameNstringname of business/organisation (if applicable)
deptnameNstringname of department (if applicable)
addr1Ystringaddress line 1
addr2Nstringaddress line 2
addr3Nstringaddress line 3
addr4Nstringaddress line 4
addr5Nstringaddress line 5
townYstringaddress town
countyYstringaddress county
postcodeYstringaddress postcode/zip code
countrycodeYstringaddress country code (2 character country code, eg "UK")
phoneYstringprimary contact phone number
interphoneYstringprimary contact phone number in international format +countrycode.number eg +44.1234567890
faxNstringfax number
interfaxNstringfax number in international format
mobileNstringcontact mobile phone number
directphoneNstringcontact direct phone number
phone_timesYlist:daytime|evening|weekend|24/7list of times (UK time) it is acceptable to call the phone number
interphone_timesYlist:daytime|evening|weekend|24/7list of times (UK time) it is acceptable to call the interphone number
mobile_timesif mobile definedlist:daytime|evening|weekend|24/7list of times (UK time) it is acceptable to call the mobile number
fax_timesif fax definedlist:daytime|evening|weekend|24/7list of times (UK time) it is acceptable to call the fax number
interfax_timesif interfax definedlist:daytime|evening|weekend|24/7list of times (UK time) it is acceptable to call the interfax number
directphone_timesif directphone definedlist:daytime|evening|weekend|24/7list of times (UK time) it is acceptable to call the directphone number
emailYstringmain contact email address
email2Nstringadditional contact email address
email3Nstringadditional contact email address
wwwNstringmain contact web site address

Further argument information

roles

An array or comma separated list consisting of

default

Same format as the roles argument; defines the roles for which this contact is to be the default contact.

Specifying 'account' in the [default] argument is a special case - this will change the main account address to match what is in this contact record.