Adding contact to MailChimp
This article will briefly outline how you can create a LeadByte delivery that will add subscribe leads to a particular list in MailChimp.
Getting Started
We have a prebuilt remote system to help you complete deliveries like this.
If you wish to use this remote system but you can not see it on your account, please get in touch with support at support@leadbyte.co.uk
The URL will be pre-populated with the below:
https://{INSTANCE}.api.mailchimp.com/3.0/lists/{LIST}/members/
Your instance will be provided by MailChimp and you can use the below article to get your list ID:
https://mailchimp.com/help/find-audience-id/
Authentication
Scroll down to the advanced settings and enable "HTTP authentication". Add "user" into the Username field and your API Key from MailChimp into the Password field:
Delivery Body
Format your delivery like below:
{
"email_address": "[email]",
"status": "subscribed",
"merge_fields": {
"FNAME": "[firstname]",
"LNAME": "[lastname]"
}
}
If you have more fields you wish to send over to MailChimp, you'll need to add to the Merge field list.
The below article explains this in detail:
https://mailchimp.com/developer/marketing/docs/merge-fields/#the-basics
Successful response
You'd be looking for a response which included "status": "subscribed". Anything else suggests that the email was not successfully added to your contact list!
As always please raise a support ticket with any issues you encounter.
Comments