Register Webhook
Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
POST
https://api.salla.dev/admin/v2
Webhooks
Last modified:2025-04-16 14:05:44
Note
Information
Alert
• The added URL must accept
POST
requests.• By default, all new webhooks are registered as version
2
. To use version 1
, specify it in your request parameters.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/webhooks/subscribe' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Salla Update Customer Event",
"event": "customer.updated",
"url": "https://webhook.site/07254470-c763-4ee3-bef1-ab2480262814",
"version": 2,
"rule": "payment_method = mada OR price < 50",
"headers": [
{
"key": "Your Secret token key name",
"value": "Your Secret token value"
}
]
}'
Response Response Example
200 - Webhook V2
{
"status": 200,
"success": true,
"data": {
"id": 60587520,
"name": "Salla Update Customer Event",
"event": "customer.updated",
"type": "manual",
"url": "https://webhook.site/07254470-c763-4ee3-bef1-ab2480262814",
"version": 2,
"rule": "payment_method = mada OR price < 50",
"headers": {
"Authorization": "abcd1234",
"Accept-Language": "AR"
}
}
}
Request
Body Params application/json
Responses
Modified at 2025-04-16 14:05:44