Samples for /rest/v1/leads/{leadId}/associate.json | Community
Skip to main content
Level 1
May 25, 2022
Solved

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

  • May 25, 2022
  • 2 replies
  • 1807 views

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.
Best answer by Darshil_Shah1

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
Community Advisor and Adobe Champion
Darshil_Shah1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 25, 2022

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 '&'

 

SanfordWhiteman
Level 10
May 25, 2022

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.