Re: Webhooks and JSON

Anonymous
Not applicable

Webhooks and JSON

I have one of my developers working on an integration with close.io. They currently only accept application/JSON calls to their API. I have set both Request Token Encoding and Response Format to JSON, but it does not seem to be sending the data in JSON format. Is there a workaround for allowing this? If not is there a solution that does not involve us creating an intermediary page to pass along the information encoded in JSON?
 
Thanks.
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: Webhooks and JSON

Luke,

When we built and tested the webhooks, we did not include the "www" in the wsdl URL.  This threw everything off.  It is worth a try, after we added this, the JSON data came through without an error.

Rodney J.
Anonymous
Not applicable

Re: Webhooks and JSON

Hi Rodney,

I am not sure I understand 100%. When I use the webhook to send to a third party, I need it to go out with the header of "content-type: application/JSON" instead of "content-type: application/x-www-form-urlencoded" because this third party require json as the content type. I have chosen JSON in both drop downs, but it still seems to send as form-urlencoded.  Any ideas on this?

Thanks.
Anonymous
Not applicable

Re: Webhooks and JSON

Old thread but figured I'd respond in case anyone stumbled across - there is another post that describes the simple solution for this:

Re: webhook does not permit the json type in template - body of post

All you need to do is go to Webhook Actions > Set Custom Header, then add the pair: Content-Type, application/json.

Chris