预授权扣款
授权请款接口通过对已授权成功的订单进行请款。
注意
- 当前仅支持全额请款
- 请在预授权成功后的 3 天内发起请款
请求参数
POST
名称 | 类型 | 长度 | 必填 | 签名 | 描述 |
---|---|---|---|---|---|
merchantNo | String | 20 | Yes | Yes | 商户号。 商户注册时,OnerWay 会为商户创建商户号 |
txnType | String | 16 | Yes | Yes | 授权请款交易类型使用CAPTURE |
merchantTxnId | String | 64 | No | Yes | 商户创建的预授权请款的交易订单号,不同的订单号视为不同的交易 |
originTransactionId | String | 20 | Yes | Yes | 来自 Onerway 的原预授权交易订单号。 |
sign | String | / | Yes | No | 签名字符串,请参阅签名接口 |
预授权请求响应示例
POST
json
{
"merchantNo": "800209",
"merchantTxnId": "1721288823000",
"originTransactionId": "1587326740704169984", 预授权下单响应的流水号
"sign": "ad9c51f5452c7f90c82b847984881e81b91a0444fe109be9413bc8f66ca4325a",
"txnType": "CAPTURE"
}
1
2
3
4
5
6
7
2
3
4
5
6
7
json
{
"respCode": "20000",
"respMsg": "Success",
"data": {
"transactionId": "1813842908840075264",
"responseTime": "2024-07-18 15:47:05",
"txnTime": "2024-07-18 15:47:03",
"txnTimeZone": "+08:00",
"orderAmount": "20.00",
"orderCurrency": "USD",
"txnAmount": null,
"txnCurrency": null,
"status": "S",
"redirectUrl": null,
"contractId": null,
"tokenId": null,
"eci": null,
"periodValue": null,
"codeForm": null,
"presentContext": null,
"actionType": null,
"sign": "de8ef7a2b9ffcc274b9d40970f2217055d540452c93ee9f35f133751e285cfb8"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
此示例仅限参考 请勿拿此示例直接请求。