How to set up Custom hook in Sales Pop
Why do I need webhooks?
A webhook (also called a web callback or HTTP push API) is a way for an app to provide other applications with real-time information. A webhook delivers data to other applications as it happens, meaning you get data immediately. Unlike typical APIs where you would need to poll for data very frequently in order to get it real-time. This makes webhooks much more efficient for both provider and consumer.
As a developer, you may be using a third-party service that provides a webhook to synchronize their data like Udemy, Zapier.
How to make request to Sales Pop Custom Webhook Listener?
Proofo Custom Webhook Endpoint URL is: https://app.proofo.io/webhook/custom
|X-Proofo-App-Id||Your app id at https://app.proofo.io/manage/keys|
|X-Proofo-Hmac-Sha256||You can generate the hash by hashing your request body with sha256 with the shared secret as a salt. Then you base64 the result|
- PHP: base64_encode(hash_hmac('sha256', $body, $sharedSecret, true))
HTTP Request Body:
"city": "Drayton Valley",
|created_at||The timestamp of the order|
|line_items||Array of item in the order|
"title": "Summer Tee"
"product_id" => 1
Once you do that, you can to your campaign notification list can check the result of new notification generated.