For alerts in a Discord channel, you do not need this. Those are set up in Settings, under Notifications. Webhooks are for a server of your own.
Adding one
1
Open Developers, then Webhooks, and press Add webhook
Enter the
https address on your server that deliveries are posted to.2
Tick the events
Orders being made, paid, refunded and disputed; subscriptions, Cart Recovery and Payment Routing; stock running low; products, customers and affiliates changing; checkouts your fraud protection turned away. Or take every event. The full list says when each is sent.
3
Keep the signing secret
It is shown once, and starts
shoply_whsec_. Your server uses it to check that a delivery is Shoply’s and not somebody else posting to your address.What your server has to do
- Check the signature on every delivery. How, in four languages.
- Answer
2xxwithin five seconds, and do the work afterwards. - Expect a delivery more than once. Each carries an ID in
X-Shoply-Deliverythat stays the same when it is sent again.
The delivery log
An endpoint’s card shows how its last twenty deliveries went as a strip: green for taken, red for given up on, amber for one still being tried. One going wrong shows there before you open anything. Every delivery is listed under Developers, then Activity, on Webhook Deliveries: the event, where it was sent, and whether your server took it. Open one to see the body that was sent and every try, with the status your server answered and the start of what it said, or why it could not be reached.- Send a Test, on an endpoint’s card, posts a test event to it now and tells you the answer.
- Resend, on a delivery in Activity, sends that delivery again.

