Hi
I’m trying to utilize a web hook where the first 'POST send info in order to activate the service. It provides a ID that is required for all additional activities including canceling. Problem is the response ID becomes part the URL for all requests after the first
Example"
First URL: https://site.com returns AP947979
so all additional URLs for an additional request become https://site.com/AP947979 include the one needed to close
I can’t see anyway to create a dynamic URL to accomplish this. Can anyone else?
You can also use handlebars fields in the URL.
So when you send the ID as something like { "url_path":"AP947979", ... } you can use it in the webhook definition for the URL as https://site.com/{{url_path}}.
When you not provide that field or keep it empty this will result in https://site.com/ and when you pass it the resulting URL would be https://site.com/AP947979.
Got correct id in url but POST doesn’t like the "id: “{{{id}}}” entry
Normally the POST would send:
{
“pin”: “1234”,
“status”: “CANCELED”
}
But when I add
{
“id”: “{{{id]}}”,
“pin”: “1234”,
“status”: “CANCELED”
}
it comes back invalid, How do I accomplished this?