Followers Are Great, Contacts Are Gold. Create a Free AI-Quiz With Lead Magnet to Share With Your Followers and Own Your Contacts!

V3 API suddenly failing with both post and put requests

RonaldA9
Rookie
0 Votes

I have a custom form for our patrons to subscribe to our email list, which has been working for a long time. As of today we cannot add new subscribers (post request) or update existing subscribers (put request) because we get the following error:

 

requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.cc.email/v3/contacts

 

Here is the post request with names and field ids changed to protect the innocent:

 

{'contact_data': {'create_source': 'Contact',
'custom_fields': [{'custom_field_id': '54ab04ba-b9f2-11ed-987c-fa163eb65cb7',
'value': ''}],
'email_address': {'address': 'ronaldaaronson@hotmail.com',
'confirm_status': 'off',
'permission_to_send': 'explicit'},
'first_name': 'Ron',
'last_name': 'Aaronson',
'list_memberships': ['c175661c-b9e8-11ed-b3a8-fa163e0234d4'],
'phone_numbers': [{'kind': 'home',
'phone_number': ''},
{'kind': 'mobile',
'phone_number': ''},
{'kind': 'work',
'phone_number': ''}],
'street_addresses': [{'city': '',
'country': 'US',
'kind': 'home',
'postal_code': '',
'state': '',
'street': ''}]},
'request_type': 'post',
'url': 'https://api.cc.email/v3/contacts'}

 

As an image with better formatting:

 

RonaldA9_0-1740256693062.png

 

Any help is appreciated!

0 REPLIES 0
  • Avatar

    Featured Article

    The Power of Direct Subscriber Feedback: Measuring Customer Satisfaction

    Today, understanding customer satisfaction is crucial. How can you know if customers are happy with your products or services?

    See Article
  • Avatar

    Featured Thread

    The Unintentional Humor of Spam Emails

    Have you ever wondered who or what is on the other side of a spam email? Take 10 minutes out of your day and watch this lighthearted video!

    View thread
  • Avatar

    Featured Thread

    How to Create Images of Multi-Page PDFs

    Discover the process of transforming PDFs with multiple pages into image files directly on Constant Contact.

    See Article
Updates
Just Getting Started?

We’re here to help you grow. With how-to tutorials, courses, getting-started guides, videos and step-by-step instructions to start and succeed with Constant Contact.

Start Here

73% of SMBs express doubt that their marketing strategy is effective. Does this sound familiar? Read our Small Business Now Report to learn how you can tweak your strategy to see better results.

Go read our article
Upcoming Webinars
FEB 27
From Blank Page to Engaged: Marketing When You’re Not Sure What to Send
2PM - 3PM EST