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?
Endpoint URL
Proofo Custom Webhook Endpoint URL is: https://app.proofo.io/webhook/custom
HTTP Headers:
Content-Type | application/json |
X-Proofo-App-Id | Your app id at https://app.proofo.io/manage/keys |
X-Proofo-Topic | order/create |
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 Example snippet - PHP: base64_encode(hash_hmac('sha256', $body, $sharedSecret, true)) |
HTTP Request Body:
billing_address | Example: "billing_address": { "city": "Drayton Valley", "country": "Canada", "first_name": "Christopher", "last_name": "Gorski" }
|
created_at | The timestamp of the order |
line_items | Array of item in the order { "title": "Summer Tee" "price": 100, "product_link": "https://product.link" "product_image": "https://product.image.link" "product_id" => 1 }
|
Once you do that, you can to your campaign notification list can check the result of new notification generated.