Contact.AddContact
Adds a contact to your account. Allows you to send a verification message or your welcome message upon creation. Go here for the WSDL.
Input Parameters
Here's a list of all the parameters you'll need to pass to the Contact.AddContact method. All of the parameters are required unless otherwise noted.
ApiKey: string
Your API access key. Go here for more details.
Email: string
The email address of the new contact.
ExtraFields: ContactExtraField[ ]
An array of type ContactExtraField, used for passing in extra contact data. Go here for more details. This field is optional, so if you don't want to use it, just pass a NULL value.
StartState: integer
The starting state for the 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 failed due to a system failure.
1: Success
The insert 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
200: Invalid Email
The Email address passed was syntactically invalid.
201: Email Already Exists
The Email address already exists in the system, use Contact.Update instead.