Webhooks
Security Implementation

WARNING
POST
ing data, allows you to authenticate the sender. Otherwise, deny any other suspicious requests.Regsiter Webhooks
Parameter | Type | Description |
---|---|---|
name | string | Webhook Name |
event | string | Webhook Event From Event List |
version | number | Webhook Version; of the webhook; either valued as 1 or 2 . |
rule | string | Operations, expressions and conditions to your webhook. For example, you may use = ,!= ,AND ,OR etc in such a menner: payment_method = YOUR_PAYMENT_METHOD or in combination payment_method = mada OR price < 50 . That adds more capbility to filter the response based on conditions |
url | string | Webhook URL where you will receive the webhook calls |
headers | array[object] | Webhook headers containing security info |
headers.key | string | Any haeder key, which its value is sent in the post request to the webhook URL |
headers.value | string | The value sent to the webhook; for example: cf-ray: 669af54ecf55dfcb-FRA |
secret | string | Secret Token value |
version | string | Webhook Version; either valued as 1 or 2 . |
rule | string | Operations, expressions and conditions to your webhook. For example, you may use = ,!= ,AND ,OR etc in such a menner: payment_method = YOUR_PAYMENT_METHOD or in combination payment_method = mada OR price < 50 . That adds more capbility to filter the response based on conditions. Read more here |
WARNING
2
. By default, all new registered webhooks will be set as version 2
. If you want to use version 1
of the webhook, pass that in your request parameter. Additionally, Salla will assign the Security Strategy to Signature
by default in case you registered a webhook with no security strategy defined in your body request.Security Strategies
✍️ Using Signature
🔑 Using Token
For all created Partner Apps, Salla will assign the

Following is the expected request payload for the
signature
security strategy by default, as Salla will hash payloads via an auto-generated, reproducable signature token. It will also append two headers to the webhook payload; the security startegy used as in X-Salla-Security-Strategy
which is in this context Signature
, and a hashed token signature as in 4d7dac8e688eca1c1xxxx
Security Startegy | Header | Token Suffix |
---|---|---|
Signature | X-Salla-Security-Strategy | X-Salla-Signature |

Register Endpoint
Signature
security strategy:webhook_request_body
name
string