Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 - Invalid interest ID: 'c06bb4b529'. #294

Open
nekromoff opened this issue Apr 15, 2020 · 4 comments
Open

400 - Invalid interest ID: 'c06bb4b529'. #294

nekromoff opened this issue Apr 15, 2020 · 4 comments

Comments

@nekromoff
Copy link

nekromoff commented Apr 15, 2020

Hi,

I am getting error mentioned in the title. However, I am sure interest with that ID exists, as I can see it both in the admin and in the API playground.

$payload = [
        'email_address' => $data['email'],
        'status'        => 'subscribed',
    ];
    if (isset(INTERESTS[$data['campaign_id']])) {
        $payload['interests'] = ['c06bb4b529' => true];
    }
    $result = $mailchimp->post('lists/' . $list_id . '/members', $payload);

result

Array
(
    [type] => http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/
    [title] => Invalid Resource
    [status] => 400
    [detail] => Invalid interest ID: 'c06bb4b529'.
    [instance] => 5a20481d-e4a8-40da-845b-[redacted]
)

Any ideas?

@Tbiniimene
Copy link

I'm having the same issue even tho I have the correct id

@Tbiniimene
Copy link

help?

@WaqarTabish2807
Copy link

same issue

@Tbiniimene
Copy link

You have to figure out how your Mailchimp account is set up (groups or tags and how they are actually set up) and write your code accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants