Webhooks are the primary method for delivering recommendations to connected integrated systems.
Destinations are now called Channels
- At this stage, webhook channels are only available on
Custom Integrated Systems.
Creating a Webhook Channel
In Cherry, click Promotions on the sidebar, then
Channels and then click on
Next, choose which
Custom Integrated System you wish to associate the channel with.
After creating the channel, go to the
Webhook Endpoint field, enter the HTTP/HTTPS location of the webhook channel then save.
This webhook will be called every time the campaign is invoked.
Assocating with Campaign
In the campaign tabs, click on
Add Channel and choose which channel you wish to associate the campaign with.
All webhooks contain a signature validating that Cherry Recommends sent the webhook.
The validation method is similar to Hubspot's
X-Cherry-Signature header contains an important value.
Your should independantly calculate the signature, and compare the value to this header.
To calculate the signature value:
- Append the Request Body to the
Application Secretof the associated
Custom Integrated System.
- Take the SHA256 hash of that value.
- Convert the hashed value to a lowercase hexadecimal string.
Do not expose your Application Secret