- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Update Webhook
Production
Production
PUT
https://api.salla.dev/admin/v2/webhooks/{id}
Webhooks
Last modified:2025-03-04 12:54:02
id
as path parameterNote
Information
Alert
• The added URL must accept
PUT
requests.• By default, all new webhooks are registered as version
2
. To use version 1
, specify it in your request parameters.Scopes
webhooks.read_write
- Webhooks Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
id
integer
required
Example:
773200552
Body Params application/json
name
string
optional
Example:
Salla Update Customer Event
url
string
optional
requiredif
no ID is passed.Example:
https://webhook.site/07254470-c763-4ee3-bef1-ab2480262814
version
enum<integer>
optional
1
or 2
Allowed values:
12
Example:
2
rule
string
optional
=
,!=
,AND
,OR
etc in such a menner: payment_method = YOUR_PAYMENT_METHOD
or in combination company_id = 871291 OR price < 50
. That adds more capbility to filter the response based on conditionsExample:
payment_method = mada OR price < 50
headers
array [object {2}]
optional
key
string
optional
Example:
Your Secret token key name
value
string
optional
cf-ray: 669af54ecf55dfcb-FRA
Example:
Your Secret token value
security_strategy
string | null
optional
secret
string
optional
Example
{
"name": "Salla Update Customer Evensst",
"version": 2,
"rule": "payment_method = mada OR price < 50",
"headers": [
{
"key": "Your Secret token key name",
"value": "Your Secret token value"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.salla.dev/admin/v2/webhooks/773200552' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Salla Update Customer Evensst",
"version": 2,
"rule": "payment_method = mada OR price < 50",
"headers": [
{
"key": "Your Secret token key name",
"value": "Your Secret token value"
}
]
}'
Responses
🟢200Success
application/json
Body
status
integer
required
success
boolean
required
data
object
required
id
integer
required
name
string
required
event
string
required
version
integer
required
rule
string
required
url
string
required
headers
object
required
type
string
required
security
object
required
Example
{
"status": 200,
"success": true,
"data": {
"id": 773200552,
"name": "Salla Update Customer Evensst",
"event": "test",
"version": 2,
"rule": "payment_method = mada OR price < 50",
"url": "https://webhook.site/fake_url",
"headers": {
"Your Secret token key name": "Your Secret token value"
},
"type": "manual",
"security": {
"strategy": "",
"secret": null
}
}
}
🟠422Error Validation
🟠401Unauthorized
Modified at 2025-03-04 12:54:02