cancel
Showing results for 
Search instead for 
Did you mean: 
In recognition of Martin Luther King Day, our Support Centers will be open with limited hours on Monday (1/20) from 10AM ET to 6PM ET.
Visit our Help Center to see all of the ways you can find answers to your questions.

400 failure when adding contact

New Member

400 failure when adding contact

I have a form and server-side PHP code based on the PHP sample from ConstantContact. It returns a 400 error when I try to add a contact.  If I use an email address I know is already in my contacts, I correctly get an "email address already exists" error, so that indicates there is no issue with login, authentication.  But I can't figure out why the operation is failing for new contacts. Below is the XML that I'm sending. Any ideas?


Thanks


Andy


 


<?xml version="1.0"?>
<entry xmlns="http://www.w3.org/2005/Atom">
<title type="text">Contact</title>
<updated>2010-03-16T12:33:42Z</updated>
<author><name></name></author>
<id>data:,none</id>
<summary type="text">Contact</summary>
<content type="application/vnd.ctct+xml">
<Contact xmlns="http://ws.constantcontact.com/ns/1.0/">
<EmailAddress>blah@test.com</EmailAddress>
<EmailType>HTML</EmailType>
<FirstName>Joe</FirstName>
<LastName>Blogs</LastName>
<OptInSource>ACTION_BY_CONTACT</OptInSource>
<HomePhone>999-999-9999</HomePhone>
<Addr1>123 A Drive</Addr1>
<City>B</City>
<PostalCode>94999</PostalCode>
<Note>Blah Blah</Note>
<CustomField0>1</CustomField0>
<CustomField1>1</CustomField1>
<CustomField2>1</CustomField2>
<CustomField3></CustomField3>
<CustomField4>1</CustomField4>
<ContactLists>
<ContactList id="http://api.constantcontact.com/ws/customers/goaplus/lists/1"/>
</ContactLists>
</Contact>
</content>
</entry>



1 REPLY 1
Highlighted
CTCT Employee

My apologies for the delay in

My apologies for the delay in response. We had created a new thread to address this issue as it was a temporary system wide problem. The posting can be found here: http://developer.constantcontact.com/node/972.


 


Your XML works fine when tested in the REST Client so I am assuming that you should be all set now.

Dan H

Support Engineer, Constant Contact