信息回调通知
订阅消息后,接入方需要按照此接口要求提供并配置,交易系统会在需要发送消息时,调用此接口进行消息回传
Header parameters
companyIdstringRequiredExample:
公司ID
{{company}}tracestringRequiredExample:
全局链路唯一标志
{{mock_trace}}apiKeystringRequiredExample:
apiKey
{{apikey}}recvWindowstringOptionalExample:
时间窗口
5000signaturestringRequiredExample:
签名
{{sign}}langstringOptionalExample:
语言
zh-CNversionstringOptionalExample:
接口版本
0.0.1Body
msgTypestringRequired
消息类型,trade 交易消息
contentstringRequired
消息内容,字符串数据
Responses
200Success
application/json
msgstringRequired
返回信息
failbooleanRequired
是否异常
tracestringRequired
全局链路标志信息
codestringRequired
系统通用返回码。0-成功,其他异常
bizCodestringRequired
模块标识码
tmintegerRequired
处理时长(毫秒)
msgParamsnullRequired
返回描述中占位符参数串,多个参数间以,分割
okbooleanRequired
状态标志
databooleanRequired
是否接收成功
post/notification
POST /notification HTTP/1.1
companyId: text
trace: text
apiKey: text
signature: text
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"msgType": "text",
"content": "text"
}200Success
{
"msg": "text",
"fail": true,
"trace": "text",
"code": "text",
"bizCode": "text",
"tm": 1,
"msgParams": null,
"ok": true,
"data": true
}Last updated