POST QuickPay/Query
查询付款结果接口,若付款接口未返回付款最终状态:支付成功(SUCCESSED)/支付失败(FAILED),请循环调用此接口获得付款最新结果,若约定时间内查询结果还是支付中(PAYING)或者未知(UNKNOWN),请调用【取消支付接口】取消这个单据。
请求信息
请求URI参数
无
请求数据参数
查询付款信息
PayQueryInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
store_no |
门店编码. |
字符串 |
必填 字符长度: 必须在 1 和 32 之间 |
order_no |
商户单据号,支付时传入的订单号 |
字符串 |
必填 字符长度: 必须在 1 和 32 之间 |
请求数据格式
application/json, text/json
例子:
{ "store_no": "sample string 1", "order_no": "sample string 2" }
响应数据
资源说明
付款结果信息
ResultInfoOfPayResultInfo名称 | 说明 | 类型 | 扩展说明 |
---|---|---|---|
code | ResultCode |
无 |
|
msg | 字符串 |
无 |
|
data | PayResultInfo |
无 |
响应数据格式
application/json, text/json
例子:
{ "code": "SUCCESS", "msg": "sample string 1", "data": { "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 } ] } }