- Welcome 👋
- Get Started
- 水合失败
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- 测试
- APIs
- Orders
- Order Status
- Order Histories
- Abandoned Carts
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- 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
- Orders
- Webhooks - Store Events
- 其他资源-Module
- 其他资源 Copy
Update Webhook
Develop Env
https://echo.apifox.com/anything
Develop Env
https://echo.apifox.com/anything
PUT
https://echo.apifox.com/anything
Webhooks
Last modified:2025-02-20 07:53:20
Maintainer:Not configured
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://echo.apifox.com/anything/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

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

