版本:202201
查询 Webhook 详情
GET/openapi/2022-01/webhooks/:id
通过 Webhook ID 获取指定 Webhook 的详情。
请求
Path参数
id string必填
Webhook ID。
响应
- 200
- 404
200
- application/json
- 数据结构
- 示例
- Result
数据结构
webhook object
idstring
示例:
37593634-c272-4ed5-9096-1a4f1212125eaddressstring
示例:
https://abc.comtopicstring
示例:
order/createcreated_atstring
示例:
2018-08-26T06:50:00Zupdated_atstring
示例:
2018-08-26T06:50:00Zformatstring
示例:
json{
"webhook": {
"id": "37593634-c272-4ed5-9096-1a4f1212125e",
"address": "https://abc.com",
"topic": "order/create",
"created_at": "2018-08-26T06:50:00Z",
"updated_at": "2018-08-26T06:50:00Z",
"format": "json"
}
}
{
"webhook": {
"id": "37593634-c272-4ed5-9096-1a4f1212125e",
"address": "https://abc.com",
"topic": "order/create",
"created_at": "2018-08-26T06:50:00Z",
"updated_at": "2018-08-26T06:50:00Z",
"format": "json"
}
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"record not found!"
]
}
{
"errors": [
"record not found!"
]
}