信息回调通知

信息回调通知

post

订阅消息后,接入方需要按照此接口要求提供并配置,交易系统会在需要发送消息时,调用此接口进行消息回传

Header parameters
companyIdstringRequired

公司ID

Example: {{company}}
tracestringRequired

全局链路唯一标志

Example: {{mock_trace}}
apiKeystringRequired

apiKey

Example: {{apikey}}
recvWindowstringOptional

时间窗口

Example: 5000
signaturestringRequired

签名

Example: {{sign}}
langstringOptional

语言

Example: zh-CN
versionstringOptional

接口版本

Example: 0.0.1
Body
msgTypestringRequired

消息类型,trade 交易消息

contentstringRequired

消息内容,字符串数据

Responses
200Success
application/json
post
POST /notification HTTP/1.1
Host: 
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