Skip to main content
Level 1
May 25, 2022 7:27 PM UTC
Solved

Samples for /rest/v1/leads/{leadId}/associate.json

Hi,

 

I am trying to use this associate api to fill in Munchkin Cookie Id. While searching in Github, I find that the input is not consistent across languages. link

 

Could I know which payload is correct to associate leads with cookie id?

 

  1. {Cookie: "_mkto_trk=id:299-BYM-827&token:_mch-localhost-1435105067262-67189", leadId: "123"}
  2. {Cookie: "id:299-BYM-827&token:_mch-localhost-1435105067262-67189", leadId: "123"}

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Darshil_Shah1
Darshil_Shah1Accepted solution
Adobe Champion, Community Advisor, UG Leader
May 25, 2022 7:33 PM UTC

The API expects the cookie value, which is what you've in the 2nd option. Also, you should URI encode the '&' in the cookie value, i.e., use %26 instead of '&'

 

2 replies

Darshil_Shah1
Adobe Champion, Community Advisor, UG Leader
Darshil_Shah1Adobe Champion, Community Advisor, UG LeaderAccepted solution
Adobe Champion, Community Advisor, UG Leader
May 25, 2022 7:33 PM UTC

The API expects the cookie value, which is what you've in the 2nd option. Also, you should URI encode the '&' in the cookie value, i.e., use %26 instead of '&'

 

Translate
SanfordWhiteman
User Group Leader
User Group Leader
May 25, 2022 8:15 PM UTC

You’re right that there’s a bug in the PHP version, but the REST API docs themselves are clear that it’s the cookie value. Not the entire name=value pair.

Translate