Mailchimp API 2.0 lists/subscribe responding with error 250 List_MergeFieldRequired MMERGE4 is required -
i'm attempting use lists/subscribe mailchimp api 2.0 endpoint subscribe email list, keep getting puzzling error. request looks like:
{ "apikey":"myapikey-us5", "id":"listid", "email":{"email":"my@email.com"}, "double_optin":false, "send_welcome":true }
i'm sending https://us5.api.mailchimp.com/2.0/lists/subscribe.json
, getting response:
{ "status": "error", "code": 250, "name": "list_mergefieldrequired", "error": "mmerge4 must provided - please enter value" }
and if specify "merge_vars": {}
still same error. missing here?
it means need provide value mmerge4 merge field. how depends on type of merge field mmerge4 is, this:
{ "apikey":"myapikey-us5", "id":"listid", "email":{"email":"my@email.com"}, "double_optin":false, "send_welcome":true, "merge_vars": { "mmerge4": "something" } }
but should , see type of data is, otherwise might cause issues whomever set required field.
Comments
Post a Comment