The headers of a webhook request, how to verify its signature, where the signing secret is, and when a delivery is retried.
Where to find itShopWebhooks (events we send you)Edit
Plan
Growth
Needs
Included with the plan
Who can use this
Shop owner, Shop Manager
The request
One POST per event per webhook. The JSON body is written once and sent unchanged on every attempt. Its fields are on Webhook events.
Header
Value
Content-Type
application/json
User-Agent
QuickCommerce-Webhooks/1.0
X-Webhook-Id
The same as id in the body
X-Webhook-Event
The same as event in the body
X-Webhook-Timestamp
When this attempt was sent: unix time in seconds. New on every attempt
Signature
64 lowercase hexadecimal characters, with no prefix
Verify the signature
Signature is the HMAC-SHA256 of the text {timestamp}.{raw body}, keyed with the webhook's signing secret and written as lowercase hexadecimal. {timestamp} is the value of X-Webhook-Timestamp.
Take the body exactly as it arrived: the raw bytes, before any JSON parsing. A body that was parsed and written out again does not match.
Join the X-Webhook-Timestamp value, a full stop and the raw body.
Compute the HMAC-SHA256 of that text with the signing secret as the key. Write it as lowercase hexadecimal.
Compare the result with the Signature header using a constant-time comparison. Refuse the request when they differ.
Refuse the request when X-Webhook-Timestamp is more than 5 minutes away from your clock. This stops an old request from being replayed.
Refuse every request when your receiver has no secret configured. An empty secret would accept a forged request.
Every attempt is signed again with a new timestamp over the same body. A retry, or a delivery resent days later, still passes the 5-minute check.
The Developer reference on the webhooks page has ready-made PHP, Node.js and Python samples.
The signing secret
Each webhook has its own secret. It starts with whsec_.
Open Shop › Webhooks (events we send you), then Edit on the webhook. The Signing secret card is below the form.
Control
What it does
1. Show
Shows the secret. The button then reads Hide. Each view is written to the shop's activity log
2. Rotate secret
Asks for confirmation, then creates a new secret. You see "New signing secret created. The old one no longer works: update the receiving system now."
Keep the secret out of your code and treat it like a password.
What counts as delivered
Any answer with a 2xx status. Anything else is a failure: another status, a redirect (3xx, never followed), a timeout or a failed connection.
Answer first, work later. Reply 2xx once you have checked the signature and stored the event, then process it in the background.
Retries
Rule
Value
Time allowed for your answer
5 seconds in all, 3 seconds to connect
Attempts
3 in all
Wait before each new attempt
10 seconds, then 100 seconds
After the last failure
The event is Failed in the delivery log. You can resend it by hand
The same event can arrive more than once. Keep the id of the events you handled and skip one you have seen.
A webhook that keeps failing is turned off automatically. See The delivery log.
Nothing is sent while a webhook is Paused or turned off, and events from that time are not kept for later.