The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

The requested URL returned error: 400

Regular Visitor

The requested URL returned error: 400

I noticed that existing contacts (by email search) were not getting updated thorugh the API.

Here is my XML request:


<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="">
        <name>CTCT Samples</name>
    <summary type="text">Customer document</summary>
    <content type="application/vnd.ctct+xml">
        <Contact xmlns="">Customer document<EmailAddress>myemail@mycomp.tld</EmailAddress>
            <Addr1>101 N Way</Addr1>
            <City>My City</City>
                <ContactList id=""/>
                <ContactList id=""/>
                <ContactList id=""/>
                <ContactList id=""/>
                <ContactList id=""/>
                <ContactList id=""/>
                <ContactList id=""/>

For which I'm getting a 400 error.


The requested URL returned error: 400

Can anyone see where I'm going wrong?


Honored Contributor

Re: The requested URL returned error: 400



I want to start by apologizing for my delay in getting back to you on this. Based on the XML that you have provided, I can see a few potential issues:


1. You have a single contact list ID that begins with https:// while the format for the ID URIs is to begin with http://

2. Your StateCode field element contains the word State rather than a valid two-character state code (Such as MA)

2a. Your StateName field should contain the matching full name of the state specified in the StateCode field (Such as Massachusetts)

3. You have specified the same lists (3,8,21) twice in your request. They should only listed once per unique list ID.


Hopefully this is enough information to help you get this issue sorted out. If these items do not provide enough information to get this request working, you will want to make sure that you capture the HTTP Response text when you receive a 400 error. This response text will contain an error message describing what the problem is and may provide enough information to correct the problem.


Best Regards,

Elijah G.
API Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More