连连开放平台文档
  • 指引&规范
  • 收单服务
  • 账户服务
    • 更新日志
    • 接入准备
    • 开发指引
    • API接口
      • 账户管理类接口
      • 账户交易类接口
        • 记账结算
        • 收款记账
        • 内部记账
        • 外部记账
        • 担保交易
          • 担保确认POST
          • 担保确认撤销POST
        • 定向付款
        • 查询类接口
        • 异步通知类
  • 信用分期
  • 商户管理
  • 公共服务
  • 跨境服务
  • 易企汇
logoPowered by Apifox
  1. 账户服务
  2. API接口
  3. 账户交易类接口
  4. 担保交易

担保确认

POST/v1/accp/txn/secured-confirm

若在支付记账时,secured_flag为true,则通过该接口进行担保交易确认,即担保交易在支付时,余额进入担保账户;通过二次确认,将资金从担保账户转账至收款方。

请求参数

Body 参数application/json
mch_id
string 
商户编号
必需

商户在平台上开设的商户号码,为18位数字

<= 18 字符
示例值:
2020042200284052
sub_mchid
string  | null 
子商户编号
可选

子商户编号

<= 18 字符
示例值:
302210180000021525
confirm_orderInfo
object 
确认订单信息
必需
txn_seqno
string 
商户订单号
必需

商户系统唯一订单号

<= 32 字符
txn_time
string <date-time>
商户支付订单时间
必需
<= 14 字符
正则匹配:
YYYYMMDDH24MISS
order_amount
number 
确认总金额
必需
coupon_amount
number 
优惠券金额
可选

优惠券后置模式

confirm_mode
enum<string> 
确认方式
必需
枚举值:
ALLPART
original_orderInfo
object 
原订单信息
必需

待担保确认的订单

txn_seqno
string 
商户系统唯一订单号
必需
<= 32 字符
order_amount
number 
订单金额
必需
payee_info
array [object {3}] 
确认收款方信息
可选

确认方式是ALL时,无需指定

payee_id
string 
收款方ID
必需

该收款方必须是担保支付时指定的user_id

<= 64 字符
payee_type
enum<string> 
收款方类型
必需
枚举值:
MCHUSER
payee_amount
number 
收款方确认金额
必需

收款方确认金额,单位为元,精确到小数点后两位

示例
{
  "mch_id": "2020042200284052",
  "sub_mchid": "302210180000021525",
  "confirm_orderInfo": {
    "txn_seqno": "string",
    "txn_time": "2019-08-24T14:15:22.123Z",
    "order_amount": 0,
    "coupon_amount": 0,
    "confirm_mode": "ALL"
  },
  "original_orderInfo": {
    "txn_seqno": "string",
    "order_amount": 0
  },
  "payee_info": [
    {
      "payee_id": "string",
      "payee_type": "MCH",
      "payee_amount": 0
    }
  ]
}

示例代码

返回响应

成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
ret_code
string 
交易结果代码
必需

见码表

>= 4 字符<= 4 字符
ret_msg
string 
交易结果描述
必需
<= 100 字符
mch_id
string 
商户编号
必需

商户在平台上开设的商户号码,为18位数字,如:201304121000001004

sub_mchid
string 
子商户编号
可选
user_id
string 
所属用户编号
必需

用户在商户系统中的唯一编号

<= 64 字符
txn_seqno
string 
商户确认订单号
必需

商户系统唯一订单号

<= 32 字符
order_amount
number 
确认总金额
必需
platform_txno
string 
确认系统订单号
必需
示例
未设置