Webhook subscription
Subscribe to various messages, such as transaction information. For details, please refer to the transaction notification message description.
Header parameters
companyIdstringRequiredExample:
Company ID
{{company}}
tracestringRequiredExample:
Global link unique identifier
{{mock_trace}}
apiKeystringRequiredExample:
apiKey
{{apikey}}
recvWindowstringOptionalExample:
time window
5000
signaturestringRequiredExample:
sign
{{sign}}
langstringOptionalExample:
language
zh-CN
versionstringOptionalExample:
Interface version
0.0.1
Body
apiKeystringRequired
apiKey
webhookUrlstringRequired
Message notification callback address
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