Create an account now!
HOME FEATURES PRICING CONTACT US ABOUT CUSTOMER LOGIN

Contact.AddorUpdateContact

Adds a contact to your account, if the contact already exists, it will be updated. Go here for the WSDL.

Input Parameters

Here's a list of all the parameters you'll need to pass to the Contact.AddorUpdateContact method. All of the parameters are required.

ApiKey: string

Your API access key. Go here for more details.

Email: string

The email address of the new/updated contact.

ExtraFields: ContactExtraField[ ]

An array of type ContactExtraField, used for passing in extra contact data. Go here for more details.

StartState: integer

The starting state for a new contact:
  0 = Active, don't send any message.
  1 = Send welcome message. Configured under Account >> Settings
  2 = Send verification message. Configured under Account >> Tools >> Subscribe form >>
       Verification email

Return Codes

0: System Failure

The insert/update failed due to a system failure.

1: Success

The insert/update was successful.

100: Invalid API Key

The API key passed was not valid or has expired.

102: Invalid StartState

The StartState was not recognized. Refer to StartState codes above.

103: ExtraFields contains NULLs

The ExtraFields array contains ContactExtraField or Keys/Values that were NULL.

104: ExtraFields contains unrecognized fields

The ExtraFields array contains unrecognized fields (keys), go here for a list of fields.

105: ExtraFields contains invalid Date

The ExtraFields array contains an invalid date, must in the form of MM/DD/YYYY

107: ExtraFields can not be empty for this function

The ExtraFields array must contain at least one ContactExtraField in the case of an update.

200: Invalid Email

The Email address passed was syntactically invalid.