SOLVED

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

Go to solution
ebo
Level 1
Level 1

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

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

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

 

View solution in original post

2 REPLIES 2
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

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

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 - Community Moderator

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

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.