POST FreezePay/FreezeToPay

将冻结资金一部分或者全部转为支付

请求信息

请求URI参数

请求数据参数

冻结资金转支付信息

FreezeToPayInfo
名称说明类型扩展说明
store_no

门店编码.

字符串

必填

字符长度: 必须在 1 和 32 之间

operator

操作员.

字符串

必填

字符长度: 必须在 1 和 16 之间

transaction_no

冻结资金订单号

字符串

必填

字符长度: 必须在 18 和 18 之间

amount

冻结资金订单金额

整数

必填

数值范围: 必须在 1 和 9999999999 之间

pay_amount

本次交易金额,以分为单位,不超过10位纯数字字符串

整数

必填

数值范围: 必须在 1 和 9999999999 之间

order_no

商户单据号,必须在此商户系统内唯一,推荐 机构号+门店号+订单编号

字符串

必填

字符长度: 必须在 1 和 32 之间

iteminfo

商品信息描述

字符串

finished

转交易支付完结束预授权

布尔

必填

buyer

资金冻结时的购买者信息

字符串

必填

itemlist

商品清单列表

Collection of ItemInfo

请求数据格式

application/json, text/json

例子:
{
  "store_no": "sample string 1",
  "operator": "sample string 2",
  "transaction_no": "sample string 3",
  "amount": 4,
  "pay_amount": 5,
  "order_no": "sample string 6",
  "iteminfo": "sample string 7",
  "finished": true,
  "buyer": "sample string 9",
  "itemlist": [
    {
      "item_id": "sample string 1",
      "item_no": "sample string 2",
      "item_name": "sample string 3",
      "quantity": 4,
      "price": 5,
      "promotion_type": 6
    },
    {
      "item_id": "sample string 1",
      "item_no": "sample string 2",
      "item_name": "sample string 3",
      "quantity": 4,
      "price": 5,
      "promotion_type": 6
    }
  ]
}

响应数据

资源说明

冻结资金转支付信息

ResultInfoOfFreezeToPayResultInfo
名称说明类型扩展说明
code

ResultCode

msg

字符串

data

FreezeToPayResultInfo

响应数据格式

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",
    "transaction_time": "sample string 11",
    "buyer": "sample string 12"
  }
}