Appearance
支付扣款确认
周期扣款确认
请求地址:/global/deduct/confirm
请求参数
参数名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
mchid | string | 是 | 商户号 |
appid | string | 是 | 应用ID |
order_id | string | 是 | 我方系统产生的订单号 |
mch_order_no | string | 否 | 商户侧的订单号,与order_id不能同时为空,如果两者都填写,则优先使用order_id |
user_consent_id | string | 否 | 用户授权ID,支付授权成功后返回 |
sign | string | 是 | 签名,用于验证请求的合法性 |
业务返回参数(result
对象)
当success
为true
时,返回以下参数:
参数名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
mchid | string | 是 | 商户号 |
appid | string | 是 | 应用ID |
amount | string | 是 | 支付金额 |
order_id | string | 是 | 我方系统产生的订单号 |
mch_order_no | string | 是 | 商户订单号 |
status | string | 是 | 订单状态,如:nopay (未支付)、success (已支付)、closed (已关闭)、fail (失败) |
payType | string | 是 | 支付方式 |
completeTime | string | 否 | 客户的电话号码 |
userId | string | 否 | 城市名称 |
sign | string | 是 | 签名,用于验证返回数据的合法性 |
请求示例
json
{
"mchid":"2002340435",
"appid":"4110",
"user_consent_id":"cst_hkdm9tsrbharlnwyur3",
"sign":"7a9c133418c59b5161cd718af67111ec",
"order_id":"1657336170109006848"
}
响应示例
json
{
"code":"0",
"message":"success",
"result":{
"mchid":"10001",
"appid":"4110",
"amount":"0.20",
"order_id":"1657336170109006848",
"mch_order_no":"1756893476030",
"third_order_no":"int_hkdmnqxqjharlpyer1w",
"status":"success",
"pay_type":"GLOBAL_CREDIT",
"user_id":"cus_hkdm42894hapfc0322q",
"sign":"7bdc7298782249e7558da34122315dda"
},
"success":true
}