** 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.
| arg | required? | syntax | info |
|---|---|---|---|
ownerID | Y | posint | custID of account to which this contact is to belong |
desc | N | string | brief textual description of contact (max 80 chars) |
roles | Y | list:account|domreg|domadmin|domtech|dombilling | List of roles for this contact |
default | N | list:account|domreg|domadmin|domtech|dombilling | List of roles for which this contact is the default |
alias_of | N | posint | contactID of contact for which this is to be an alias |
alias_of_custID | N | posint | custID of an account that has access to the contactID referenced in alias_of |
title | N | string | contact title, eg Mr, Mrs |
fname | Y | string | contact first name |
lname | Y | string | contact last name |
orgname | N | string | name of business/organisation (if applicable) |
deptname | N | string | name of department (if applicable) |
addr1 | Y | string | address line 1 |
addr2 | N | string | address line 2 |
addr3 | N | string | address line 3 |
addr4 | N | string | address line 4 |
addr5 | N | string | address line 5 |
town | Y | string | address town |
county | Y | string | address county |
postcode | Y | string | address postcode/zip code |
countrycode | Y | string | address country code (2 character country code, eg "UK") |
phone | Y | string | primary contact phone number |
interphone | Y | string | primary contact phone number in international format +countrycode.number eg +44.1234567890 |
fax | N | string | fax number |
interfax | N | string | fax number in international format |
mobile | N | string | contact mobile phone number |
directphone | N | string | contact direct phone number |
phone_times | Y | list:daytime|evening|weekend|24/7 | list of times (UK time) it is acceptable to call the phone number |
interphone_times | Y | list:daytime|evening|weekend|24/7 | list of times (UK time) it is acceptable to call the interphone number |
mobile_times | if mobile defined | list:daytime|evening|weekend|24/7 | list of times (UK time) it is acceptable to call the mobile number |
fax_times | if fax defined | list:daytime|evening|weekend|24/7 | list of times (UK time) it is acceptable to call the fax number |
interfax_times | if interfax defined | list:daytime|evening|weekend|24/7 | list of times (UK time) it is acceptable to call the interfax number |
directphone_times | if directphone defined | list:daytime|evening|weekend|24/7 | list of times (UK time) it is acceptable to call the directphone number |
email | Y | string | main contact email address |
email2 | N | string | additional contact email address |
email3 | N | string | additional contact email address |
www | N | string | main contact web site address |
An array or comma separated list consisting of
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.