UpdateContact

Overview

Update a contact in the database via an http form post.

Post Url

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

- SSL is required

Important Note

Submitting a blank field (for all non-required fields) will result in clearing the data for that field out of the database. If you don’t want to change a field, do not submit it with the form.

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. 
identifymethod1YesValues:

1 : By contactid (It’s recommended that you use this method and store our contactid in your system)

2 : By primary email on file. If there are multiple matches for the email address, we will choose the first one (by add date)

3: By email or other email on file.  If there are multiple matches for the email address, we will choose the first one (by add date)

identifyvalue75YesValue changes based on indentifymethod. Must be integer if contactid, otherwise must be an email address on file
firstname50NoDatabase requires both first and last name
lastname50NoDatabase 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
custom150No
 … … …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.
category250NoMust match the name of an existing Category2 exactly. Any mismatch will result in the category2 not being assigned. (This is the customizable contact)
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

* 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> 

<?xml version="1.0"?> 
<results>
     <error>Update failed: Contact not found</error> 
</results>