跳转至

事件通知订阅接口

请求方式 body 编码 接口地址
POST application/json UTF-8 集测:https://mchapitest.shengpay.com/merchant/event/subscribe/query
生产:https://mchapi.shengpay.com/merchant/event/subscribe/query

接口描述

查询服务商已经订阅事件分组

请求参数

变量名 类型 必填 示例值 描述
mchId String(10) Y 30057909 服务商商户号
nonceStr String Y nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy 随机字符串
signType String Y RSA 签名方式
sign String Y 签名 (见签名介绍)

请求示例

1
2
3
4
5
6
{
    "mchId": "",
    "nonceStr": "nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy",
    "signType": "RSA",
    "sign": "VJwA2kXDnLiC8bH7Ywzc/fktd5zITLi9d5dobzaf3PCKy7hMecg1zqQz9X9GhqLMj5e2dOeDI2mrF06EJZdugcD+5BW2MA+MK32eMuwoRAh510HSusN2HaE4ser99rLJSvMPn5bEqNdDX83XixGePa4iyFiV0YdOfDu0T6VgDBFwbO0St73j0NxgPrIVM/tTmax1jwsAUl60BG4N+LKZxQYH0whsUOE9jgAjhcX8BD0GC3BMzNaEZyrn6noWvA6Ir95f/ZXww07rp8vPPzn99LtNzBFczx3k3H9o4e4K5BL+d+bzULMm9VvWrSObBri+wMy+VB978wGVftobFUkn/Q=="
}

响应参数

变量名 类型 必填 示例值 描述
returnCode String Y SUCCESS 返回码(SUCCESS/FAIL)
returnMsg String N 返回消息(当returnCode为FAIL时使用)
resultCode String Y SUCCESS 业务结果(SUCCESS/FAIL)
errorCode String N 错误代码(当resultCode为FAIL时使用)
errorCodeDes String N 错误描述(当resultCode为FAIL时使用)
eventGroups String N json数组字符串
eventGroup String(32) Y 分组类型
url String(512) Y 接受通知的url
nonceStr String Y nGBXiNhZjBaFrMGIJAKJQQpfNiSGVjzy 随机字符串
signType String Y RSA 签名方式
sign String Y 签名

响应参数

1
2
3
4
5
6
7
8
{
    "returnCode": "SUCCESS",
    "resultCode": "SUCCESS",
    "eventGroups": "[{\"eventGroup\":\"FUND\",\"url\":\"http://shengxingateway.sdptest.shengpay.com/management/gw/notification/message/93756797\"},{\"eventGroup\":\"CERTIFICATE\",\"url\":\"http://shengxingateway.sdptest.shengpay.com/management/gw/notification/message/93756797\"},{\"eventGroup\":\"COMPLAINT\",\"url\":\"http://shengxingateway.sdptest.shengpay.com/management/gw/notification/message/93756797\"},{\"eventGroup\":\"REGISTER\",\"url\":\"http://shengxingateway.sdptest.shengpay.com/management/gw/notification/message/93756797\"}]",
    "sign": "XyIoxGodrNZqsPE6xut9Yd0Pq5sk1VBkKAb7McrBgRtJr7R83u3n5ckTZByn4rxXUglViO3EYA8sYCWl54nNQf+5AVluJIZu5BmO6rZLxtgcCE2ismw3nqTX880RK/E+HtFHnpBqyf14ua5+MQ1gvt0r+klql7/+Osu3QF9LtGk=",
    "signType": "RSA",
    "nonceStr": "iuwYIztuezXtzoJmRfsDZKhsFTxOuznj"
}
Back to top