AddContact

Overview

Adds a contact to the database via an http form post.  A successful post will return a success message and the contactid for the new contact.

Post Url

https://hyperdrivepro.morethanrewards.com/api/2/AddContact.aspx

- SSL is required

Form Fields

FieldMax Length*RequiredNotes
response_type
YesSet this field value to json to return results in JSON format
accountid
YesMust be numeric. Account ID for this account.
apikey
YesAPI Key for this account.
teammemberid
NoMust be numeric. Team Member ID. Defaults to 0 (Account Owner). If a team member is selected that does not “own” a database, the new contact will be put into the database that the user shares.
firstname50YesDatabase requires both first and last name
lastname50YesDatabase requires both first and last name
birthday10NoBirthday year is optional. Use only formats MM/DD or MM/DD/YYYY. Zero pad leading digits, so month and day are always 2 digits. January 5th is 01/05.
otherfirstname50No
otherlastname50No
otherbirthday10NoBirthday year is optional. Use only formats MM/DD or MM/DD/YYYY. Zero pad leading digits, so month and day are always 2 digits. January 5th is 01/05.
company50No
address50No
city50No
state20NoRecommended that this be the 2 digit state code for US addresses
postalcode20No
phone120NoWill automatically be formatted to (xxx) xxx-xxxx
phone1note20NoRecommended that description is used if known (work, home, mobile, etc…)
phone220NoWill automatically be formatted to (xxx) xxx-xxxx
phone2note20No
phone320NoWill automatically be formatted to (xxx) xxx-xxxx
phone3note20No
phone420NoWill automatically be formatted to (xxx) xxx-xxxx
phone4note20No
fax20NoWill automatically be formatted to (xxx) xxx-xxxx
email75No
otheremail75No
custom150NoRecommended that you only use custom fields when user’s exact custom field mapping is known
    …  …  …Custom 1 through 20
custom2050No
memo50NoBrief memo for contact. This is not a note, but a brief memo that shows up on the contact’s page. Recommended less than 100 characters.
category50NoMust match the name of an existing Category exactly. Any mismatch will result in the category not being assigned.
category250No

Must match the name of an existing Category2 exactly. Any mismatch will result in the category2 not being assigned. (This is the customizable category)

source50NoMust match the name of an existing Source exactly. Any mismatch will result in the source not being assigned.
othersystemid32NoFor tracking the ID of this contact in another system
addednote
NoWhen a contact is added via the API, a note is added to the contact record. The default is “Contact Added via API”. You can override the default note with this field.

* An error will not result if Max Length is exceeded. Data will be trimmed to this length.

Sample Results

Success Message

<?xml version="1.0"?> 
<results>
     <message>Success</message>
     <contactid>15631</contactid> 
</results>

Sample Failure Message

<?xml version="1.0"?> 
<results>
     <error>Authentication failed</error> 
</results>