Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Custom Merge Tags in Mailchimp API 3.0

I have get around everywhere, but cannot find any clue to add custom merge tags through the api v3.0. The documentation seems to be very poor and cryptic.

I saw that in the previous version, it can be done through listMergeVarAdd() method.

What I want to do is adding any merge_tags dynamically.

How do I can add custom merge_tags through mailchimp api 3.0 for the use in a custom subscribe form?

like image 524
Ari Avatar asked Sep 22 '15 15:09

Ari


1 Answers

Since v3.0 is RESTful, you make a POST call to the /3.0/lists/{list_id}/merge-fields endpoint. The data you pass should match the List Merge Field Instance schema.

like image 129
TooMuchPete Avatar answered Dec 30 '22 22:12

TooMuchPete