Getting your secret key
First head to the webhook configuration panel in your site settings and find the secret key value assigned to your shop, e.g.:Verifying the signature
Each webhook request comes with anX-Fourthwall-Hmac-SHA256 base64 encoded header. To verify the request:
- Compute the HMAC-SHA256 using your secret key and the entire webhook body
- Base64 encode the result
- Compare with the header value
Signature verification for Platform Apps
The verification process for Platform Apps is the same, but uses a different header:X-Fourthwall-Hmac-Apps-SHA256.
You can get your HMAC key in your app’s settings.