With the MailChimp API, to add a member to a list with a specific interest group, you need both that list\'s ID and the interest group\'s ID.
To get both those IDs, you
What worked for me was using playground: https://us1.api.mailchimp.com/playground/
And then to use it, what worked for me was exactly like these:
$json = json_encode([
'email_address' => $data['email'],
'status' => "subscribed", // "subscribed","unsubscribed","cleaned","pending"
//'tags' => array('es'),
'merge_fields' => [
'FNAME' => $data['name'],
'USER' => $data['user'],
'COUNTRY' => $data['country'],
'BIRTHDATE' => $data['birthdate'],
'SUBSCRIP' => $subsription
],
"interests" => array(
'PLACE_HERE_THE_ID' => true
)
]);
Hope this helps :)