• Resolved zzanna

    (@zzanna)


    Hello,
    i tried to solve the problem by myself reading other support request but i can’t find a way.
    The privacy policy checkbox seems to be the problem but i cannot understand how to solve it.
    Can you help me?

    Here the log:

    [2023-11-06 17:12:20] ERROR: Contact Form 7 > Mailchimp API Error: Bad Request. Invalid Resource. Your merge fields were invalid.

    PRIVACY : Value must be one of: Il sottoscritto dichiara di aver letto e di accettare l’informativa sulla privacy presente sul sito (not 1)
    Request:
    POST https://us16.api.mailchimp.com/3.0/lists/114aee34fd/members
    {“status”:”pending”,”email_address”:”nico@ti.it”,”interests”:{},”merge_fields”:{“COGNOME”:”Zanoli”,”NOME”:”Nicola”,”PRIVACY”:”1″},”email_type”:”html”,”ip_signup”:”81.56.67.218″,”tags”:[]}
    Response:
    400 Bad Request
    {“type”:”https://mailchimp.com/developer/marketing/docs/errors/”,”title”:”Invalid Resource”,”status”:400,”detail”:”Your merge fields were invalid.”,”instance”:”2386c2a6-a09f-dca3-27a5-9b7dcaed8a63″,”errors”:[{“field”:”PRIVACY”,”message”:”Value must be one of: Il sottoscritto dichiara di aver letto e di accettare l\u2019informativa sulla privacy presente sul sito (not 1)”}]}

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Lap

    (@lapzor)

    In Mailchimp (under Audience settings > Field) the field Privacy is set up as a select field, only allowing specific value: “Il sottoscritto dichiara di aver letto e di accettare l’informativa sulla privacy presente sul sito”

    but the value being sent in by the form is “1”

    Either change the checkbox value to conform to the allowed value, or change the Mailchimp field settings to allow other values.

    Hope that helps. If you have any questions, please let me know!

    Thread Starter zzanna

    (@zzanna)

    Hi Lap,
    thanks for the tip, now it seems to works fine

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mailchimp API Error: Bad Request. Invalid Resource.’ is closed to new replies.