退款异步通知接口
请求方式 | body | 编码 |
POST | application/json | UTF-8 |
通知确认:如果确认本次通知结果直接response返回SUCCESS,返回非SUCCESS,将会持续接收相同通知,累计10次,逐步增加每次通知间隔
通知参数
变量名 | 类型 | 必填 | 示例值 | 描述 |
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时使用) |
mchId | String | N | 93751497 | 商户号 |
outTradeNo | String | N | 20210987612312 | 商户订单号 |
refundOrderNo | String | N | r20210987612312 | 对应退款请求的outRefundNo字段 |
transactionId | String | N | M20210987612312 | 盛付通订单号 |
refundId | String | N | MR20210987612312 | 盛付通退款订单号 |
refundStatus | String | N | REFUND_SUCCESS | 退款订单状态(见订单状态说明) |
refundFee | String | N | 10 | 退款金额 |
timeEnd | String | N | | 支付时间 |
attach | String(512) | N | | 附加信息 |
refundAccount | String(512) | N | | 退结算资金来源 |
mchMemberInfo | String(256) | N | {"deviceId":s001","deviceName":"清河一店"} | 商户终端信息(JSON字符串) |
deviceId | String(32) | N | s001 | 终端号 |
deviceName | String(256) | N | 1号终端 | 终端名称 |
mchShopCode | String(256) | N | BH02 | 门店号-商户系统注册门店的信息 |
mchShopName | String(256) | N | 清河一店 | 门店名称-商户系统注册门店的信息 |
deviceTusn | String(64) | N | SN0203420394029 | 设备序列号 |
nonceStr | String | N | | 随机字符串 |
signType | String | N | rsa | 签名类型 |
sign | String | N | | 签名 (见签名介绍) |
通知示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | {
"timeEnd": "20201016155200",
"refundFee": 2,
"mchId": "93751497",
"resultCode": "SUCCESS",
"sign": "COar6s3QdDMaf3zFOTFgvwjhxDtbXIioLvVeSG9YQfrxno6XNpZIlbAqwRkmQrtI1EHd1KxVaMLg3Te6LDAtUF4H59sHEbebggOXyQ08adTrWBYTjDeKMXAcGn1PR8/nwscv1xJvkQO13r+zaDNENpRvOGTKplM5Hk2U28RKNLM=",
"refundStatus": "REFUND_SUCCESS",
"nonceStr": "asmNzzSvTcnCdVrPhJFqzkYzatmSybDI",
"transactionId": "M20201015348067758698831872",
"returnCode": "SUCCESS",
"returnMsg": "SUCCESS",
"refundOrderNo": "1602834549305",
"outTradeNo": "8a8zg8sbw28hifn3hd5o",
"signType": "RSA",
"refundId": "MR20201016348520544091688960"
}
|