AnsweredAssumed Answered

Creating new Campaign in MailChimp.

Question asked by anburaajaacse on Nov 13, 2017
Latest reply on Apr 25, 2018 by AndresLP

Hi All,

I have used a cURL to create a new campaign in Mailchimp. The code is given below.

 

Url https://us16.api.mailchimp.com/3.0/campaigns —X POST --user 'somevalue:xxxxxxxxxxApikeyxxxxxxxxxxx-us16'--header 'content-type: application/json' --data '{"recipients":{"list_id":"5950d3cee7"},"type":"regular","settings":{"subject_line":"Test Receipt","reply_to":"orders@testhouse.com","from_name":"Customer Service"}}'

 

When I run this URL it produce the below error.

 

{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Wrong Datacenter","status":403,"detail":"The API key provided is linked to a different datacenter","instance":"7dd2a2a9-6473-4e52-9673-f4cba87b19ea"}

But, I have used valid Apikey. The same coding, working properly in Terminal.

Please help me to sort out this issue in FM.

 

 

Thanks in Advance,

Outcomes