Webhook订阅
订阅各类消息,例如交易成交信息,详细内容可以参考交易通知消息说明
Header parameters
companyIdstringRequiredExample:
公司ID
{{company}}
tracestringRequiredExample:
全局链路唯一标志
{{mock_trace}}
apiKeystringRequiredExample:
apiKey
{{apikey}}
recvWindowstringOptionalExample:
时间窗口
5000
signaturestringRequiredExample:
签名
{{sign}}
langstringOptionalExample:
语言
zh-CN
versionstringOptionalExample:
接口版本
0.0.1
Body
apiKeystringRequired
apiKey
webhookUrlstringRequired
消息通知回调地址
Responses
200Success
application/json
post
POST /global/admin.admin.CompanyApiKeyDubboService.subscribe HTTP/1.1
Host:
companyId: text
trace: text
apiKey: text
signature: text
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"apiKey": "dc483e80a7a0bd9ef71d8cf973673924",
"webhookUrl": "https://webhook.site/4fe19259-6b56-425a-ab03-f9575e4a2c36"
}
200Success
{
"msg": "Success",
"fail": false,
"trace": "t-h2jv9x-4to64-9mp4wd7-793nv-1661227305",
"code": "0",
"data": "true",
"bizCode": "",
"tm": 236026513,
"msgParams": null,
"ok": true
}
Last updated