Void
该接口用于根据商户订单号或平台订单号收单订单void
1.请求地址(POST)
实时 API: https://api.futurepay.global/payin/cancelCapture
沙盒 API: https://api.futurepay-develop.com/payin/cancelCapture
2.请求参数(JSON 格式)
参数可以 二选一传入:
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| merchantReference | String | 否 | 商户订单号 |
| pspReference | String | 否 | FuturePay 平台订单号 |
{
"merchantReference": "商户订单号(可选)",
"pspReference": "平台订单号(可选)"
}注意: merchantReference 和 pspReference 至少需传一个
3.响应参数(JSON格式)
顶层字段
| 参数名 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| code | String | "0" | 响应码,0 表示成功 |
| msg | String | "success" | 响应消息 |
| serverTime | Long | 1747904980771 | 服务器时间戳(毫秒) |
| success | Boolean | true | 请求是否成功 |
| data | Object | 见下表 | 订单数据对象 |
示例:
{
"code": "0",
"msg": "success",
"serverTime": 1758274184686,
"data": {
"merchantReference": "ljw1758273978373",
"pspReference": "1968969926530170880",
"resultCode": "SUCCEED",
"refusalReason": "SUCCEED"
},
"success": true
}Updated 4 days ago