POST DataCenter/PushToMessage
推送支付结果消息到消息队列
请求信息
请求URI参数
无
请求数据参数
支付结果
PayResultInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
transaction_status |
交易结果编码 |
TransactionStatus |
无 |
error |
错误消息 如果交易出错的话,会有错误消息 |
字符串 |
无 |
store_no |
门店号 |
字符串 |
无 |
paytype |
支付方式 |
PayType |
无 |
operator |
操作员 |
字符串 |
无 |
bank_type |
付款方式 |
字符串 |
无 |
total_amount |
订单总金额,以分为单位的整数 |
整数 |
无 |
cash_amount |
客户实际支付金额,以分为单位的整数 |
整数 |
无 |
settlement_amount |
订单结算金额,商户实际收款金额,以分为单位的整数 |
整数 |
无 |
coupon_amount |
优惠金额,订单总金额-客户实际支付金额 ,根据商户实际收款金额来判断,如果商家实际收款金额=订单金额,则为官方补贴优惠金额,否则为商家优惠金额。 |
整数 |
无 |
order_no |
原单订单号 |
字符串 |
无 |
transaction_no |
交易流水号 |
字符串 |
无 |
cloudpay_param |
预下单后生成的用于公共号/小程序支付后续调起支付的参数,类似如下的字符,如果是支付宝则直接返回交易流水号(后续调用支付用的参数) 如果不是预下单,此参数为空 { "appId":"wx2421b1c4370ec43b", "timeStamp":"1395712654", "nonceStr":"e61463f8efa94090b1f366cccfbbb444", "package":"prepay_id=u802345jgfjsdfgsdg888", "signType":"MD5", "paySign":"70EA570631E4BB79628FBCA90534C63FF7FADD89" } |
字符串 |
无 |
transaction_time |
交易完成时间 |
字符串 |
无 |
message |
交易信息. |
字符串 |
无 |
buyer |
支付者信息. |
字符串 |
无 |
attach |
附加信息,原样返回 |
字符串 |
无 |
iteminfo |
商品信息描述 |
字符串 |
无 |
coupon_detail_list |
优惠券详情列表清单. |
Collection of CouponDetailInfo |
无 |
请求数据格式
application/json, text/json
例子:
{ "transaction_status": "CREATE", "error": "sample string 1", "store_no": "sample string 2", "paytype": "WECHATPAY_NATIVE", "operator": "sample string 3", "bank_type": "sample string 4", "total_amount": 5, "cash_amount": 6, "settlement_amount": 7, "coupon_amount": 8, "order_no": "sample string 9", "transaction_no": "sample string 10", "cloudpay_param": "sample string 11", "transaction_time": "sample string 12", "message": "sample string 13", "buyer": "sample string 14", "attach": "sample string 15", "iteminfo": "sample string 16", "coupon_detail_list": [ { "coupon_id": "sample string 1", "coupon_template": "sample string 2", "coupon_name": "sample string 3", "coupon_type": "sample string 4", "memo": "sample string 5", "amount": 6, "amount_merchant": 7, "amount_office": 8, "amount_other": 9, "amount_pay": 10 }, { "coupon_id": "sample string 1", "coupon_template": "sample string 2", "coupon_name": "sample string 3", "coupon_type": "sample string 4", "memo": "sample string 5", "amount": 6, "amount_merchant": 7, "amount_office": 8, "amount_other": 9, "amount_pay": 10 } ] }
响应数据
资源说明
ResultInfoOfBoolean名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
code | ResultCode |
无 |
|
msg | 字符串 |
无 |
|
data | 布尔 |
无 |
响应数据格式
application/json, text/json
例子:
{ "code": "SUCCESS", "msg": "sample string 1", "data": true }