Skip to main content
March 14, 2014
Question

JSON - Payload Template - Are we supposed to modify tokens?

  • March 14, 2014
  • 2 replies
  • 1162 views
We are experimenting with webhooks. We selected JSON and configured the content-type to application/json. However the payload received is malformed. It's not json!

Are we suppsoed to change body (template) after ineserting the tokens? If yes, then what does Request Token Encoding really means?

See screen shot of our setup below:





This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Kenny_Elkington
Adobe Employee
Adobe Employee
March 15, 2014

Hey Moran,


To make the payload into well-formed JSON, you need to provide the formatting in the template.  Your example would look something like this:

{
"email" : "{{lead.Email Address}}",
"status" : "{{lead.Lead Status}}"
};

March 15, 2014
Thanks Kenny.. We figured that but were confused what it meant by "Request Token Encoding"? What does it do..